Skip to content

Commit

Permalink
Merge pull request #269 from ASLeonard/main
Browse files Browse the repository at this point in the history
smooth the introduction of max mapping length parameter
  • Loading branch information
AndreaGuarracino authored Sep 20, 2024
2 parents b731e41 + c48e848 commit 1f485f3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/interface/parse_args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,6 +440,11 @@ void parse_args(int argc,
map_parameters.max_mapping_length = 50000;
}

if (map_parameters.segLength >= map_parameters.max_mapping_length) {
std::cerr << "[wfmash] ERROR, skch::parseandSave, segment length should not be larger than max mapping length." << std::endl;
exit(1);
}

if (drop_low_map_pct_identity) {
map_parameters.keep_low_pct_id = false;
} else {
Expand Down
1 change: 1 addition & 0 deletions src/map/include/parseCmdArgs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,7 @@ sequences shorter than segment length will be ignored", ArgvParser::OptionRequir

}
std::cerr << "[mashmap] Chaining gap max = " << parameters.chain_gap << std::endl;
std::cerr << "[mashmap] Max mapping length = " << parameters.max_mapping_length << std::endl;
std::cerr << "[mashmap] Mappings per segment = " << parameters.numMappingsForSegment << std::endl;
std::cerr << "[mashmap] Percentage identity threshold = " << 100 * parameters.percentageIdentity << "\%" << std::endl;

Expand Down

0 comments on commit 1f485f3

Please sign in to comment.