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

Updated bamToBed to include new AlignmentEnd method.

parent b08a7946
No related branches found
No related tags found
No related merge requests found
......@@ -201,6 +201,7 @@ void ParseCigarBed(const vector<CigarOp> cigar, unsigned int &alignmentEnd) {
}
void ParseCigarBed12(const vector<CigarOp> cigar, vector<int> &blockStarts, vector<int> &blockLengths, unsigned int &alignmentEnd) {
int currPosition = 0;
......@@ -245,9 +246,9 @@ void PrintBed(const BamAlignment &bam, const RefVector &refs, bool useEditDista
if (bam.IsSecondMate()) name += "/2";
// rip through the CIGAR string and reconstruct the alignment coordinates
unsigned int alignmentEnd;
ParseCigarBed(bam.CigarData, alignmentEnd);
alignmentEnd += bam.Position;
unsigned int alignmentEnd = bam.GetAlignmentEnd();
//ParseCigarBed(bam.CigarData, alignmentEnd);
//alignmentEnd += bam.Position;
// report the alignment in BED6 format.
if (useEditDistance == false) {
......
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