Download SRA sequences from Entrez search results

Obtain search results

Task: find RNA-Seq records for lymph node tissue in BALB/c mice in SRA Entrez offsite image

Check To learn how to use Advanced Search Builder please refer to Search in SRAHELP

Obtain run accessions

Run accessions are used to download SRA data. To download a list of Run accessions selected from your Entrez search (Example offsite image):

  • Click Send to on the top of the page, check the radiobutton File, select Accession List.
  • Save this file in the location from which you are running the SRA Toolkit.

SraAccList.txt is formatted like this:

SRR11192680
SRR11192681
SRR11192682
SRR11192683
SRR11192684

Download sequence data files using SRA Toolkit

SRA Run files hold only sequence data and do not contain any metadata (sample information, etc.) linked to the Run.
Exclamation point Please make sure you are running the most recent release of the toolkit as older versions may not be compatible with more recently loaded data or the most current network protocols.

Downloading public data

Prefetch is a part of the SRA toolkit. This program downloads Runs (sequence files in the compressed SRA format) and all additional data necessary to convert the Run from the SRA format to a more commonly used format. Prefetch can be used to correct and finish an incomplete Run download.

Use this prefetch command to download the Runs from the previous example in SRA format.

One Run:

$ prefetch SRR000001

A list of Runs:

prefetch --option-file SraAccList.txt

fasterq-dump and sam-dump are also part of the SRA toolkit and can be used to convert the prefetched Runs from compressed SRA format to fastq or sam format. For example:

fasterq-dump --split-files SRR11180057.sra

You can also avoid the prefetch step and download and convert the Run in one step by entering just the Run accession without the .sra extension in your fasterq-dump or sam-dump command:

fasterq-dump --split-files SRR11180057

Downloading Original Submitted Files

SRA has deposited original submitted files into a cloud bucket accessible via the prefetch command if you wish to use those instead of dumping standardized data from the archive.

Please refer to Download SRA sequence data using Amazon Web Services (AWS)

An example prefetch command:

prefetch --type fastq SRR11180057

The --type command allows you to specify the type of file to download. You can look up the file type of the original files in either SRA in BigQuery or the Data Access tab on the Run Browser or use any to get all available formats.

Downloading protected data

Exclamation point For information on how to download dbGaP data see: Protected Data Usage Guide offsite image.

Download metadata associated with SRA data

From the search result page

SRA Run files do not contain any information about the metadata (sample information, etc.) linked to the data themselves.

To download metadata for each Run in your Entrez query click Send to on the top of the page, check the File radiobutton, and select RunInfo in pull-down menu.

This will generate a tabular SraRunInfo.csv file with metadata available for each Run.

From Run Selector

A slightly different set of metadata can be downloaded in a tab-delimited file from Run Selector offsite image.

To download metadata for each Run in your Entrez query:

  • Click Send to on the top of the page, check the Run Selector radiobutton, and click the button Go.
  • If necessary, refine your results by using various filters provided by the Run Selector's interface.
  • Click the RunInfo Table button. This will generate a tabular SraRunTable.txt file with metadata available for each Run.

Download sequence data from the Run Browser

Run Browser offsite image allows for limited download (one run at a time over HTTP) of unaligned and aligned sequences.

Unaligned sequences example

  • Open the selected run in the Run Browser offsite image.
  • Click the Reads tab.
  • Find certain reads by applying a Filter or leave the Filter field empty.
  • Click on the Filtered Download button.
  • Select available download format and click Download link.

Aligned sequences example

  • Open the selected run in the Run Browser offsite image.
  • Click the Alignment tab.
  • Select available download format in pull-down menu and click on Screen or File button to output the run to the screen or into a file.

Download SRA sequence data from the Cloud

Download SRA sequence data from the Cloud


Contact SRA

Contact SRA staff for assistance at sra@ncbi.nlm.nih.gov

Support Center

Last updated: 2020-09-24T16:09:35Z