Entering edit mode
7.5 years ago
top1214
▴
20
I'm trying to run to get variants called from a (merged) bam file (presumably using bfctools).
$ samtools mpileup merged.bamfile.bam
works fine, spitting out in pileup format.
However,
$ samtools mpileup -g merged.bamfile.bam
I get the following error message
[mpileup] 1 samples in 1 input files
<mpileup> Set max per-file depth to 8000
Assertion failed: (q), function group_smpl, file bam_plcmd.c, line 287.
Abort trap: 6
The same thing happens with -u or -v flags.
This is not a general problem, as I can use the flags on a different bam file.
I didn't realize there was an update 2 months ago. I was using 1.3.1
I did have read-groups during alignment. How do I diagnose what the read-group problems are?
there is an assertion about RG a line 299: https://github.com/samtools/samtools/blob/master/bam_plcmd.c#L299
Treating the samples as different was not actually important to my project, so just using the -R flag to ignore the read group lines solved my particular problem.