ARGA-Genomes / arga-web

Monorepo for ARGA web components and API wrappers
Mozilla Public License 2.0
1 stars 0 forks source link

NCBI: generate sequence download URL for basket/export #30

Open nickdos opened 2 years ago

nickdos commented 2 years ago

E.g. using an accession of GCA_022045225.1, the curl command is

curl -OJX GET "https://api.ncbi.nlm.nih.gov/datasets/v1/genome/accession/GCA_022045225.1/download?include_annotation_type=GENOME_GFF,RNA_FASTA,CDS_FASTA,PROT_FASTA&filename=GCA_022045225.1.zip" -H "Accept: application/zip"

nickdos commented 2 years ago

Record has Genetic Accession URI: https://ftp.ncbi.nlm.nih.gov/genomes/all/GCA/022/045/225/GCA_022045225.1_xgHalCrac1.a

but this returns a 403.

nickdos commented 2 years ago

First pass is adding download link on records side-panel view.