Skip to content

Commit

Permalink
Update parameters for hifi data
Browse files Browse the repository at this point in the history
  • Loading branch information
skoren committed Dec 26, 2019
1 parent 998b964 commit 3460ffd
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions src/pipelines/canu.pl
Original file line number Diff line number Diff line change
Expand Up @@ -524,12 +524,6 @@
my $rt;
my $st;

# If no mode set, default -pacbio-hifi to trimmed status.

if (($mode eq "") && ($numHiFi > 0)) {
$readsAreTrimmed = 1;
}

# Figure out a human description of the reads, and set
# flags to pass to sqStoreCreate.

Expand Down Expand Up @@ -620,22 +614,22 @@
($numNanopore == 0) &&
($numHiFi > 0)) {
setGlobalIfUndef("corOvlErrorRate", 0.000);
setGlobalIfUndef("obtOvlErrorRate", 0.000);
setGlobalIfUndef("utgOvlErrorRate", 0.025);
setGlobalIfUndef("obtOvlErrorRate", 0.025);
setGlobalIfUndef("utgOvlErrorRate", 0.010);
setGlobalIfUndef("corErrorRate", 0.000);
setGlobalIfUndef("obtErrorRate", 0.000);
setGlobalIfUndef("utgErrorRate", 0.025);
setGlobalIfUndef("cnsErrorRate", 0.150);
setGlobalIfUndef("obtErrorRate", 0.025);
setGlobalIfUndef("utgErrorRate", 0.010);
setGlobalIfUndef("cnsErrorRate", 0.030);
setGlobalIfUndef("homoPolyCompress", 1);
setGlobalIfUndef("batOptions", "-eg 0.0003 -dg 3 -db 3 -dr 1 -ca 50 -cp 5");
setGlobalIfUndef("batOptions", "-eg 0.0003 -sb 0.01 -dg 0 -db 3 -dr 0 -ca 50 -cp 5");
}

# Set an initial run mode based on what we discovered above.

if (!defined($mode)) {
$mode = "run" if ($numRaw > 0);
$mode = "trim-assemble" if ($numCor > 0);
$mode = "assemble" if ($numHiFi > 0);
$mode = "trim-assemble" if ($numHiFi > 0);
$mode = "assemble" if ($numCorTri > 0);
}

Expand Down Expand Up @@ -666,12 +660,16 @@
}

if ($mode eq "trim-assemble") {
print STDERR "-- - trim corrected reads.\n";
print STDERR "-- - assemble corrected and trimmed reads.\n";
if ($numHiFi > 0) {
print STDERR "-- - trim HiFi reads.\n";
print STDERR "-- - assemble trimmed HiFi reads.\n";
} else {
print STDERR "-- - trim corrected reads.\n";
print STDERR "-- - assemble corrected and trimmed reads.\n";
}
}

if ($mode eq "assemble") {
print STDERR "-- - assemble untrimmed HiFi reads.\n" if ($numHiFi > 0);
print STDERR "-- - assemble corrected and trimmed reads.\n" if ($numHiFi == 0);
}

Expand Down

0 comments on commit 3460ffd

Please sign in to comment.