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

[BUG] -split, -tag and BED6 output was not implemented.

parent 3f674b71
No related branches found
No related tags found
No related merge requests found
...@@ -479,13 +479,26 @@ void PrintBed(const BamAlignment &bam, const RefVector &refs, ...@@ -479,13 +479,26 @@ void PrintBed(const BamAlignment &bam, const RefVector &refs,
unsigned int i; unsigned int i;
for (i = 0; i < bedBlocks.size(); ++i) { for (i = 0; i < bedBlocks.size(); ++i) {
BED curr = bedBlocks[i]; BED curr = bedBlocks[i];
printf("%s\t%d\t%d\t\%s\t%d\t%s\n",
chrom.c_str(), if (bamTag == "") {
curr.start, printf("%s\t%d\t%d\t\%s\t%d\t%s\n",
curr.end, chrom.c_str(),
name.c_str(), curr.start,
bam.MapQuality, curr.end,
strand.c_str()); name.c_str(),
bam.MapQuality,
strand.c_str());
}
else {
cout << chrom << "\t"
<< bam.Position << "\t"
<< curr.start << "\t"
<< curr.end << "\t"
<< name << "\t"
<< PrintTag(bam, bamTag) << "\t"
<< strand
<< endl;
}
} }
} }
} }
......
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