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

vidjil.cpp: W53, level 'warn' only for the first 10 clones

parent 9980968b
......@@ -124,6 +124,7 @@ enum { CMD_WINDOWS, CMD_CLONES, CMD_SEGMENT, CMD_GERMLINES } ;
#define WARN_MAX_CLONES 100
#define WARN_PERCENT_SEGMENTED 40
#define WARN_COVERAGE 0.6
#define WARN_NUM_CLONES_SIMILAR 10
// display
#define WIDTH_NB_READS 7
......@@ -1431,7 +1432,8 @@ int main (int argc, char **argv)
if (cc)
{
cout << " (similar to Clone #" << setfill('0') << setw(WIDTH_NB_CLONES) << cc << setfill(' ') << ")";
json_add_warning(json_clone, "W53", "Similar to another clone " + code);
json_add_warning(json_clone, "W53", "Similar to another clone " + code,
num_clone <= WARN_NUM_CLONES_SIMILAR ? LEVEL_WARN : LEVEL_INFO);
nb_edges++ ;
out_edges << clones_map_windows[code] + " " + it->first + " " ;
......
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