Skip to content

Commit eae207b

Browse files
committed
Added in an annotation coverage summary statistic as a default behavior
1 parent 719e236 commit eae207b

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/main.cpp

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ int main_wrapper(int argc, const char *argv[]) {
105105
param_strings.size(), real_coverage, fdr, arg_string.c_str());
106106
}
107107

108-
printf("-----------\n");
108+
printf("----------------------------\n");
109109
if (best_coverage_index >= 0) {
110110
double real_coverage =
111111
(double)coverage[best_coverage_index] / (double)seq_length;
@@ -148,6 +148,12 @@ int main_wrapper(int argc, const char *argv[]) {
148148
settings->mask_with_n);
149149
fclose(f);
150150
}
151+
if (!settings->disable_summary) {
152+
seq_length = ultra->reader->fastaReader->total_seq_length;
153+
double coverage_ratio = (double)true_coverage / (double)seq_length;
154+
printf("----------------------------\n");
155+
printf("Annotation Coverage: %.4f (%llu / %llu)\n", coverage_ratio, true_coverage, seq_length);
156+
}
151157

152158
delete ultra;
153159
if (settings->estimate_fdr) {

0 commit comments

Comments
 (0)