Skip to content

Commit

Permalink
fix the interface and the doc; cleaning
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Sep 28, 2022
1 parent 04c56ee commit 984aee9
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/rst/commands/odgi_flip.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ MANDATORY OPTIONS
| Load the succinct variation graph in ODGI format from this *FILE*. The file name usually ends with *.og*. It also accepts GFAv1, but the on-the-fly conversion to the ODGI format requires additional time!
| **-o, --out**\ =\ *FILE*
| Write the graph with fliped paths to *.og*.
| Write the graph with flipped paths to *.og*.
Threading
---------
Expand Down
3 changes: 3 additions & 0 deletions docs/rst/commands/odgi_paths.rst
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@ Path Modification Options
| **-X, --drop-paths**\ =\ *[FILE]*
| Drop paths listed (by line) in *FILE*.
| **-o, --out**\ =\ *FILE*
| Write the dynamic succinct variation graph to this file (e.g. *.og*)
Threading
---------

Expand Down
3 changes: 1 addition & 2 deletions src/algorithms/path_keep.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ namespace odgi {
namespace algorithms {

void keep_paths(const graph_t& graph, graph_t& into, const ska::flat_hash_set<path_handle_t>& to_keep) {
// for each path, find its average orientation
graph.for_each_handle([&](const handle_t& h) {
into.create_handle(graph.get_sequence(h), graph.get_id(h));
});
Expand All @@ -27,7 +26,7 @@ void keep_paths(const graph_t& graph, graph_t& into, const ska::flat_hash_set<pa
into.create_path_handle(graph.get_path_name(path));
}
}
// then add the steps in parallel
// add the steps in parallel
#pragma omp parallel for
for (auto& path : paths) {
if (to_keep.count(path)) {
Expand Down
2 changes: 1 addition & 1 deletion src/subcommand/paths_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ int main_paths(int argc, char** argv) {
args::ArgumentParser parser("Interrogate the embedded paths of a graph. Does not print anything to stdout by default!");
args::Group mandatory_opts(parser, "[ MANDATORY ARGUMENTS ]");
args::ValueFlag<std::string> dg_in_file(mandatory_opts, "FILE", "Load the succinct variation graph in ODGI format from this *FILE*. The file name usually ends with *.og*. It also accepts GFAv1, but the on-the-fly conversion to the ODGI format requires additional time!", {'i', "idx"});
args::ValueFlag<std::string> dg_out_file(mandatory_opts, "FILE", "Write the sorted dynamic succinct variation graph to this file (e.g. *.og*).", {'o', "out"});
args::Group path_investigation_opts(parser, "[ Path Investigation Options ]");
args::ValueFlag<std::string> overlaps_file(path_investigation_opts, "FILE", "Read in the path grouping *FILE* to generate the overlap statistics"
" from. The file must be tab-delimited. The first column lists a"
Expand All @@ -59,6 +58,7 @@ int main_paths(int argc, char** argv) {
args::Group path_modification_opts(parser, "[ Path Modification Options ]");
args::ValueFlag<std::string> keep_paths_file(path_modification_opts, "FILE", "Keep paths listed (by line) in *FILE*.", {'K', "keep-paths"});
args::ValueFlag<std::string> drop_paths_file(path_modification_opts, "FILE", "Drop paths listed (by line) in *FILE*.", {'X', "drop-paths"});
args::ValueFlag<std::string> dg_out_file(path_modification_opts, "FILE", "Write the dynamic succinct variation graph to this file (e.g. *.og*).", {'o', "out"});
args::Group threading_opts(parser, "[ Threading ]");
args::ValueFlag<uint64_t> threads(threading_opts, "N", "Number of threads to use for parallel operations.", {'t', "threads"});
args::Group processing_info_opts(parser, "[ Processing Information ]");
Expand Down

0 comments on commit 984aee9

Please sign in to comment.