An additional safety check to ensure that we only walk over coordinate-sorted
data when doing locus traversals. git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@3053 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
parent
b4b4e8d672
commit
6cd97b78ab
|
|
@ -667,8 +667,11 @@ public class GenomeAnalysisEngine {
|
|||
throw new StingException("The GATK cannot currently process unindexed BAM files");
|
||||
|
||||
Shard.ShardType shardType;
|
||||
if(walker instanceof LocusWalker)
|
||||
if(walker instanceof LocusWalker) {
|
||||
if(readsDataSource != null && readsDataSource.getSortOrder() != SAMFileHeader.SortOrder.coordinate)
|
||||
Utils.scareUser("Locus walkers can only walk over coordinate-sorted data. Please resort your input BAM file.");
|
||||
shardType = Shard.ShardType.LOCUS;
|
||||
}
|
||||
else if(walker instanceof ReadWalker || walker instanceof DuplicateWalker || walker instanceof ReadPairWalker)
|
||||
shardType = Shard.ShardType.READ;
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in New Issue