Skip to content

Commit

Permalink
fix condition
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaGuarracino committed Jan 26, 2025
1 parent 7e870b9 commit 7e6e153
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/interface/parse_args.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ void parse_args(int argc,
std::cerr << "[wfmash] ERROR: max mapping length must be greater than 0." << std::endl;
exit(1);
}
if ((!approx_mapping || !input_mapping) && l > 100000) {
if (l > 100000 && (!approx_mapping && !input_mapping)) {
std::cerr << "[wfmash] ERROR: max mapping length (-P) must be <= 100kb when running alignment." << std::endl
<< "[wfmash] For larger values, use -m/--approx-mapping to generate mappings," << std::endl
<< "[wfmash] then align them with: wfmash ... -i mappings.paf" << std::endl;
Expand Down

0 comments on commit 7e6e153

Please sign in to comment.