genesets route for local server (#2079)

* first cut at GET /genesets route

* update existing tests to match code changes

* more GET /genesets and initial tests

* add missing test fixture

* geneset validation accepts OTA format

* genesets route: better error handling, more tests

* lint
This commit is contained in:
Bruce Martin
2021-02-26 17:53:07 -08:00
committed by GitHub
parent 09466a5c32
commit f3a3820ffa
18 changed files with 813 additions and 82 deletions
+3
View File
@@ -16,9 +16,12 @@ dataset:
local_file_csv:
directory: {local_file_csv_directory}
file: {local_file_csv_file}
genesets_file: {local_file_csv_genesets_file}
ontology:
enable: {ontology_enabled}
obo_location: {obo_location}
genesets:
readonly: {genesets_readonly}
embeddings:
names: {embedding_names}
+12
View File
@@ -0,0 +1,12 @@
# Test fixture
geneset_name, geneset_description, gene_symbol, gene_description
first geneset name,,F5, a gene_description
first geneset name,a description, NO_SUCH_GENE, non-existent gene
first geneset name,a description, F5, duplicate gene
first geneset name, a description, SUMO3,
first geneset name,, SRM,
second geneset,,RER1
second geneset,,SIK1
third geneset,,NO_SUCH_GENE
fourth_geneset,fourth description,,gene intentionally missing
fifth_dataset,,,
1 # Test fixture
2 geneset_name, geneset_description, gene_symbol, gene_description
3 first geneset name,,F5, a gene_description
4 first geneset name,a description, NO_SUCH_GENE, non-existent gene
5 first geneset name,a description, F5, duplicate gene
6 first geneset name, a description, SUMO3,
7 first geneset name,, SRM,
8 second geneset,,RER1
9 second geneset,,SIK1
10 third geneset,,NO_SUCH_GENE
11 fourth_geneset,fourth description,,gene intentionally missing
12 fifth_dataset,,,