-
Notifications
You must be signed in to change notification settings - Fork 0
Setup SRA Toolkit on the Linux
-
To download the current version of SRA Toolkit on your Linux, go to:
http://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-ubuntu64.tar.gz
-
Extract the tar file on your desktop
tar -vxzf sratoolkit.tar.gz
In your terminal, type
export PATH=$PATH:$PWD/sratoolkit.2.4.0-1.mac64/bin
Then, you could check if it is in the PATH variable by
echo $PATH
which fastq-dump
cd sratoolkit.2.8.2-1-ubuntu64/bin
You could check if SRA Toolkit is currently working on your Linux by
fastq-dump --stdout SRR390728 | head -n 8
It should give you an output exactly like this:
@SRR390728.1 1 length=72 CATTCTTCACGTAGTTCTCGAGCCTTGGTTTTCAGCGATGGAGAATGACTTTGACAAGCTGAGAGAAGNTNC
+SRR390728.1 1 length=72
;;;;;;;;;;;;;;;;;;;;;;;;;;;9;;665142;;;;;;;;;;;;;;;;;;;;;;;;;;;;;96&&&&(
@SRR390728.2 2 length=72 AAGTAGGTCTCGTCTGTGTTTTCTACGAGCTTGTGTTCCAGCTGACCCACTCCCTGGGTGGGGGGACTGGGT
+SRR390728.2 2 length=72
;;;;;;;;;;;;;;;;;4;;;;3;393.1+4&&5&&;;;;;;;;;;;;;;;;;;;;;<9;<;;;;;464262
- Go to https://www.ncbi.nlm.nih.gov/sra/
- Search for specific species name (e.g. fundulus heteroclitus)
- Click the one you would like to download
- Find the RUN# (e.g. SRR4431245) and write down this number
- On terminal,
fastq-dump SRR4431245
Then, the data should be downloaded to your current directory automatically.
This document is modified based on the Wiki page of NCBI GitHub site (https://github.com/ncbi/sra-tools/wiki)