Skip to content

Commit

Permalink
Move seqStore construction into each block.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed Sep 5, 2020
1 parent 8a3b5e0 commit a00aacc
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions src/pipelines/canu.pl
Original file line number Diff line number Diff line change
Expand Up @@ -1121,10 +1121,10 @@ ($$)
# The start of the pipeline.
#

fetchSeqStore($asm);
createSequenceStore($asm, @inputFiles);

if (doCorrection($asm, $mode)) {
fetchSeqStore($asm);
createSequenceStore($asm, @inputFiles);

merylConfigure($asm, "cor");
merylCountCheck($asm, "cor") foreach (1..getGlobal("canuIterationMax") + 1);
merylProcessCheck($asm, "cor") foreach (1..getGlobal("canuIterationMax") + 1);
Expand All @@ -1146,6 +1146,9 @@ ($$)
}

if (doTrimming($asm, $mode)) {
fetchSeqStore($asm);
createSequenceStore($asm, @inputFiles);

merylConfigure($asm, "obt");
merylCountCheck($asm, "obt") foreach (1..getGlobal("canuIterationMax") + 1);
merylProcessCheck($asm, "obt") foreach (1..getGlobal("canuIterationMax") + 1);
Expand All @@ -1160,6 +1163,9 @@ ($$)
}

if (doUnitigging($asm, $mode)) {
fetchSeqStore($asm);
createSequenceStore($asm, @inputFiles);

merylConfigure($asm, "utg");
merylCountCheck($asm, "utg") foreach (1..getGlobal("canuIterationMax") + 1);
merylProcessCheck($asm, "utg") foreach (1..getGlobal("canuIterationMax") + 1);
Expand Down

0 comments on commit a00aacc

Please sign in to comment.