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

fix error with adapters in PE mode

parent a39965ad
No related branches found
No related tags found
No related merge requests found
...@@ -22,8 +22,6 @@ ...@@ -22,8 +22,6 @@
######################################################################### #########################################################################
rule cutadapt: rule cutadapt:
input: input:
fastq = adapters_input_fastq fastq = adapters_input_fastq
...@@ -53,13 +51,14 @@ rule cutadapt: ...@@ -53,13 +51,14 @@ 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 -{params.mode} {params.adapters} -m {params.min} -q {params.qual} {params.options} -j {threads} " 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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment