下载source包。
https://github.com/alexdobin/STAR/archive/refs/tags/2.7.9a.tar.gz
解压到指定文件夹下。
tar -zxvf STAR-2.7.9a.tar.gz
cd STAR_2.7.9a
cd source
make STAR
同样的,配置环境变量。
STAR指令在bin文件夹下的Linux_x86_64内。
sudo vi ~/.bashrc
export PATH=/home/zxx/workplace/STAR/bin/Linux_x86_64:$PATH
保存。
source ~/.bashrc
最后,同样的,在任意的路径下输入指令STAR
(注意大小写)。
屏幕显示为:
Usage: STAR [options]… --genomeDir /path/to/genome/index/ --readFilesIn R1.fq R2.fq
Spliced Transcripts Alignment to a Reference © Alexander Dobin, 2009-2020
STAR version=2.7.9a
STAR compilation time,server,dir=2021-05-04T09:43:56-0400 vega:/home/dobin/data/STAR/STARcode/STAR.master/source
For more details see:
https://github.com/alexdobin/STAR
https://github.com/alexdobin/STAR/blob/master/doc/STARmanual.pdf
To list all parameters, run STAR --help
安装完成。