Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into new-data-source-format
Browse files Browse the repository at this point in the history
  • Loading branch information
everaldorodrigo committed Feb 8, 2024
2 parents 85eb4b2 + 238fcc9 commit f262209
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 1 deletion.
8 changes: 8 additions & 0 deletions src/hub/dataload/sources/clinvar/clinvar_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,14 @@ def get_mapping(klass):
"human_phenotype_ontology": {
"type": "text",
"analyzer": "string_lowercase"
},
"mondo": {
"type": "text",
"analyzer": "string_lowercase"
},
"mesh": {
"type": "text",
"analyzer": "string_lowercase"
}
}
},
Expand Down
2 changes: 1 addition & 1 deletion src/tests/data/test_annotation.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ def test_043_annotation_post(self):
# TODO redo this test, doesn't test much really....
res = self.request("variant", method='POST',
data={'ids': 'chr16:g.28883241A>G,chr8:g.19813529A>G',
'filter': 'dbsnp.chrom'}).json()
'fields': 'dbsnp.chrom'}).json()
assert len(res) == 2
for _g in res:
assert set(_g) == set(['_id', 'query', 'dbsnp', '_version'])
Expand Down
2 changes: 2 additions & 0 deletions static/context/context.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@
"clinvar.rcv.conditions.identifiers.omim": "http://identifiers.org/omim/",
"clinvar.rcv.conditions.identifiers.efo": "http://identifiers.org/efo/",
"clinvar.rcv.conditions.identifiers.orphanet": "http://identifiers.org/orphanet/",
"clinvar.rcv.conditions.identifiers.mesh": "http://identifiers.org/mesh/",
"clinvar.rcv.conditions.identifiers.mondo": "http://identifiers.org/mondo/",
"clinvar.gene.symbol": "http://identifiers.org/hgnc.symbol/",
"clinvar.gene.id": "http://identifiers.org/ncbigene/",
"dbnsfp.rsid": "http://identifiers.org/dbsnp/",
Expand Down

0 comments on commit f262209

Please sign in to comment.