其他分享
首页 > 其他分享> > Bowtie2 基因组mapping

Bowtie2 基因组mapping

作者:互联网

Bowtie 2是一种超快速且高效存储的工具,可用于将测序序列与参考序列进行比对。

https://github.com/BenLangmead/bowtie2

建立参考基因组索引

# Building a small index
bowtie2-build example/reference/lambda_virus.fa example/index/lambda_virus

# Building a large index
bowtie2-build --large-index example/reference/lambda_virus.fa example/index/lambda_virus

测序文件(fastq)与参考基因对比(mapping)

# Aligning unpaired reads
bowtie2 -x example/index/lambda_virus -U example/reads/longreads.fq

# Aligning paired reads
bowtie2 -x example/index/lambda_virus -1 example/reads/reads_1.fq -2 example/reads/reads_2.fq
fastq fasta格式转化

fastq fasta格式转化

sam bam转化 (samtools工具)

# BAM -> SAM
samtools view -h -o out.sam out.bam

# SAM -> BAM
samtools view -bS out.sam >out.bam
#-b 输出BAM format
#-S 输入SAM格式

标签:virus,index,基因组,mapping,reads,bowtie2,lambda,example,Bowtie2
来源: https://blog.csdn.net/Curry_chenhu/article/details/115842143