Was omitting the INT not using all available threads? Did you look in htop during run?
Stephane Plaisance, Ph.D VIB - Nucleomics Core Address: Herestraat 49, O&N4, Post Box 816, Room nr. 404-24 / 08.428, B-3000 Leuven - Belgium Tel (lync): +32 (0)16 32 00 60 Web: www.nucleomics.be <http://www.nucleomics.be> On 25/08/2021, 15:33, "[email protected]" <[email protected]> wrote: Send Samtools-help mailing list submissions to [email protected] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/samtools-help or, via email, send a message with subject or body 'help' to [email protected] You can reach the person managing the list at [email protected] When replying, please edit your Subject line so it is more specific than "Re: Contents of Samtools-help digest..." Today's Topics: 1. samtools depth multi-threading option (Dr. Frank Vorh?lter) ---------------------------------------------------------------------- Message: 1 Date: Tue, 24 Aug 2021 13:56:48 +0000 From: Dr. Frank Vorh?lter <[email protected]> To: "[email protected]" <[email protected]> Subject: [Samtools-help] samtools depth multi-threading option Message-ID: <[email protected]> Content-Type: text/plain; charset="iso-8859-1" Dear all, after installing samtools 1.13 (using htslib 1.13), I saw from the samtools depth usage message that there is multi-threading option "-@ INT" for samtools depth. I tried the following command to test this option. samtools depth -@ 7 -a -b panel.bed sample_sorted.bam > output.txt It worked fine, but I saw no acceleration when compared to omitting "-@ 7". Likewise, top indicated usage of just one CPU. I accidentally omitted the INT subsequent to -@, leading to the following command. samtools depth -@ -a -b panel.bed sample_sorted.bam > output.txt This resulted in a substantial acceleration, while the result file was identical to the previous call. Should I better use the multi-threading option of samtools depth without indicating the number of intended threads/CPUs? BTW, when I tried to consult the man page of samtools depth ("man samtools depth"), I unfortunately found no information regarding the multithreading option. Best regards Frank Dr. rer. nat. Frank Vorh?lter Leitung Bioinformatik ?ber?rtliche Berufsaus?bungsgemeinschaft - GbR MVZ Dr. Eberhard & Partner Dortmund Brauhausstra?e 4 44137 Dortmund Tel.: +49 231 9572 6612 Mail: [email protected]<mailto:[email protected]> Web: www.medizin-zentrum-dortmund.de<http://www.medizin-zentrum-dortmund.de/> -------------- next part -------------- An HTML attachment was scrubbed... ------------------------------ ------------------------------ Subject: Digest Footer _______________________________________________ Samtools-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/samtools-help ------------------------------ End of Samtools-help Digest, Vol 140, Issue 1 ********************************************* _______________________________________________ Samtools-help mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/samtools-help
