mirror of
https://github.com/chanzuckerberg/cellxgene.git
synced 2026-09-27 05:28:11 +08:00
hosted gene sets routes, plus a few bug fixes (#2155)
* first cut at hosted gs routes * lint * update tests to match csv parser changes * update tests to new API * update gene set name validation rules to match requirements * add path mapping from dataset to geneset * add test cases for geneset GET route * fix test assertion * remove debugging code * update gene set uri mapping function * fix error message * allow extra user-specified headers in gene set csv file * clarify comment
This commit is contained in:
@@ -560,7 +560,7 @@ class EndPointsAnnDataGenesets(unittest.TestCase, EndPoints):
|
||||
"genesets": [
|
||||
{
|
||||
"genes": [
|
||||
{"gene_description": "a gene_description", "gene_symbol": "F5"},
|
||||
{"gene_description": " a gene_description", "gene_symbol": "F5"},
|
||||
{"gene_description": "", "gene_symbol": "SUMO3"},
|
||||
{"gene_description": "", "gene_symbol": "SRM"},
|
||||
],
|
||||
@@ -602,7 +602,7 @@ class EndPointsAnnDataGenesets(unittest.TestCase, EndPoints):
|
||||
self.assertEqual(
|
||||
result.text,
|
||||
"""gene_set_name,gene_set_description,gene_symbol,gene_description\r
|
||||
first gene set name,a description,F5,a gene_description\r
|
||||
first gene set name,a description,F5, a gene_description\r
|
||||
first gene set name,a description,SUMO3,\r
|
||||
first gene set name,a description,SRM,\r
|
||||
second gene set,,RER1,\r
|
||||
|
||||
Reference in New Issue
Block a user