Skip to content

Commit

Permalink
5' trimming option for fastp optional (to be used only with Arima Hi-…
Browse files Browse the repository at this point in the history
…C library prep kit generated data)
  • Loading branch information
LiaOb21 committed Apr 26, 2024
1 parent 634d3b6 commit 8d32e28
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion workflow/rules/fastp.smk
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ rule fastp:
reverse_out="results/fastp/hic_trim_2.fastq.gz",
json="results/fastp/hic_report_fastp.HiC.json",
html="results/fastp/hic_report_fastp.HiC.html",
params:
optional_params=" ".join(
f"{k} {v}" for k, v in config["fastp"]["optional_params"].items() if v
),
threads: config["medium"]["t"]
log:
"logs/fastp.log",
Expand All @@ -21,5 +25,5 @@ rule fastp:
"../envs/fastp.yaml"
shell:
"""
fastp -p -i {input.forward_in} -I {input.reverse_in} -o {output.forward_out} -O {output.reverse_out} --cut_front --cut_front_window_size 5 --detect_adapter_for_pe --json {output.json} --html {output.html} --thread {threads} >> {log} 2>&1
fastp -p -i {input.forward_in} -I {input.reverse_in} -o {output.forward_out} -O {output.reverse_out} --detect_adapter_for_pe --json {output.json} --html {output.html} --thread {threads} {params.optional_params} >> {log} 2>&1
"""

0 comments on commit 8d32e28

Please sign in to comment.