Skip to content
Snippets Groups Projects
Commit 07003877 authored by Rachel  LEGENDRE's avatar Rachel LEGENDRE
Browse files

Update cutadapt.rules

parent 2f8414b1
No related branches found
No related tags found
No related merge requests found
...@@ -49,16 +49,18 @@ rule cutadapt: ...@@ -49,16 +49,18 @@ rule cutadapt:
tmp="{output}" tmp="{output}"
outfiles=($tmp) outfiles=($tmp)
mode="{params.mode}"
# add mode and adapter sequences # add mode and adapter sequences
cmd+=" cutadapt -j {threads} -{params.mode} {params.adapters} -m {params.min} -q {params.qual} {params.options} " cmd+=" cutadapt -${{mode}} {params.adapters} -m {params.min} -q {params.qual} {params.options} -j {threads} "
# paired end or single end # paired end or single end
if [[ ${{#infiles[@]}} -eq 2 ]]; if [[ ${{#infiles[@]}} -eq 2 ]];
then then
cmd+=" -o ${{outfiles[0]}} -p ${{outfiles[1]}} ${{infiles[0]}} ${{infiles[1]}} " cmd+=" -${{mode^^}} {params.adapters} -o ${{outfiles[0]}} -p ${{outfiles[1]}} ${{infiles[0]}} ${{infiles[1]}} "
else else
cmd+=" -o ${{outfiles[0]}} ${{infiles[0]}}" cmd+=" -o ${{outfiles[0]}} ${{infiles[0]}}"
fi fi
#run command #run command
eval "${{cmd}} > {log.out}" eval "${{cmd}} > {log}"
""" """
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment