Skip to content
Snippets Groups Projects
Verified Commit ff9f90af authored by Laurent Modolo's avatar Laurent Modolo
Browse files

Bowti2: modify index handle to better deal with weird file names

parent af1d5130
No related branches found
No related tags found
No related merge requests found
...@@ -72,7 +72,7 @@ process mapping_fastq { ...@@ -72,7 +72,7 @@ process mapping_fastq {
script: script:
index_id = index[0] index_id = index[0]
for (index_file in index) { for (index_file in index) {
if (index_file =~ /.*\.1\.bt2/) { if (index_file =~ /.*\.1\.bt2/ && !(index_file =~ /.*\.rev\.1\.bt2/)) {
index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1] index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1]
} }
} }
...@@ -122,7 +122,7 @@ process mapping_fastq { ...@@ -122,7 +122,7 @@ process mapping_fastq {
script: script:
index_id = index[0] index_id = index[0]
for (index_file in index) { for (index_file in index) {
if (index_file =~ /.*\.1\.bt2/) { if (index_file =~ /.*\.1\.bt2/ && !(index_file =~ /.*\.rev\.1\.bt2/)) {
index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1] index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1]
} }
} }
......
...@@ -29,7 +29,7 @@ process mapping_fastq { ...@@ -29,7 +29,7 @@ process mapping_fastq {
script: script:
index_id = index[0] index_id = index[0]
for (index_file in index) { for (index_file in index) {
if (index_file =~ /.*\.1\.bt2/) { if (index_file =~ /.*\.1\.bt2/ && !(index_file =~ /.*\.rev\.1\.bt2/)) {
index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1] index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1]
} }
} }
......
...@@ -28,7 +28,7 @@ process mapping_fastq { ...@@ -28,7 +28,7 @@ process mapping_fastq {
script: script:
index_id = index[0] index_id = index[0]
for (index_file in index) { for (index_file in index) {
if (index_file =~ /.*\.1\.bt2/) { if (index_file =~ /.*\.1\.bt2/ && !(index_file =~ /.*\.rev\.1\.bt2/)) {
index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1] index_id = ( index_file =~ /(.*)\.1\.bt2/)[0][1]
} }
} }
......
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