BSA分析(二)软件安装

2023-05-17  本文已影响0人  Bioinfor生信云

本节带领大家安装BSA项目分析所需的软件。

conda安装

conda 可以自动安装软件,非常适合初学者使用。并且可以创建多个环境,来安装需要较多依赖些软件。

# 下载 Anaconda
wget https://repo.anaconda.com/archive/Anaconda3-2023.03-1-Linux-x86_64.sh

# 安装anaconda
bash Anaconda3-2023.03-1-Linux-x86_64.sh

# 配置conda channels(使用清华的镜像,也可以选择其它的)
channels:
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/pytorch/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/menpo/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/bioconda/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/msys2/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/cloud/conda-forge/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/main/
- https://mirrors.tuna.tsinghua.edu.cn/anaconda/pkgs/free/
- defaults
show_channel_urls: true

# 使用 conda 安装和管理 python 模块
conda install biopython

# conda安装软件,首先建一个新的conda环境,再安装软件
conda create -n xxx
conda activate XXX
conda install fastqc  fastp bwa samtools picard gatk4 bcftools hisat2 seqtk seqkit bedtools snpeff vcftools plink mutmap qtlseq 

R包安装

inatall.packages(c("argparser","ggplot2","patchwork"))
install.packages(c("formattable","rjson","tidyverse"))
install.packages("seqinr")
BiocManager::install("AnnotationForge")
BiocManager::install("clusterProfiler")
BiocManager::install("MMAPPR2")

手动安装

# 手动安装
wget https://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.9.zip
unzip fastqc_v0.11.9.zip
cd FastQC/
chmod 755 ./fastqc
# 手动安装
wget http://opengene.org/fastp/fastp
chmod a+x ./fastp
# 手动安装
git clone https://github.com/lh3/bwa.git
cd bwa
make
# 手动安装
wget https://github.com/samtools/samtools/releases/download/1.13/samtools-1.13.tar.bz2
tar -xvf samtools-1.13.tar.bz2
cd samtools-1.13
./configure
make
# 免安装下载即可
wget https://github.com/broadinstitute/picard/releases/download/2.25.7/picard.jar
# 免安装下载即可
wget https://github.com/broadinstitute/gatk/releases/download/4.2.2.0/gatk-4.2.2.0.zip
unzip gatk-4.2.2.0.zip
# 手动安装
wget https://github.com/samtools/bcftools/releases/download/1.13/bcftools-1.13.tar.bz2
tar -jxvf bcftools-1.13.tar.bz2
cd bcftools-1.13
./configure
make
# 下载后解压缩即可
git clone https://github.com/BGI-shenzhen/Reseqtools.git
cd Reseqtools
tar -zxvf iTools_Code20180520.tar.gz
# 下载后解压缩即可
git clone https://github.com/BGI-shenzhen/Reseqtools.git
cd Reseqtools
tar -zxvf iTools_Code20180520.tar.gz
# 下载后解压缩即可
wget http://daehwankimlab.github.io/hisat2/download/#version-hisat2-221
unzip hisat2-2.2.1-Linux_x86_64.zip
# 普通用户安装
git clone https://github.com/lh3/seqtk.git;
cd seqtk
make
# 选择服务器系统对应版本,下载后直接解压即可
wget https://github.com/shenwei356/seqkit/releases/download/v2.0.0/seqkit_linux_arm64.tar.gz
tar -zxvf seqkit_linux_arm64.tar.gz
# 下载后修改权限即可
wget https://github.com/arq5x/bedtools2/releases/download/v2.30.0/bedtools.static.binary
mv bedtools.static.binary
chmod 755 bedtools.static.binary
# java软件 官网下载后解压缩即可
unzip snpEff_latest_core.zip

# 为perl语言编写,解压后即可使用
tar -zxvf annovar.latest.tar.gz
# 直接下载可执行程序,添加可执行权限即可
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/gtfToGenePred
wget http://hgdownload.cse.ucsc.edu/admin/exe/linux.x86_64/gff3ToGenePred
chmod 755 gtfToGenePred
chmod 755 gff3ToGenePred
## 下载后解压即可
wget https://s3.amazonaws.com/plink1-assets/plink_linux_x86_64_20210606.zip
unzip plink_linux_x86_64_20210606.zip -d plink1.9

conda install mutmap qtlseq
 
上一篇下一篇

猜你喜欢

热点阅读