Skip to content

Commit

Permalink
fix: make translated unaligned search on by default
Browse files Browse the repository at this point in the history
  • Loading branch information
rroutsong committed Aug 23, 2024
1 parent 8959ffd commit ff1219d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions metamorph
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion workflow/rules/RNA.smk
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ rule rna_humann_classify:
chocophlan_db = "/data2/chocophlan", # from <root>/config/resources.json
util_map_db = "/data2/um", # from <root>/config/resources.json
metaphlan_db = "/data2/metaphlan", # from <root>/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:
Expand Down

0 comments on commit ff1219d

Please sign in to comment.