Oops, just realized that I forgot to comment my commit from yesterday so it was clear what was happening

git-svn-id: file:///humgen/gsa-scr1/gsa-engineering/svn_contents/trunk@5938 348d0f76-0448-11de-a6fe-93d51630548a
This commit is contained in:
ebanks 2011-06-03 18:06:41 +00:00
parent e4eb8087bc
commit 80cbc1924b
1 changed files with 1 additions and 1 deletions

View File

@ -435,7 +435,7 @@ public class GenomeLocParser {
// read is unmapped and not placed anywhere on the genome
return GenomeLoc.UNMAPPED;
else {
//
// Use Math.max to ensure that end >= start (Picard assigns the end to reads that are entirely within an insertion as start-1)
int end = read.getReadUnmappedFlag() ? read.getAlignmentStart() : Math.max(read.getAlignmentEnd(), read.getAlignmentStart());
return createGenomeLoc(read.getReferenceName(), read.getReferenceIndex(), read.getAlignmentStart(), end, false);
}