Skip to content

Commit

Permalink
Only report removed/split/merged if at least one event occurred.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Mar 4, 2021
1 parent 23749aa commit 77384a0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/merfin/vcf.C
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 77384a0

Please sign in to comment.