Commit 6e729a6e authored by Mathieu Giraud's avatar Mathieu Giraud

vidjil.cpp: warn if no clones are found, and in this case supress uninteresting output

Side effect: no 'clones.vdj.fa' and 'seq/*' files are produced.
The 'vidjil.data' file is still produced.
parent 08fbf9fc
......@@ -748,6 +748,14 @@ int main (int argc, char **argv)
cout << " ==> " << clones_windows.size() << " clones" << endl ;
if (clones_windows.size() == 0)
{
cout << " ! No clones with current parameters." << endl;
cout << " ! See the 'Limits to report a clone' options (-R, -%, -z, -A)." << endl;
}
else // clones_windows.size() > 0
{
//$$ Sort clones, number of occurrences
//////////////////////////////////
cout << "Sort clones by number of occurrences" << endl;
......@@ -1229,6 +1237,9 @@ int main (int argc, char **argv)
delete scorer;
}
} // endif (clones_windows.size() > 0)
//$$ .json output: json_data_segment
string f_json = out_dir + prefix_filename + "vidjil" + JSON_SUFFIX ; // TODO: retrieve basename from f_reads instead of "vidjil"
......
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