安裝這個(gè)Trim Galore軟件上之前需要安裝好Fastqc和cutadapt兩個(gè)軟件:
1. 安裝Fastqc
wget http://www.bioinformatics.babraham.ac.uk/projects/fastqc/fastqc_v0.11.8.zip
unzip fastqc_v0.11.8.zip
cd? /data/tools/FastQC
chmod u+x fastqc? 或者 chmod 754 fastqc? ? ? #設(shè)置可執(zhí)行權(quán)限
###配置環(huán)境變量
vim ~/.bashrc
export PATH="/data/tools/FastQC:$PATH"? # 添加至文件最后一行
source ~/.bashrc? #使配置文件生效
fastqc --help? #測(cè)試
2.安裝cutadapt
cutadapt下載源代碼:https://github.com/marcelm/cutadapt
1、conda 安裝成功;但調(diào)用的時(shí)候一直出問題,也找不到原因,于是換成源碼安裝(捂臉。。)
2、嘗試源碼安裝:
? ? ? ? ??git clone https://github.com/marcelm/cutadapt/
? ?? ?????cd cutadapt
? ????????chmod 777 setup.py
? ?? ?????python setup.py?
然后就是遇到各種Python(報(bào)錯(cuò))
configure: error: No modern nasm or yasm found as required. Nasm should be v2.11.01 or later (v2.13)
pkg_resources.VersionConflict: (PyYAML 3.11 (**********), Requirement.parse('pyyaml>=4'))
于是各種更新:
python3 -m pip install --upgrade pip -i https://pypi.douban.com/simple
python3 -m pip install nasm
python3 -m pip list
直到?jīng)]有出現(xiàn)報(bào)錯(cuò)
cutadapt --version? ? ? #檢查是否安裝成功
###配置環(huán)境變量(同上)
3.安裝Trim Galore
3.1. 源代碼下載:https://github.com/FelixKrueger/TrimGalore
查看安裝日志:Installation:
Trim Galore!is a a Perl wrapper around two tools:CutadaptandFastQC. To use, ensure that these two pieces of software are available and copy the trim_galore script to a location available on the PATH.
For example:
#Check that cutadapt is installed
cutadapt --version
#Check that FastQC is installed
fastqc -v
#Install Trim Galore!
curl -fsSL https://github.com/FelixKrueger/TrimGalore/archive/0.4.5.tar.gz -o trim_galore.tar.gz?
tar xvzf trim_galore.tar.gz
TrimGalore-0.4.5/trim_galore? ? ? ? ? ? #檢查是否安裝成功

下載源碼安裝成功!
###配置環(huán)境變量(同上)