-
Notifications
You must be signed in to change notification settings - Fork 247
02. Installing SRA Toolkit
Andrew Klymenko edited this page Aug 5, 2022
·
12 revisions
The SRA Toolkit provides 64-bit binary installations for the Ubuntu and CentOS Linux distributions, for Mac OS X, and for Windows.
OS | are available here |
---|---|
Windows | sratoolkit.current-win64.zip |
Ubuntu | sratoolkit.current-ubuntu64.tar.gz |
CentOS | sratoolkit.current-centos_linux64.tar.gz |
Mac OS X | sratoolkit.current-mac64.tar.gz |
- Download the zip file from the link given above
- Extract it to your desktop, for example
- Open a command shell, for example Start/Run
cmd.exe
-
cd
to the directory you extracted the zip file to, for exampleDesktop
cd bin
- Proceed to the Quick Configuration Guide
- Test that the toolkit is functional:
fastq-dump --stdout -X 2 SRR390728
Within a few seconds, the command should produce this exact output (and nothing else):
Read 2 spots for SRR390728
Written 2 spots for SRR390728
@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
- For Ubuntu,
wget --output-document sratoolkit.tar.gz https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-ubuntu64.tar.gz
- For CentOS,
wget --output-document sratoolkit.tar.gz https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-centos_linux64.tar.gz
- For Mac OS X, (or use
wget
if you prefer)
curl --output sratoolkit.tar.gz https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-mac64.tar.gz
tar -vxzf sratoolkit.tar.gz
Note the name of the directory that tar
created. The name of this directory changes with each release and varies by platform, i.e. it follows the pattern sratoolkit.<release>-<platform>
e.g. sratoolkit.3.0.0-mac64
for the 3.0.0 release for Mac OS X.
3. For convenience (and to show you where the binaries are) append the path to the binaries to your PATH
environment variable:
export PATH=$PATH:$PWD/sratoolkit.3.0.0-mac64/bin
which fastq-dump
This should produce output similar to:
/Users/JoeUser/sratoolkit.3.0.0-mac64/bin/fastq-dump
5. Proceed to the Quick Configuration Guide
fastq-dump --stdout -X 2 SRR390728
Within a few seconds, the command should produce this exact output (and nothing else):
Read 2 spots for SRR390728
Written 2 spots for SRR390728
@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