Open manulera opened 6 days ago
Similarly, this response is empty ( if setting has_annotation=true
).
I guess the meaning of this might be that the annotation comes from the paired assembly GCA_000002945.2
?
I figured I can use this endpoint instead to check for the annotation being present.
However, this endpoint gives the same error (404) when using an invalid accession and when using an accession that does not exist. The nice thing of the dataset_report
endpoint was that in a single request, you could get info on whether the accession number exists, and whether it has annotations
Hi manulera
Thanks for opening this issue. GCF_000002945.1 was recently updated to version 2 but there is an issue with the data release for the new version. We hope to get it resolved soon.
For checking if there is an annotation, this is the correct URL https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCF_000002945.1/dataset_report?filters.has_annotation=true. It should work when the bug with the version update is fixed. Additionally we are looking into a better response when a genome is not annotated.
I'll ping the issue when the version release is fixed.
Nuala
Hi manulera,
The issue with the release of GCF_000002945.2 has been fixed. You can view the data report for the this latest version here
The previous version has also been fixed. To view a data report for a non-latest assembly you need to append the URL with a filter for all assemblies. https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCF_000002945.1/dataset_report?filters.assembly_version=all_assemblies
Let me know if you have any more issues.
Nuala
Hi @olearyna,
I was using the field
annotation_info
fromgenome/accession/{accession}/dataset_report
to tell users whether a given assembly has annotations. Since yesterday, it seems thatannotation_info
is missing from the response forGCF_000002945.1
.Compare:
GCF_000002945.1
, missingannotation_info
: https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCF_000002945.1/dataset_reportGCA_000002945.2
(synonym), returnsannotation_info
: https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCA_000002945.2/dataset_reportIs this intentional? And is there a better way to check whether a given assembly has annotations?
The annotations can still be accessed for
GCF_000002945.1
anyway, see https://api.ncbi.nlm.nih.gov/datasets/v2alpha/genome/accession/GCF_000002945.1/annotation_report?search_text=ase1