The assumption for things like SomaticStandardCaller (or others that use pileupFlatMap) is that --loci controls the loci at which to examine pileups. However, when using CappedRegionsPartitioner this is not the case.
For example, if I pass --loci 20:362209-362212,20:362213-362214,20:362215-362216,20:362217-362618 where I skip loci 362212, 362214 and 362216
This can be resolved with --trim-ranges but I think that should be the default then? Otherwise, I'm not sure how TakeLociIterator differentiates between empty loci and excluded loci.
The assumption for things like
SomaticStandardCaller
(or others that usepileupFlatMap
) is that--loci
controls the loci at which to examine pileups. However, when usingCappedRegionsPartitioner
this is not the case.For example, if I pass
--loci 20:362209-362212,20:362213-362214,20:362215-362216,20:362217-362618
where I skip loci362212
,362214
and362216
I get the following partitioning:
The first,
20:362209-362226=0
, covers the loci that were explicitly excluded in the--loci
argument and will then runpilupFlatMap
at those positions.