Skip to content
Snippets Groups Projects
Commit 3491dd54 authored by Aaron's avatar Aaron
Browse files

Fixed getBamBlocks()

parent f82d2d22
No related branches found
No related tags found
No related merge requests found
...@@ -47,11 +47,14 @@ namespace BamTools { ...@@ -47,11 +47,14 @@ namespace BamTools {
if (breakOnDeletionOps == false) if (breakOnDeletionOps == false)
currPosition += cigItr->Length; currPosition += cigItr->Length;
else { else {
blocksFound = true;
currPosition += cigItr->Length; currPosition += cigItr->Length;
blockStart = currPosition; blockStart = currPosition;
} }
} }
else if (cigItr->Type == 'N') { else if (cigItr->Type == 'N') {
blocks.push_back( BED(chrom, blockStart, currPosition, name, score, strand) );
blocksFound = true;
currPosition += cigItr->Length; currPosition += cigItr->Length;
blockStart = currPosition; blockStart = currPosition;
} }
......
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