I have this GSE dataset ( GSE104279 ) (https://www.ncbi.nlm.nih.gov/geo/query/acc.cgi?acc=GSE104279).

I want to make a table with set IDs and ftp urls to use it as a table in galaxy.org

I know that we can use ENA to get specific arrangement: https://www.ebi.ac.uk/ena/browser/

I tried to get:

SampleID    Group   URL

so I used : https://www.ebi.ac.uk/ena/browser/view/PRJNA412223

But nothing is showing.

Is there away to get these urls in the arrangement above?


1 Answer 1


You can use Entrez Direct for this as follows:

esearch -db gds -query 'GSE104279' \
  | esummary \
  | xtract -pattern DocumentSummary \
    -if 'entryType' -equals 'GSM' \
    -def 'NA' -element Accession title summary FTPLink

This will return a table with data similar to this:

GSM2580330      18_Z13_2_d5_Zika        cortical organoids_Zika_5d      ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM2580nnn/GSM2580330/
GSM2580329      17_Z13_2_d5_Control     cortical organoids_mock_5d      ftp://ftp.ncbi.nlm.nih.gov/geo/samples/GSM2580nnn/GSM2580329/

To download sequence reads, you should follow links to SRA. Using Entrez Direct you can do this as follows:

esearch -db gds -query 'GSE104279' \
  | elink -target sra \
  | efetch -format runinfo

This will return a comma-delimited table containing SRA identifiers and an FTP path to the SRA data. These FTP paths won't lead you to FASTQ files though. You can pass the SRA run identifiers of the format SRR### (or ERR### or DRR###) to fastq-dump or fasterq-dump tools from the SRAToolkit to download data in FASTQ format.

  • $\begingroup$ Thank you @vkkodali, this is so helpful, but I want files with sequence, not just summary, by the way, it was good timing, because I just installed Entrez Direct tool but I did not know how to use it, do you know what sequence should I use for cutadapt for these file, they are human genome – $\endgroup$
    – user432797
    Commented Oct 25, 2020 at 23:36

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.