Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleteriousness CADD Score REST API Query Fails in IVA #141

Open
nicholsn opened this issue Sep 23, 2017 · 1 comment
Open

Deleteriousness CADD Score REST API Query Fails in IVA #141

nicholsn opened this issue Sep 23, 2017 · 1 comment
Assignees
Labels
Milestone

Comments

@nicholsn
Copy link

I am setting up iva-0.7.0 to work with opencga-1.2.0-rc and seeing an error.

When I set a filter on the cadd_raw and cad_scaled deleteriousness scores, the web console throws an error when accessing the following REST endpoint:

http://localhost:8080/opencga-1.2.0-rc/webservices/rest/v1/analysis/variant/query?sid=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvcGVuY2dhIiwiYXVkIjoiT3BlbkNHQSB1c2VycyIsImlhdCI6MTUwNjExNDU2MSwiZXhwIjoxNTA2MTE2MzYxfQ.V1bBllHHXMKQhdfZ2h0DiDO72vklkViWFWpV8HDWRRM&timeout=60000&summary=true&annot-functional-score=cadd_raw%3C%3C.3%2Ccadd_scaled%3E%3E%3D5&studies=opencga%40hgi%3ABOBCAT&exclude=studies&limit=10&skip=0

The JSON response is the following:

{
"apiVersion": "v1",
"warning": "",
"error": "Malformed \"annot-functional-score\" query : \"cadd_raw<<=5,cadd_scaled>>.3\". Expected: Functional score: {functional_score}[<|>|<=|>=]{number}, e.g. cadd_scaled>5.2,cadd_raw<=0.3",
"queryOptions": {
"metadata": true,
"skipCount": true,
"exclude": [
"studies"
],
"skip": 0,
"timeout": 60000,
"limit": 10
},
"response": [
{
"id": "",
"dbTime": -1,
"numResults": -1,
"numTotalResults": -1,
"warningMsg": "Future errors will ONLY be shown in the QueryResponse body",
"errorMsg": "DEPRECATED: org.opencb.opencga.storage.core.variant.adaptors.VariantQueryException: Malformed \"annot-functional-score\" query : \"cadd_raw<<=5,cadd_scaled>>.3\". Expected: Functional score: {functional_score}[<|>|<=|>=]{number}, e.g. cadd_scaled>5.2,cadd_raw<=0.3",
"resultType": "",
"result": []
}
]
}

If I update my query to use the suggested example of functional_score=cadd_scaled%3E5.2,cadd_raw%3C=0.3 I get a response, but the filters do not appear to be respected (i.e., the cadd scores are not within the expected range)

http://localhost:8080/opencga-1.2.0-rc/webservices/rest/v1/analysis/variant/query?sid=eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJvcGVuY2dhIiwiYXVkIjoiT3BlbkNHQSB1c2VycyIsImlhdCI6MTUwNjE3OTAyMiwiZXhwIjoxNTA2MTgwODIyfQ.x73ZDJEKT08R0PA9pFnsS1e2uyzZQS-4AK1_2Y8Fme8&timeout=60000&summary=true&functional_score=cadd_scaled%3E5.2,cadd_raw%3C=0.3&studies=opencga%40hgi%3ABOBCAT&exclude=studies&limit=10&skip=0

Any idea what I am doing wrong here?

@nicholsn
Copy link
Author

nicholsn commented Oct 3, 2017

@imedina, any thoughts on this?

@imedina imedina self-assigned this Nov 12, 2017
@imedina imedina added the bug label Nov 12, 2017
@imedina imedina added this to the v0.9.0 milestone Nov 12, 2017
@imedina imedina modified the milestones: v0.9.0, v1.0.0 Sep 25, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants