Skip to content

Commit

Permalink
put loner path names by default
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed May 20, 2024
1 parent 3efbd43 commit cacdbc4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/subcommand/viz_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ namespace odgi {
args::Flag color_path_names_background(path_names_viz_opts, "bool", "Color path names background with the same color as paths.",{'C', "color-path-names-background"});
args::ValueFlag<size_t> _max_num_of_characters(path_names_viz_opts, "N", "Maximum number of characters to display for each path name (max 128"
" characters). The default value is *the length of the longest path"
" name* (up to 32 characters).",{'c', "max-num-of-characters"});
" name* (up to 128 characters).",{'c', "max-num-of-characters"});

/// Binned mode
args::Group bin_opts(parser, "[ Binned Mode Options ]");
Expand Down Expand Up @@ -395,7 +395,7 @@ namespace odgi {
}
}

const size_t max_num_of_characters = args::get(_max_num_of_characters) > 1 ? min(args::get(_max_num_of_characters), (size_t) PATH_NAMES_MAX_NUM_OF_CHARACTERS) : 32;
const size_t max_num_of_characters = args::get(_max_num_of_characters) > 1 ? min(args::get(_max_num_of_characters), (size_t) PATH_NAMES_MAX_NUM_OF_CHARACTERS) : PATH_NAMES_MAX_NUM_OF_CHARACTERS;

uint64_t path_count = graph.get_path_count();
const uint64_t pix_per_path = args::get(path_height) ? args::get(path_height) : 10;
Expand Down

0 comments on commit cacdbc4

Please sign in to comment.