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

fix error with PE when checking of extension in STAR rules

parent d8768691
No related branches found
No related tags found
No related merge requests found
...@@ -45,7 +45,10 @@ rule star_mapping_pass1: ...@@ -45,7 +45,10 @@ rule star_mapping_pass1:
star_mapping_pass1_logs star_mapping_pass1_logs
shell: shell:
""" """
if [[ {input.fastq} == "*.gz" ]] tmp="{input}"
infiles=($tmp)
if [[ ${{infiles[0]}} == "*.gz" ]]
then then
STAR --genomeDir {params.index} \ STAR --genomeDir {params.index} \
--readFilesIn {input.fastq} \ --readFilesIn {input.fastq} \
......
...@@ -46,7 +46,10 @@ rule star_mapping_pass2: ...@@ -46,7 +46,10 @@ rule star_mapping_pass2:
star_mapping_pass2_logs star_mapping_pass2_logs
shell: shell:
""" """
if [[ {input.fastq} == "*.gz" ]] tmp="{input}"
infiles=($tmp)
if [[ ${{infiles[0]}} == "*.gz" ]]
then then
STAR --genomeDir {params.index} \ STAR --genomeDir {params.index} \
--readFilesIn {input.fastq} \ --readFilesIn {input.fastq} \
......
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