How to Setup SRA Toolkit

Your friendly bioinformatician.
I'm writing this blog to help biologists, or aspiring computational biologist/ bioinformaticians, with little to no experience in coding. Hopefully my writing can help some people who are trying to use computational methods to analyze biological data.
Medium: https://shortlongseq.medium.com/
Substack: https://seqbioinformatics.substack.com/
BuyMeACoffee: https://www.buymeacoffee.com/shortlongseq
Before we download any files from NCIB, there are a couple of preliminary setups one should install. Most of these files are going to be downloaded into your ssh server so make sure you have a designated server account to operate on.
If you have Windows PC trying to get on ssh server you will need PUTTY setup before proceeding.
Open your terminal. Make a new directory and go there using the:
mkdir sra_data #makes new directorycd sra_data #goes to the new directoryTo install SRA Toolkit, go to this link: https://github.com/ncbi/sra-tools/wiki/02.-Installing-SRA-Toolkit
and install the appropriate binaries for your OS. I use Ubuntu on Mac OS so will be using that as an example (command below):
wget --output-document sratoolkit.tar.gz https://ftp-trace.ncbi.nlm.nih.gov/sra/sdk/current/sratoolkit.current-ubuntu64.tar.gzExtract the file in the directory using the command below:
tar -vxzf sratoolkit.tar.gzOnce the file extraction is complete, to properly execute the toolkit create a PATH environment in the terminal using the following command:
cd # goes back to home statusvi .profile # opends the editor to create PATHEnter
Ikey which the terminal screen will change into--Insert--modePaste or input your path:
export PATH=/home/compbio/sra_data/sratoolkit.3.0.1-ubuntu64/bin:$PATHNote: Make sure you are correctly entering the pathway where your toolkit is installed. Notice the end of the directory for the toolkit is
binwhere the software tools e.g.fastq-dumpare located.Press
Esckey to exit the insert mode.
Enter:wqto save your newly created path and exit the editor.Once you are done saving the PATH and have exited the editor, enter
source .profilein the terminal.
Yay! You are all set and ready to go. In the next write-up, I will show you how to download the FASTA/FASTQ files.
Some resources regarding Linux commands and others:
https://linuxize.com/post/how-to-remove-files-and-directories-using-linux-command-line/ (for Linux or Ubuntu command)
https://www.computerhope.com/unix/uvi.htm (for VI file manipulation commands)



