biothings / mygene.info

MyGene.info: A BioThings API for gene annotations

Home Page:http://mygene.info

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

query example for MGI from docs not working

ftwkoopmans opened this issue · comments

Searching for identifiers from the Mouse Genome Informatics database no longer works

documentation: https://docs.mygene.info/en/latest/doc/query_service.html
MGI example: http://mygene.info/v3/query?q=mgi:MGI%5C%5C:88339
result:

"code": 400,
"success": false,
"error": "search_phase_execution_exception",
"root_cuase_line_00": "parse_exception: Encountered ' ':' ': '' at line 1, column 9.",
"root_cuase_line_01": "Was expecting one of:",
"root_cuase_line_02": "    <EOF> ",
"root_cuase_line_03": "    <AND> ...",
"root_cuase_line_04": "    <OR> ...",
"root_cuase_line_05": "    <NOT> ...",
"root_cuase_line_06": "    '+' ...",
"root_cuase_line_07": "    '-' ...",
"root_cuase_line_08": "    <BAREOPER> ...",
"root_cuase_line_09": "    '(' ...",
"root_cuase_line_10": "    '*' ...",
"root_cuase_line_11": "    '^' ...",
"root_cuase_line_12": "    <QUOTED> ...",
"root_cuase_line_13": "    <TERM> ...",
"root_cuase_line_14": "    <FUZZY_SLOP> ...",
"root_cuase_line_15": "    <PREFIXTERM> ...",
"root_cuase_line_16": "    <WILDTERM> ...",
"root_cuase_line_17": "    <REGEXPTERM> ...",
"root_cuase_line_18": "    '[' ...",
"root_cuase_line_19": "    '{' ...",
"root_cuase_line_20": "    <NUMBER> ...",
"root_cuase_line_21": "    "
}```

@ftwkoopmans Thanks for spotting this and report to us. Looks like escaping : in MGI ID like MGI:88339 with a double backslash \\ is no longer needed, just a single \ would be enough, so this query for MGI id works:

?q=mgi:MGI\:88339

We also updated our document.