From 344b583f4d62e2ab53bb39b757af95c2ac0641c9 Mon Sep 17 00:00:00 2001 From: Mathieu Giraud Date: Mon, 29 Jan 2018 19:34:55 +0100 Subject: [PATCH] vidjil.cpp: update stdout message on window size See #3011. --- algo/vidjil.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/algo/vidjil.cpp b/algo/vidjil.cpp index d10e1f002..e85b45bba 100644 --- a/algo/vidjil.cpp +++ b/algo/vidjil.cpp @@ -1031,7 +1031,12 @@ int main (int argc, char **argv) //$$ Kmer Segmentation cout << endl; - cout << "Loop through reads, looking for windows" << endl ; + cout << "Loop through reads, "; + + if (wmer_size != NO_LIMIT_VALUE) + cout << "looking for windows up to " << wmer_size << "bp" << endl; + else + cout << "considering all analyzed reads as windows" << endl; ofstream *out_segmented = NULL; ofstream *out_unsegmented = NULL; @@ -1107,11 +1112,7 @@ int main (int argc, char **argv) int nb_segmented = we.getNbSegmented(TOTAL_SEG_AND_WINDOW); float ratio_segmented = 100 * (float) nb_segmented / nb_total_reads ; - if (wmer_size != NO_LIMIT_VALUE) - stream_segmentation_info << " ==> found " << windowsStorage->size() << " " << wmer_size<< "-windows in " ; - else - stream_segmentation_info << " ==> consider as windows these " ; - + stream_segmentation_info << " ==> found " << windowsStorage->size() << " windows in " ; stream_segmentation_info << nb_segmented << " reads" << " (" << setprecision(3) << ratio_segmented << "% of " << nb_total_reads << " reads)" << endl ; -- 2.22.0