Commit 12bf73d1 authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.{cpp,h}: SEG_METHOD_ONE, too short reads will produce UNSEG_TOO_SHORT_FOR_WINDOW

parent 58ea2f53
......@@ -479,6 +479,12 @@ KmerSegmenter::KmerSegmenter(Sequence seq, Germline *germline, double threshold,
int pos = kaa.minimize(kmer, DEFAULT_MINIMIZE_ONE_MARGIN, DEFAULT_MINIMIZE_WIDTH);
if (pos == 0)
{
because = UNSEG_TOO_SHORT_FOR_WINDOW;
return ;
}
segmented = true ;
because = reversed ? SEG_MINUS : SEG_PLUS ;
......
......@@ -50,6 +50,7 @@
#define DEFAULT_MINIMIZE_ONE_MARGIN 20
using namespace std;
using json = nlohmann::json;
......
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