From 77384a03c987cee7d2c272149851f58ee6f7c928 Mon Sep 17 00:00:00 2001 From: "Brian P. Walenz" Date: Wed, 3 Mar 2021 19:42:23 -0500 Subject: [PATCH] Only report removed/split/merged if at least one event occurred. --- src/merfin/vcf.C | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/merfin/vcf.C b/src/merfin/vcf.C index bb58f4e..231a612 100644 --- a/src/merfin/vcf.C +++ b/src/merfin/vcf.C @@ -226,9 +226,10 @@ vcfFile::mergeChrPosGT(uint32 ksize, uint32 comb, bool nosplit) { } fprintf(stderr, "%s : Reduced %lu variants down to %lu combinations for evaluation:\n", chr.c_str(), inlist.size(), otlist->size()); - fprintf(stderr, "%s : Removed %u empty alleles.\n", chr.c_str(), removed); - fprintf(stderr, "%s : Split %u complicated combinations.\n", chr.c_str(), split); - fprintf(stderr, "%s : Merged %u variants into combinations.\n", chr.c_str(), merged); + + if (removed > 0) fprintf(stderr, "%s : Removed %u empty alleles.\n", chr.c_str(), removed); + if (split > 0) fprintf(stderr, "%s : Split %u complicated combinations.\n", chr.c_str(), split); + if (merged > 0) fprintf(stderr, "%s : Merged %u variants into combinations.\n", chr.c_str(), merged); delete _mapChrPosGT[chr]; _mapChrPosGT[chr] = otlist;