Closed vladimirg closed 8 years ago
Parallelizing mpileup is possible by running parallel instances of mpileup on different regions (https://www.biostars.org/p/48781/). We could run it per chromosome, as there are usually more chromosomes than cores anyway, making sure that at any given moment the number of running mpileup instances is the number of available cores.
Our current version of samtools (0.1.18) doesn't support parallelization, but the recent version (1.3.1) does (the -@ flag for the view and sort commands). The output formats should remain the same, but parameters given to samtools might have changed since then. Worth an investigation - can shave off some time off the processing.
Requires #32 .