Dear Pierre,
Thanks for the answer. So just to be clear i need to run separately for each chromosome
samtools mpileup -f assembly.fa -r chr1 Nor_1.bam Tum_1.bam Nor_2.bam Tum_2.bam Nor_3.bam Tum_3.bam Nor_N.bam Tum_N.bam > mplie_N1.mpileup
samtools mpileup -f assembly.fa -r chr2 Nor_1.bam Tum_1.bam Nor_2.bam Tum_2.bam Nor_3.bam Tum_3.bam Nor_N.bam Tum_N.bam > mplie_N2.mpileup
So to make these run in parallel, i need to submit the jobs separately in different bash scripts ? I guess if I put all these commands in a single bash script they will run sequentially. Right ? Though it might be faster when chr is separated.
Next, when we have this multiple mpileup results, can we simple concatenate in single file :
like cat mplie_N1.mpileup mplie_N2.mpileup > mplie_total.mpileup
Or does samtools have some functions to concat them.
thanks !
Cheers
Chirag