1. 构建基因组index
hisat2-build \
-p 20\
./genome.fa \
./reference \
&> hisat2-build.log
2. 比对
hisat2 \
--new-summary \
-p 20 \
-x ./reference \
-1 ${sample}_1.fastp.fq.gz \
-2 ${sample}_2.fastp.fq.gz \
-S ${sample}.sam \
&> ${sample}.log
3. sam2bam并sort
samtools sort \
../tpm/${sample}.sam \
-o ${sample}.sort.bam \
-@ 20
samtools sort
samtools view
参考
HISAT2 github 地址:http://daehwankimlab.github.io/hisat2/
samtools:http://samtools.sourceforge.net/