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

Added +1 to start reporting for GFF features.

parent 204128fd
No related branches found
No related tags found
No related merge requests found
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
No preview for this file type
......@@ -696,7 +696,7 @@ void BedFile::reportBedRangeTab(const BED &bed, int start, int end) {
}
else if (this->bedType == 9) {
printf ("%s\t%s\t%s\t%d\t%d\t%s\t%s\t%s\t%s\t", bed.chrom.c_str(), bed.otherFields[0].c_str(),
bed.name.c_str(), start, end,
bed.name.c_str(), start+1, end,
bed.score.c_str(), bed.strand.c_str(),
bed.otherFields[1].c_str(), bed.otherFields[2].c_str());
......@@ -740,9 +740,9 @@ void BedFile::reportBedRangeNewLine(const BED &bed, int start, int end) {
}
printf("\n");
}
else if (this->bedType == 9) {
else if (this->bedType == 9) { // add 1 to the start for GFF
printf ("%s\t%s\t%s\t%d\t%d\t%s\t%s\t%s\t%s\n", bed.chrom.c_str(), bed.otherFields[0].c_str(),
bed.name.c_str(), start, end,
bed.name.c_str(), start+1, end,
bed.score.c_str(), bed.strand.c_str(),
bed.otherFields[1].c_str(), bed.otherFields[2].c_str());
......
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