mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-10-10 06:00:56 +08:00
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 <bruce@chanzuckerberg.com>
This commit is contained in:
co-authored by
bkmartinjr
parent
096d8ff1d2
commit
d04dba225f
@@ -197,14 +197,14 @@ class AnnotationsLocalFile(Annotations):
|
|||||||
if self.label_output_file:
|
if self.label_output_file:
|
||||||
return 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):
|
def _get_genesets_filename(self, data_adaptor):
|
||||||
""" return the current gene sets file name """
|
""" return the current gene sets file name """
|
||||||
if self.gene_sets_output_file:
|
if self.gene_sets_output_file:
|
||||||
return 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):
|
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
|
# we need to generate a file name, which we can only do if we have a UID and collection name
|
||||||
|
|||||||
@@ -112,7 +112,7 @@ class FilenameDialog extends React.Component {
|
|||||||
userInfo.is_authenticated ? (
|
userInfo.is_authenticated ? (
|
||||||
<Dialog
|
<Dialog
|
||||||
icon="tag"
|
icon="tag"
|
||||||
title="Annotations Collection"
|
title="User Generated Data Directory"
|
||||||
isOpen={!annotations.dataCollectionName}
|
isOpen={!annotations.dataCollectionName}
|
||||||
onClose={this.dismissFilenameDialog}
|
onClose={this.dismissFilenameDialog}
|
||||||
>
|
>
|
||||||
@@ -124,7 +124,7 @@ class FilenameDialog extends React.Component {
|
|||||||
>
|
>
|
||||||
<div className={Classes.DIALOG_BODY} data-testid="annotation-dialog">
|
<div className={Classes.DIALOG_BODY} data-testid="annotation-dialog">
|
||||||
<div style={{ marginBottom: 20 }}>
|
<div style={{ marginBottom: 20 }}>
|
||||||
<p>Name your annotations collection:</p>
|
<p>Name your user generated data directory:</p>
|
||||||
<InputGroup
|
<InputGroup
|
||||||
autoFocus
|
autoFocus
|
||||||
value={filenameText}
|
value={filenameText}
|
||||||
@@ -149,9 +149,15 @@ class FilenameDialog extends React.Component {
|
|||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<p>
|
<p>
|
||||||
Your annotations are stored in this file:
|
{"Your annotations are stored in this file: "}
|
||||||
<Code>
|
<Code>
|
||||||
{filenameText}-{idhash}.csv
|
{filenameText}-cell-labels-{idhash}.csv
|
||||||
|
</Code>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
{"Your gene sets are stored in this file: "}
|
||||||
|
<Code>
|
||||||
|
{filenameText}-gene-sets-{idhash}.csv
|
||||||
</Code>
|
</Code>
|
||||||
</p>
|
</p>
|
||||||
<p style={{ fontStyle: "italic" }}>
|
<p style={{ fontStyle: "italic" }}>
|
||||||
@@ -171,7 +177,7 @@ class FilenameDialog extends React.Component {
|
|||||||
type="submit"
|
type="submit"
|
||||||
data-testid="submit-annotation"
|
data-testid="submit-annotation"
|
||||||
>
|
>
|
||||||
Create annotations collection
|
Create user generated data directory
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user