Skip to content

Commit

Permalink
Merge pull request #4338 from vgteam/unlimited-anchors
Browse files Browse the repository at this point in the history
Make the default surjection max_anchors unlimited
  • Loading branch information
adamnovak authored Jul 19, 2024
2 parents 2d34df2 + 15c38d7 commit 95fd1da
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/subcommand/surject_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

using namespace std;
using namespace vg;
using namespace vg::subcommand;
using namespace vg::subcommand;

void help_surject(char** argv) {
cerr << "usage: " << argv[0] << " surject [options] <aln.gam> >[proj.cram]" << endl
Expand All @@ -49,7 +49,7 @@ void help_surject(char** argv) {
<< " -l, --subpath-local let the multipath mapping surjection produce local (rather than global) alignments" << endl
<< " -T, --max-tail-len N only align up to N bases of read tails (default: 10000)" << endl
<< " -P, --prune-low-cplx prune short and low complexity anchors during realignment" << endl
<< " -a, --max-anchors N use no more than N anchors per target path (default: 200)" << endl
<< " -a, --max-anchors N use no more than N anchors per target path (default: unlimited)" << endl
<< " -S, --spliced interpret long deletions against paths as spliced alignments" << endl
<< " -A, --qual-adj adjust scoring for base qualities, if they are available" << endl
<< " -N, --sample NAME set this sample name for all reads" << endl
Expand Down Expand Up @@ -100,7 +100,7 @@ int main_surject(int argc, char** argv) {
size_t max_tail_len = 10000;
bool qual_adj = false;
bool prune_anchors = false;
size_t max_anchors = 200;
size_t max_anchors = std::numeric_limits<size_t>::max(); // As close to unlimited as makes no difference
bool annotate_with_all_path_scores = false;
bool multimap = false;
bool validate = true;
Expand Down
2 changes: 1 addition & 1 deletion src/surjector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ using namespace std;
/// How many anchors (per path) will we use when surjecting using
/// anchors?
/// Excessive anchors will be pruned away.
size_t max_anchors = numeric_limits<size_t>::max();
size_t max_anchors = std::numeric_limits<size_t>::max();

bool annotate_with_all_path_scores = false;

Expand Down

1 comment on commit 95fd1da

@adamnovak
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

vg CI tests complete for merge to master. View the full report here.

16 tests passed, 0 tests failed and 0 tests skipped in 17126 seconds

Please sign in to comment.