ncbi / datasets

NCBI Datasets is a new resource that lets you easily gather data from across NCBI databases.
https://www.ncbi.nlm.nih.gov/datasets
Other
369 stars 41 forks source link

Querying by gene_id in /genome/accession/{accession}/annotation_report #398

Open manulera opened 2 months ago

manulera commented 2 months ago

Is your feature request related to a problem? Please describe. This is related to #397 (some annotations do not have a locus_tag). I thought that in that case a good unique identifier for the annotation would the gene_id (e.g. https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCF_030052815.1/annotation_report?search_text=110667933)

However, I see that you cannot query by gene_id as far as I can tell (I guess because it only exists on reference genomes?)

Describe the solution you'd like Would it be possible that the gene_id is also queried with search_text if it is a reference genome?

Thanks!