Skip to content

Commit

Permalink
Remove read kmer databases when we're done with them.
Browse files Browse the repository at this point in the history
  • Loading branch information
brianwalenz committed May 31, 2019
1 parent 9eec1f6 commit ec37af0
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/pipelines/canu/HaplotypeReads.pm
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,19 @@ sub haplotypeSubtractCheck ($@) {
generateReport($asm);
resetIteration("haplotype-merylSubtractCheck");

# Remove databases.

print STDERR "--\n";

foreach my $hap (@haplotypes) {
if (getGlobal("saveMerCounts") == 0) {
print STDERR "-- Removing meryl database '$path/reads-$hap.meryl'.\n";
remove_tree("$path/reads-$hap.meryl")
} else {
print STDERR "-- Meryl database '$path/reads-$hap.meryl' saved because 'saveMerCounts=true'.\n";
}
}

allDone:
stopAfter("meryl-subtract");
}
Expand Down

0 comments on commit ec37af0

Please sign in to comment.