Hello gentlepeople,
I am using the samtools 'mpileup' program.
I wish to generate a pileup file for a specific region.
I have several separate .bam input files that I am generating the pileups for.
Unfortunately, mpileup truncates the region and I only get data for the first part of the region.
I have ran the same command on different .bam files and get different results.
When I command:
samtools mpileup -f 'hg19.fa' -r chr6:27114408-27115845 'experiment01.bam' > out_PILEUP2.pile
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
I get a file with 746 lines.
I am expecting 1438 lines because that is the size of the interval I have specified with the '-r' flag
If I use mpileup with the same region but with a different .bam file I get a different size file.
samtools mpileup -f 'hg19.fa' -r chr6:27114408-27115845 'experiment02.bam' > out_PILEUP3.pile
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
I get a file with 623 lines.
Again, I am expecting 1438 lines because that is the size of the interval I have specified with the '-r' flag.
The first line in both files is for chr6:27114408, as expected.
BUT, the files are truncated at different positions.
With experiment01.bam the final line of the pileup file is chr6:27115577.
With experiment02.bam the final line of the pileup file is chr6:27115344.
This must have something to do with the .bam file.
Can someone tell me which parameter needs to be adjusted?
I have consulted the manual but I could not identify anything that sounded applicable.
Thanks for you time,
Lionel (Lee) Brooks 3rd
Dartmouth Genetics Grad Student
I am using the samtools 'mpileup' program.
I wish to generate a pileup file for a specific region.
I have several separate .bam input files that I am generating the pileups for.
Unfortunately, mpileup truncates the region and I only get data for the first part of the region.
I have ran the same command on different .bam files and get different results.
When I command:
samtools mpileup -f 'hg19.fa' -r chr6:27114408-27115845 'experiment01.bam' > out_PILEUP2.pile
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
I get a file with 746 lines.
I am expecting 1438 lines because that is the size of the interval I have specified with the '-r' flag
If I use mpileup with the same region but with a different .bam file I get a different size file.
samtools mpileup -f 'hg19.fa' -r chr6:27114408-27115845 'experiment02.bam' > out_PILEUP3.pile
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
I get a file with 623 lines.
Again, I am expecting 1438 lines because that is the size of the interval I have specified with the '-r' flag.
The first line in both files is for chr6:27114408, as expected.
BUT, the files are truncated at different positions.
With experiment01.bam the final line of the pileup file is chr6:27115577.
With experiment02.bam the final line of the pileup file is chr6:27115344.
This must have something to do with the .bam file.
Can someone tell me which parameter needs to be adjusted?
I have consulted the manual but I could not identify anything that sounded applicable.
Thanks for you time,
Lionel (Lee) Brooks 3rd
Dartmouth Genetics Grad Student
Comment