Skip to content

Commit

Permalink
Fix typo and inconsistency in filter report
Browse files Browse the repository at this point in the history
  • Loading branch information
lczech committed Jun 3, 2024
1 parent c8c2b42 commit dbc1fa0
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions lib/genesis/population/filter/sample_counts_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,13 @@ std::ostream& print_sample_counts_filter_category_stats(

// Go through all possible enum values and print them
if( stats[SampleCountsFilterTagCategory::kMissingInvalid] > 0 || verbose ) {
os << "Missing: " << stats[SampleCountsFilterTagCategory::kMissingInvalid] << "\n";
os << "Missing: " << stats[SampleCountsFilterTagCategory::kMissingInvalid] << "\n";
}
if( stats[SampleCountsFilterTagCategory::kNumeric] > 0 || verbose ) {
os << "Numerical: " << stats[SampleCountsFilterTagCategory::kNumeric] << "\n";
os << "Numeric: " << stats[SampleCountsFilterTagCategory::kNumeric] << "\n";
}
if( stats[SampleCountsFilterTagCategory::kPassed] > 0 || verbose ) {
os << "Passed: " << stats[SampleCountsFilterTagCategory::kPassed] << "\n";
os << "Passed: " << stats[SampleCountsFilterTagCategory::kPassed] << "\n";
}
return os;
}
Expand Down
12 changes: 6 additions & 6 deletions lib/genesis/population/filter/variant_filter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -276,22 +276,22 @@ std::ostream& print_variant_filter_category_stats(

// Go through all possible enum values and print them
if( stats[VariantFilterTagCategory::kMasked] > 0 || verbose ) {
os << "Masked: " << stats[VariantFilterTagCategory::kMasked] << "\n";
os << "Masked: " << stats[VariantFilterTagCategory::kMasked] << "\n";
}
if( stats[VariantFilterTagCategory::kMissingInvalid] > 0 || verbose ) {
os << "Missing: " << stats[VariantFilterTagCategory::kMissingInvalid] << "\n";
os << "Missing: " << stats[VariantFilterTagCategory::kMissingInvalid] << "\n";
}
if( stats[VariantFilterTagCategory::kSamplesFailed] > 0 || verbose ) {
os << "No samples: " << stats[VariantFilterTagCategory::kSamplesFailed] << "\n";
os << "Empty: " << stats[VariantFilterTagCategory::kSamplesFailed] << "\n";
}
if( stats[VariantFilterTagCategory::kNumeric] > 0 || verbose ) {
os << "Numrica;: " << stats[VariantFilterTagCategory::kNumeric] << "\n";
os << "Numric: " << stats[VariantFilterTagCategory::kNumeric] << "\n";
}
if( stats[VariantFilterTagCategory::kInvariant] > 0 || verbose ) {
os << "Invariant: " << stats[VariantFilterTagCategory::kInvariant] << "\n";
os << "Invariant: " << stats[VariantFilterTagCategory::kInvariant] << "\n";
}
if( stats[VariantFilterTagCategory::kPassed] > 0 || verbose ) {
os << "Passed: " << stats[VariantFilterTagCategory::kPassed] << "\n";
os << "Passed: " << stats[VariantFilterTagCategory::kPassed] << "\n";
}
return os;
}
Expand Down

0 comments on commit dbc1fa0

Please sign in to comment.