Skip to content

Commit

Permalink
changing wording in error
Browse files Browse the repository at this point in the history
  • Loading branch information
adkinsrs committed Jan 20, 2024
1 parent 8060577 commit 9eb00d7
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion www/api/resources/plotly_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ def post(self, dataset_id):

gene_symbols = (mapped_gene_symbol,)
if not check_gene_in_dataset(adata, gene_symbols):
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the h5ad file."}
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the dataset."}

# Filter genes and slice the adata to get a dataframe
# with expression and its observation metadata
Expand Down
2 changes: 1 addition & 1 deletion www/api/resources/svg_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ def get(self, dataset_id):

gene_symbols = (mapped_gene_symbol,)
if not check_gene_in_dataset(adata, gene_symbols):
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the h5ad file."}
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the dataset."}

try:
gene_filter = adata.var.gene_symbol.isin(gene_symbols)
Expand Down
2 changes: 1 addition & 1 deletion www/api/resources/tsne_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ def post(self, dataset_id):

gene_symbols = (mapped_gene_symbol,)
if not check_gene_in_dataset(adata, gene_symbols):
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the h5ad file."}
return {"success": -1, "message": f"The searched gene symbol {gene_symbol} could not be found in the dataset."}

gene_filter = adata.var.gene_symbol.isin(gene_symbols)

Expand Down

0 comments on commit 9eb00d7

Please sign in to comment.