Skip to content
Snippets Groups Projects
Commit 4fcfbc85 authored by Aaron's avatar Aaron
Browse files

bamtools GetEndPosition() now defaults to unpadded, zero-based

parent a446d2fb
No related branches found
No related tags found
No related merge requests found
......@@ -228,7 +228,7 @@ void BedGenomeCoverage::CoverageBam(string bamFile) {
// extract the chrom, start and end from the BAM alignment
string chrom(refs.at(bam.RefID).RefName);
CHRPOS start = bam.Position;
CHRPOS end = bam.GetEndPosition(false) - 1;
CHRPOS end = bam.GetEndPosition() - 1;
// are we on a new chromosome?
if ( chrom != _currChromName )
......
......@@ -266,7 +266,7 @@ void BedIntersect::IntersectBam(string bamFile) {
BED a;
a.chrom = refs.at(bam.RefID).RefName;
a.start = bam.Position;
a.end = bam.GetEndPosition(false);
a.end = bam.GetEndPosition();
// build the name field from the BAM alignment.
a.name = bam.Name;
......
......@@ -182,7 +182,7 @@ void BedWindow::WindowIntersectBam(string bamFile) {
BED a;
a.chrom = refs.at(bam.RefID).RefName;
a.start = bam.Position;
a.end = bam.GetEndPosition(false);
a.end = bam.GetEndPosition();
// build the name field from the BAM alignment.
a.name = bam.Name;
......
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