From d04dba225f2974556d0c16a5b14d277a17e04900 Mon Sep 17 00:00:00 2001 From: Colin Megill Date: Fri, 7 May 2021 14:32:11 -0700 Subject: [PATCH] Filename dialogue includes gene sets (#2185) * change filenames * gene-sets to anno dialogue * logging, lambda * celllabels * cell dash labels * space * fix 2182 - annotation file name change on the backend Co-authored-by: bkmartinjr --- .../server/common/annotations/local_file_csv.py | 4 ++-- client/src/components/autosave/filenameDialog.js | 16 +++++++++++----- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/backend/server/common/annotations/local_file_csv.py b/backend/server/common/annotations/local_file_csv.py index 1f61a1e7..f26987a7 100644 --- a/backend/server/common/annotations/local_file_csv.py +++ b/backend/server/common/annotations/local_file_csv.py @@ -197,14 +197,14 @@ class AnnotationsLocalFile(Annotations): if self.label_output_file: return self.label_output_file - return self._get_filename(data_adaptor, "celllabels") + return self._get_filename(data_adaptor, "cell-labels") def _get_genesets_filename(self, data_adaptor): """ return the current gene sets file name """ if self.gene_sets_output_file: return self.gene_sets_output_file - return self._get_filename(data_adaptor, "genesets") + return self._get_filename(data_adaptor, "gene-sets") def _get_filename(self, data_adaptor, anno_name): # we need to generate a file name, which we can only do if we have a UID and collection name diff --git a/client/src/components/autosave/filenameDialog.js b/client/src/components/autosave/filenameDialog.js index 951f1f73..83f91eb0 100644 --- a/client/src/components/autosave/filenameDialog.js +++ b/client/src/components/autosave/filenameDialog.js @@ -112,7 +112,7 @@ class FilenameDialog extends React.Component { userInfo.is_authenticated ? ( @@ -124,7 +124,7 @@ class FilenameDialog extends React.Component { >
-

Name your annotations collection:

+

Name your user generated data directory:

- Your annotations are stored in this file: + {"Your annotations are stored in this file: "} - {filenameText}-{idhash}.csv + {filenameText}-cell-labels-{idhash}.csv + +

+

+ {"Your gene sets are stored in this file: "} + + {filenameText}-gene-sets-{idhash}.csv

@@ -171,7 +177,7 @@ class FilenameDialog extends React.Component { type="submit" data-testid="submit-annotation" > - Create annotations collection + Create user generated data directory