Skip to content

Commit ea2865e

Browse files
Entirely removing the instance variable of MappedRead that holds the per-base quality scores
1 parent 6708e49 commit ea2865e

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

MappedRead.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ MappedRead::MappedRead(const string &line) {
5353
end = start + seq.length();
5454
}
5555
r = GenomicRegion(chrom, start, end, name, score, strand);
56+
is >> scr;
5657
}
5758
else throw runtime_error("bad line in MappedRead file: " + line);
5859
}
@@ -62,5 +63,7 @@ MappedRead::tostring() const {
6263
std::ostringstream oss;
6364
oss << r; // no chaining for the << of GenomicRegion
6465
oss << '\t' << seq;
66+
if (!scr.empty())
67+
oss << '\t' << scr;
6568
return oss.str();
6669
}

MappedRead.hpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ struct MappedRead {
3030
explicit MappedRead(const std::string &line);
3131
GenomicRegion r;
3232
std::string seq;
33+
std::string scr;
3334
std::string tostring() const;
3435
};
3536

0 commit comments

Comments
 (0)