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

bwa: test if file_id is Map

parent 34b4db9d
No related branches found
No related tags found
No related merge requests found
......@@ -49,10 +49,13 @@ process mapping_fastq {
if (file_id instanceof List){
library = file_id[0]
file_prefix = file_id[0]
if (file_id.containsKey('library')) {
library = file_id.library
file_prefix = file_id.id
}
} else if (file_id instanceof Map)
library = file_id[0]
file_prefix = file_id[0]
if (file_id.containsKey('library')) {
library = file_id.library
file_prefix = file_id.id
}
} else {
library = file_id
file_prefix = file_id
......
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