Hi, I am trying to use GraphQL to access diabete mellitus (EFO_0000400)'s full association profile, since the webpage downloading has failed due to the previously reported bug. However, it looks like GraphQL also suffers from this issue.
When I used the following query to access the data, I found that all indices work despite 1131, which raises an “Internal server error”.
query disease{
disease(efoId: "EFO_0000400"){
id
name
associatedTargets(page: { index: 1131, size: 1 }) {
rows {
score
datatypeScores{
id
score
}
target {
id
approvedSymbol
}
}
}
}
}
{
"data": {
"disease": null
},
"errors": [
{
"message": "Internal server error",
"path": [
"disease",
"associatedTargets",
"rows",
0,
"target"
],
"locations": [
{
"line": 12,
"column": 9
}
]
}
]
}
I highly suspect OAS1, i.e. the problematic gene (ENSG00000089127), is exactly this 1131-th record, since it is indeed associated with diabetes, and the webpage Targets associated with diabetes mellitus also fails to go to page 3 when the rows per page is set to 500, where the 1131-th entry should lie in. I am not sure if this is indeed the case since according to the GitHub issue, this issue has been resolved in the backend.
Of course, one simple work-around is to just avoid querying the 1131-th entry. Yet is there any data querying means that would work without manipulation?
Thanks!