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
expand gget search to include synonym hits in addition to name and description hits #90
Comments
Hi Samuel, I agree that it would be great to expand |
I am not quite sure if this approach is stable enough but I figured out that we can search the synonym in the See the example below for the aforementioned
I hope this helps. |
I played around with this approach a bit and now I am unsure if it should be used. When searching in the synonyms table for the gene
Another possible approach could be to search in the
|
Hi Samuel, Thank you for your suggestion. The new release v0.27.9 of gget now also searches Ensembl synonyms (in addition to gene descriptions and names) to return more comprehensive search results. You can install the version using the command
Let us know if there are any issues. |
What happened?
Hi,
I am searching for the gene "WISP2" using gget with the following command:
gget search -s homo_sapiens "WISP2"
which returns the following result:
Thu Jun 29 14:53:00 2023 INFO Fetching results from database: homo_sapiens_core_109_38 Thu Jun 29 14:53:02 2023 INFO Total matches found: 1. Thu Jun 29 14:53:02 2023 INFO Query time: 5.15 seconds. [ { "ensembl_id": "ENSG00000244558", "gene_name": "KCNK15-AS1", "ensembl_description": "KCNK15 and WISP2 antisense RNA 1 [Source:HGNC Symbol;Acc:HGNC:49901]", "ext_ref_description": "KCNK15 and WISP2 antisense RNA 1", "biotype": "lncRNA", "url": "https://useast.ensembl.org/homo_sapiens/Gene/Summary?g=ENSG00000244558" } ]
But I would expect the gene with ensembl ID "ENSG00000064205" which has the symbol "CCN5" but lists "WISP2" as a synonym.
Apparently gget matches the search term in the "description" field but one can argue that a match in the "Gene Synonyms" field should be weighted higher.
gget version
0.27.7
Operating System (OS)
Linux
User interface
Command-line
Are you using a computer with an Apple M1 chip?
Not M1
What is the exact command that was run?
gget search -s homo_sapiens "WISP2"
Which output/error did you get?
The text was updated successfully, but these errors were encountered: