Random subsample from a BAM file 发表于 2017-06-21 | 分类于 Cheetsheets picard DownsampleSam1java -jar picard.jar DownsampleSam P=0.25 I=QX70A.sorted.bam O=QX70A.Per0.25.bam CREATE_INDEX=true picard samtools -s1samtools view -h -b -s 0.25 QX70A.sorted.bam -o QX70A.Per0.25.bam GATK -dfrac1java -jar GenomeAnalysisTK.jar -T PrintReads -R ref.fa -I input.bam -o output.bam -dfrac 0.25