Skip to content
Snippets Groups Projects
Commit ba984f32 authored by Aaron Quinlan's avatar Aaron Quinlan
Browse files

Merge pull request #63 from lindenb/fixBlockedIntervals

support for operators 'X' and '=' in method BlockedIntervals.cpp/GetBamB...
parents 57ce8d4e fd7becfc
No related branches found
No related tags found
No related merge requests found
......@@ -33,7 +33,7 @@ void GetBamBlocks(const BamAlignment &bam,
vector<CigarOp>::const_iterator cigEnd = bam.CigarData.end();
for (; cigItr != cigEnd; ++cigItr) {
switch (cigItr->Type) {
case ('M') :
case ('M') :case ('X'): case ('='):
blockLength += cigItr->Length;
case ('I') : break;
case ('S') : break;
......@@ -58,7 +58,7 @@ void GetBamBlocks(const BamAlignment &bam,
}
case ('H') : break; // for 'H' - do nothing, move to next op
default :
printf("ERROR: Invalid Cigar op type\n"); // shouldn't get here
fprintf(stderr,"ERROR: Invalid Cigar op type \'%c\'.\n",cigItr->Type); // shouldn't get here
exit(1);
}
}
......@@ -119,4 +119,4 @@ int GetTotalBlockLength(const bedVector &bedBlocks) {
total_size += blockItr->end - blockItr->start;
}
return total_size;
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment