Version: 18.13.0
Description:
Using --reference flag with taxon queries produces a confusing error message about BioProject accessions.
Steps to reproduce:
# Works
datasets download genome taxon 2894792 --dehydrated
# Fails with misleading error
datasets download genome taxon 2894792 --reference --dehydrated
Error message:
Error: NCBI Datasets provides access to assembled genome data by BioProject accession and no genome assemblies were found for the given BioProject.
Retrieval of SRA data by BioProject accession is not supported by NCBI Datasets.
Expected behavior:
- If no reference genomes exist for the taxon, error should say "No reference genomes found for taxon X"
- If reference genomes exist (e.g., measles has GCF_000854845.1), they should be returned
Additional context:
Same issue occurs with taxid 11234 (measles) which has a known RefSeq assembly GCF_000854845.1.
---