From d3a49b0cb2f9f90e8e62bfe12b412da3ab4efbc0 Mon Sep 17 00:00:00 2001 From: prototaxites Date: Fri, 31 Mar 2023 13:44:23 +0000 Subject: [PATCH] Fix busco_clean parameter --- CHANGELOG.md | 1 + conf/test_binrefinement.config | 1 + modules/local/busco.nf | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 572dbd5df..2eb7776de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -13,6 +13,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Fix duplicated Zenodo badge in README (by @jfy133) - Fix CheckM database always downloading, regardless if CheckM is selected (by @jfy133) +- Fix bug with busco_clean parameter, where it is always activated (by @prototaxites) ### `Dependencies` diff --git a/conf/test_binrefinement.config b/conf/test_binrefinement.config index ddf44cebb..2bacc4e36 100644 --- a/conf/test_binrefinement.config +++ b/conf/test_binrefinement.config @@ -31,4 +31,5 @@ params { refine_bins_dastool = true refine_bins_dastool_threshold = 0 postbinning_input = 'both' + busco_clean = true } diff --git a/modules/local/busco.nf b/modules/local/busco.nf index b6f89fd18..639f4685c 100644 --- a/modules/local/busco.nf +++ b/modules/local/busco.nf @@ -178,7 +178,7 @@ process BUSCO { fi # if needed delete temporary BUSCO files - if [ ${busco_clean} ]; then + if [ ${busco_clean} = "Y" ]; then find . -depth -type d -name "augustus_config" -execdir rm -rf "{}" \\; find . -depth -type d -name "auto_lineage" -execdir rm -rf "{}" \\; find . -depth -type d -name "run_*" -execdir rm -rf "{}" +