From ff1219dd2d684e1688795a91a6da424822ae098d Mon Sep 17 00:00:00 2001 From: Ryan Routsong Date: Fri, 23 Aug 2024 15:21:17 -0400 Subject: [PATCH] fix: make translated unaligned search on by default --- metamorph | 14 +++++++------- workflow/rules/RNA.smk | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/metamorph b/metamorph index aa9cee1..9f784b0 100755 --- a/metamorph +++ b/metamorph @@ -161,7 +161,7 @@ def run(sub_args): config["options"]["assembler_mode"] = "1" if sub_args.megahit_only else "0" # Step 4c. Setup humann3 execution mode - config["options"]["deep_profile"] = "1" if sub_args.deep_profile else "0" + config["options"]["shallow_profile"] = "1" if sub_args.shallow_profile else "0" # Step 5. Save config to output directory with open(os.path.join(sub_args.output, 'config.json'), 'w') as fh: @@ -397,10 +397,10 @@ def parsed_arguments(name, description): Default (in prority order): params, mtime, code, software-env, input - --deep-profile - Turn on the translated blast search of unaligned - reads in humann3. This will increase run time - significantly. Turns on the protein search for + --shallow-profile + Turn off the translated blast search of unaligned + reads in humann3. This will decrease run time + significantly. Turns off the protein search for unaligned reads for humann3 taxanomic profiling. @@ -595,8 +595,8 @@ def parsed_arguments(name, description): # Set humann3 to run translated protein # search of unaligned reads subparser_run.add_argument( - '--deep-profile', - dest = 'deep_profile', + '--shallow-profile', + dest = 'shallow_profile', action = 'store_true', required = False, default = False, diff --git a/workflow/rules/RNA.smk b/workflow/rules/RNA.smk index 7f1d5f7..cfb0299 100644 --- a/workflow/rules/RNA.smk +++ b/workflow/rules/RNA.smk @@ -108,7 +108,7 @@ rule rna_humann_classify: chocophlan_db = "/data2/chocophlan", # from /config/resources.json util_map_db = "/data2/um", # from /config/resources.json metaphlan_db = "/data2/metaphlan", # from /config/resources.json - deep_mode = "\\\n --bypass-translated-search" if humann_deep_mode else "", + deep_mode = "\\\n --bypass-translated-search" if not config["options"]["shallow_profile"] else "", threads: int(cluster["rna_humann_classify"].get('threads', default_threads)), containerized: metawrap_container, shell: