Skip to content

Commit

Permalink
If the path is absolute, don't call abs_path(). Issue marbl#616.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Sep 8, 2017
1 parent 1121a34 commit c8f4106
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions src/pipelines/canu/Defaults.pm
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,7 @@ sub addSequenceFile ($$@) {

return(undef) if (!defined($file)); # No file name? Nothing to do.
$file = "$dir/$file" if (defined($dir)); # If $dir defined, assume file is in there.
return($file) if ($file =~ m!/!); # If already a full path, use that.
return(abs_path($file)) if (-e $file); # If found, return the full path.

# And if not found, report an error, unless told not to. This is because on the command
Expand Down Expand Up @@ -921,7 +922,6 @@ sub setDefaults () {
setDefault("corMinCoverage", undef, "Minimum number of bases supporting each corrected base, if less than this sequences are split; default based on input read coverage: 0 <= 30x < 4 < 60x <= 4");
setDefault("corFilter", "expensive", "Method to filter short reads from correction; 'quick' or 'expensive'; default 'expensive'");
setDefault("corConsensus", "falcon", "Which consensus algorithm to use; only 'falcon' is supported; default 'falcon'");
setDefault("corLegacyFilter", undef, "Expert option: global filter, length * identity (default) or length with broken by identity (if on)");

# Convert all the keys to lowercase, and remember the case-sensitive version

Expand Down Expand Up @@ -1358,14 +1358,6 @@ sub checkParameters () {
addCommandLineError("contigFilter 'lowCovFraction' must be between 0.0 and 1.0, currently $v[3]\n") if (($v[3] < 0) || (1 < $v[3]) || ($v[3] !~ m/^[0-9]*\.{0,1}[0-9]*$/));
addCommandLineError("contigFilter 'lowCovDepth' must be a positive integer, currently $v[4]\n") if (($v[4] < 0) || ($v[4] !~ m/^[0-9]+$/));
}

#
# Minimap, no valid identities, set legacy
#

if (getGlobal("corOverlapper") eq "minimap") {
setGlobalIfUndef("corLegacyFilter", 1);
}
}


Expand Down

0 comments on commit c8f4106

Please sign in to comment.