htslib官网上给的一个WGS/WES的流程。关于htslib、samtools和bcftools之间的关系,可以在sanger官网查看其解释:
HTSlib is a software library for manipulating various sequencing and variant file formats: SAM, BAM, CRAM, VCF, and BCF. SAMtools and BCFtools are applications built around HTSlib, performing format conversion, file merging and splitting, sorting, variant calling, and much more.
workflow主要三步骤:
Mapping
Improvement
Variant Calling
bwa index
bwa mem -R '@RG\tID:foo\tSM:bar\tLB:library1'
samtools fixmate -O bam
samtools sort -O bam -o
java -Xmx2g -jar GenomeAnalysisTK.jar -T RealignerTargetCreator -R
java -Xmx4g -jar GenomeAnalysisTK.jar -T IndelRealigner -R
ava -Xmx4g -jar GenomeAnalysisTK.jar -T BaseRecalibrator -R
java -Xmx2g -jar GenomeAnalysisTK.jar -T PrintReads -R
#MarkDuplicates
java -Xmx2g -jar MarkDuplicates.jar VALIDATION_STRINGENCY=LENIENT INPUT=
samtools merge
samtools index
java -Xmx2g -jar GenomeAnalysisTK.jar -T RealignerTargetCreator -R
java -Xmx4g -jar GenomeAnalysisTK.jar -T IndelRealigner -R
samtools index
bcftools mpileup -Ou -f
bcftools mpileup -Ob -o
bcftools call -vmO z -o
tabix -p vcf
bcftools stats -F
mkdir plots
plot-vcfstats -p plots/
bcftools filter -O z -o
手机扫一扫
移动阅读更方便
你可能感兴趣的文章