Skip to content

jmespath: 500 error #324

@colleenXu

Description

@colleenXu

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

GET version

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

GET version

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?)

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions