线程数对samtools depth xxx.bam计算速度的影响

 

001、

测试如下:

time (samtools depth Iran141.sorted.markdup.bam > xxx ) &> thread_1.time
time (samtools depth -@ 5 Iran141.sorted.markdup.bam > xxx ) &> thread_5.time
time (samtools depth -@ 10 Iran141.sorted.markdup.bam > xxx)  &> thread_10.time
time (samtools depth -@ 20 Iran141.sorted.markdup.bam > xxx)  &> thread_20.time
time (samtools depth -@ 40 Iran141.sorted.markdup.bam > xxx)  &> thread_40.time
time (samtools depth -@ 64 Iran141.sorted.markdup.bam > xxx)  &> thread_64.time

 

 

线程为10时,再增加线程速度没有明显提升。

 

posted @ 2025-01-27 12:37  小鲨鱼2018  阅读(66)  评论(0)    收藏  举报