From 337d5c045c9aa0a356653fc43f9b4ed6b13a932b Mon Sep 17 00:00:00 2001 From: subwaystation Date: Thu, 20 Jun 2024 09:18:56 +0200 Subject: [PATCH] odgi stats: -S per default --- src/subcommand/stats_main.cpp | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/src/subcommand/stats_main.cpp b/src/subcommand/stats_main.cpp index 15d06110..299f91b3 100644 --- a/src/subcommand/stats_main.cpp +++ b/src/subcommand/stats_main.cpp @@ -177,7 +177,26 @@ int main_stats(int argc, char** argv) { std::cout << "---" << std::endl; } - if (args::get(_summarize) || _multiqc) { + // per default, we want option -S to be shown + const bool no_args = !(args::get(_weakly_connected_components) || + args::get(_num_self_loops) || + args::get(_show_nondeterministic_edges) || + args::get(base_content) || + path_delim || + args::get(_file_size) || + _pangenome_sequence_class_counts || + args::get(mean_links_length) || + args::get(dont_penalize_gap_links) || + args::get(sum_of_path_node_distances) || + args::get(penalize_diff_orientation) || + args::get(path_statistics) || + args::get(weighted_feedback_arc) || + args::get(weighted_reversing_join) || + args::get(links_length_per_nuc) || + args::get(_multiqc) || + args::get(_yaml)); + + if (args::get(_summarize) || _multiqc || no_args) { uint64_t length_in_bp = 0, node_count = 0; graph.for_each_handle([&](const handle_t& h) { length_in_bp += graph.get_length(h);