Commit 8c03ac6d authored by Mikaël Salson's avatar Mikaël Salson Committed by Mathieu Giraud
Browse files

read_score.cpp: ReadQualityScore must also work without quality

If the quality is not provided we default to a good quality.
parent 28614c98
...@@ -90,5 +90,7 @@ float ReadQualityScore::getScore(const Sequence &sequence) const { ...@@ -90,5 +90,7 @@ float ReadQualityScore::getScore(const Sequence &sequence) const {
} }
} }
free(qualities); free(qualities);
if (! percent_quality)
percent_quality = GOOD_QUALITY;
return percent_quality * sequence.sequence.size() / GOOD_QUALITY; return percent_quality * sequence.sequence.size() / GOOD_QUALITY;
} }
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