Commit a03faeba authored by Mikaël Salson's avatar Mikaël Salson

segment.cpp: reversed is only defined when sequence is segmented

parent ae1a0cd8
......@@ -163,8 +163,12 @@ Segmenter::~Segmenter() {}
Sequence Segmenter::getSequence() const {
Sequence s ;
s.label_full = info ;
s.label = label + " " + (reversed ? "-" : "+");
s.sequence = revcomp(sequence, reversed);
if (segmented) {
s.label = label + " " + (reversed ? "-" : "+");
s.sequence = revcomp(sequence, reversed);
} else {
s.sequence = sequence;
}
return s ;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment