-
Notifications
You must be signed in to change notification settings - Fork 27
Open
Labels
Description
I get 500 errors when trying to use jmespath for the following queries.
MyChem Query for specific chembl.drug_mechanism gene, trying to keep only matching chembl.drug_mechanism info
POST version:
curl --location --globoff 'https://mychem.info/v1/query?size=1000&fields=chembl.molecule_chembl_id,chembl.drug_mechanisms&jmespath=chembl.drug_mechanisms.target_components|[?uniprot=='Q16602']' \
--header 'Content-Type: application/json' \
--data '{
"q": ["Q16602"],
"scopes": ["chembl.drug_mechanisms.target_components.uniprot"]
}'
Query for specific civic.evidence_items.disease, trying to keep only matching civic.evidence_items info
POST version:
curl --location --globoff 'https://myvariant.info/v1/query?size=1000&fields=civic.entrez_id,civic.evidence_items&jmespath=civic.evidence_items.disease|[?doid=='DOID:9256']' \
--header 'Content-Type: application/json' \
--data '{
"q": "DOID:9256",
"scopes": "civic.evidence_items.disease.doid"
}'
My guess is that this error has to do with how these fields are nested (two layers with arrays of objects?)
Reactions are currently unavailable