Skip to content

Commit

Permalink
latest snakftm firmating
Browse files Browse the repository at this point in the history
  • Loading branch information
SilasK committed Jul 29, 2024
1 parent 44415d8 commit 8914ede
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions workflow/rules/assemble.smk
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,9 @@ if SKIP_QC & (len(MULTIFILE_FRACTIONS) < 3):
params:
inputs=lambda wc, input: io_params_for_tadpole(input, "in"),
interleaved=(
lambda wc: "t"
if (config.get("interleaved_fastqs", False) & SKIP_QC)
else "f"
lambda wc: (
"t" if (config.get("interleaved_fastqs", False) & SKIP_QC) else "f"
)
),
outputs=lambda wc, output: io_params_for_tadpole(output, "out"),
verifypaired="t" if PAIRED_END else "f",
Expand Down Expand Up @@ -456,7 +456,7 @@ else:
rule rename_spades_output:
input:
"{{sample}}/assembly/{sequences}.fasta".format(
sequences="scaffolds" if config["spades_use_scaffolds"] else "contigs"
sequences="scaffolds" if config["spades_use_scaffolds"] else "contigs"
),
output:
temp("{sample}/assembly/{sample}_raw_contigs.fasta"),
Expand Down
6 changes: 3 additions & 3 deletions workflow/rules/binning.smk
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,9 @@ rule get_metabat_depth_file:
resources:
mem_mb=config["mem"] * 1000,
params:
minid=lambda wc, input: config["cobinning_readmapping_id"] * 100
if len(input.bams) > 1
else 97,
minid=lambda wc, input: (
config["cobinning_readmapping_id"] * 100 if len(input.bams) > 1 else 97
),
shell:
"jgi_summarize_bam_contig_depths "
" --percentIdentity {params.minid} "
Expand Down

0 comments on commit 8914ede

Please sign in to comment.