Skip to content

Commit

Permalink
Fix default coverage subsampling for HiFi (e.g. #2241)
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Jul 14, 2023
1 parent e8c6822 commit e0ed3bb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 2 additions & 0 deletions src/pipelines/canu.pl
Original file line number Diff line number Diff line change
Expand Up @@ -614,6 +614,7 @@
setGlobalIfUndef("oeaHaploConfirm", 5);
setGlobalIfUndef("utgErrorRate", 0.120);
setGlobalIfUndef("cnsErrorRate", 0.200);
setGlobalIfUndef("maxInputCoverage", 200);
}

if (($numPacBio > 0) &&
Expand All @@ -628,6 +629,7 @@
setGlobalIfUndef("oeaHaploConfirm", 5);
setGlobalIfUndef("utgErrorRate", 0.045);
setGlobalIfUndef("cnsErrorRate", 0.075);
setGlobalIfUndef("maxInputCoverage", 200);
}

if (($numPacBio == 0) &&
Expand Down
3 changes: 0 additions & 3 deletions src/pipelines/canu/Defaults.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1554,9 +1554,6 @@ sub checkParameters () {
addCommandLineError("ERROR: Invalid 'cnsConsensus' specified (" . getGlobal("cnsConsensus") . "); must be 'quick', 'pbdagcon', or 'utgcns'\n");
}

if (!defined(getGlobal("maxInputCoverage"))) {
setGlobal("maxInputCoverage", 200);
}
if (getGlobal("maxInputCoverage") eq "all") {
setGlobal("maxInputCoverage", 0);
}
Expand Down

0 comments on commit e0ed3bb

Please sign in to comment.