Commit 3b80f387 authored by Mathieu Giraud's avatar Mathieu Giraud

core/segment.h, core/windowExtractor.cpp, vidjil.cpp: option '-uu', do not...

core/segment.h, core/windowExtractor.cpp, vidjil.cpp: option '-uu', do not create files for segmented sequences

We start the file creation at STATS_FIRST_UNSEG.
parent f37be391
......@@ -54,6 +54,9 @@ enum SEGMENTED { NOT_PROCESSED,
UNSEG_TOO_SHORT_FOR_WINDOW,
STATS_SIZE } ;
#define STATS_FIRST_UNSEG UNSEG_TOO_SHORT
const char* const segmented_mesg[] = { "?",
"SEG",
"SEG_+", "SEG_-",
......
......@@ -90,7 +90,7 @@ WindowsStorage *WindowExtractor::extract(OnlineFasta *reads,
if (out_unsegmented) {
*out_unsegmented << *seg ;
}
if (out_unsegmented_detail) {
if (out_unsegmented_detail && (seg->getSegmentationStatus() >= STATS_FIRST_UNSEG)) {
*out_unsegmented_detail[seg->getSegmentationStatus()] << *seg ;
}
}
......
......@@ -1032,7 +1032,7 @@ int main (int argc, char **argv)
}
if (output_unsegmented_detail) {
for (int i=0; i<STATS_SIZE; i++)
for (int i=STATS_FIRST_UNSEG; i<STATS_SIZE; i++)
{
// Sanitize segmented_mesg[i]
string s = segmented_mesg[i] ;
......
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