Tools & Files
Check other lighter and faster versions: Miniconda, Miniforge, Mamba & Minimamba
$ cd Desktop
$ mkdir bgap
$ mkdir bgap/resources
$ cd bgap/resources
$ wget https://repo.anaconda.com/archive/Anaconda3-2022.10-Linux-x86_64.sh
$ chmod +x Anaconda3-2022.10-Linux-x86_64.sh
$ Anaconda3-2022.10-Linux-x86_64.sh
(base) prefix will be shown. Check the installed environments
$ conda info --envs
$ conda config --add channels defaults
$ conda config --add channels bioconda
$ conda config --add channels conda-forge
$ conda config --set channel_priority strict
conda (optional step)
$ conda update -n base -c defaults conda
sra
$ conda create -n sra -y
base environment and activate sra environment
$ conda deactivate
$ conda activate sra
sra-tools from anaconda.org
$ conda install -c bioconda sra-tools=3.0
$ srapath --version
$ prefetch SRR22388518 -p
If downloaded successfully, the following message will appear
2023-03-09T14:56:10 prefetch.3.0.3: Current preference is set to retrieve SRA Normalized Format files with full base quality scores.
2023-03-09T14:56:11 prefetch.3.0.3: 1) Downloading 'SRR22388518'...
2023-03-09T14:56:11 prefetch.3.0.3: SRA Normalized Format file is being retrieved, if this is different from your preference, it may be due to current file availability.
2023-03-09T14:56:11 prefetch.3.0.3: Downloading via HTTPS...
|-------------------------------------------------- 100%
2023-03-09T15:13:42 prefetch.3.0.3: HTTPS download succeed
2023-03-09T15:13:43 prefetch.3.0.3: 'SRR22388518' is valid
2023-03-09T15:13:43 prefetch.3.0.3: 1) 'SRR22388518' was downloaded successfully
2023-03-09T15:13:43 prefetch.3.0.3: 'SRR22388518' has 0 unresolved dependencies
$ fasterq-dump SRR22388518/SRR22388518.sra
$ rm -r SRR22388518
$ mkdir ../reads
$ mv *fastq ../reads/
$ cd ../reads
$ mv SRR22388518_1.fastq a45_R1.fastq
$ mv SRR22388518_2.fastq a45_R2.fastq
sra environment and create qc environment
$ conda deactivate
$ conda create -n qc -y
qc and install FastQC, BBDuk and Trimmomatic(Optional) - Always check the versions
$ conda activate qc
$ conda install -c bioconda fastqc trimmomatic bbmap
$ fastqc
$ trimmomatic -version
$ bbduk.sh -h
qc environment and create mappers environment
$ conda deactivate
$ conda create -n mappers -y
mappers and install bwa, bcftools, and samtools
$ conda activate mappers
$ conda install -c bioconda bwa bcftools samtools
$ bwa
$ bcftools -h
$ samtools --help
samtools: error while loading shared libraries: libncurses.so.5: cannot open shared object file: No such file or directory $ sudo dnf install ncurses-libs
$ sudo dnf install ncurses-devel
$ sudo dnf install ncurses-compat-libs
Ubuntu users:
$ sudo apt-get install libncurses5
$ sudo apt-get install ia32-libs
bam2fastq. It requires an older version of samtools. Create new environment
$ conda deactivate
$ conda create -n bam2fastq -y
$ conda activate bam2fastq
$ conda install -c yuxiang bam2fastq
emboss in a new environment
$ conda deactivate
$ conda create -n emboss -y
$ conda activate emboss
$ conda install -c bioconda emboss
mappers environment and create assemblers environment
$ conda deactivate
$ conda create -n assemblers -y
assemblers. Install SPAdes & Barrnap
$ conda activate assemblers
$ conda install -c bioconda spades barrnap
$ spades -h
$ barrnap --help