mirror of
https://github.com/MillironX/nf-core_modules.git
synced 2024-12-21 18:58:16 +00:00
parent
d8ba32c6b5
commit
c13f2274fb
1 changed files with 2 additions and 2 deletions
|
@ -22,7 +22,7 @@ process CAT_FASTQ {
|
||||||
def prefix = task.ext.prefix ?: "${meta.id}"
|
def prefix = task.ext.prefix ?: "${meta.id}"
|
||||||
def readList = reads.collect{ it.toString() }
|
def readList = reads.collect{ it.toString() }
|
||||||
if (meta.single_end) {
|
if (meta.single_end) {
|
||||||
if (readList.size > 1) {
|
if (readList.size >= 1) {
|
||||||
"""
|
"""
|
||||||
cat ${readList.join(' ')} > ${prefix}.merged.fastq.gz
|
cat ${readList.join(' ')} > ${prefix}.merged.fastq.gz
|
||||||
|
|
||||||
|
@ -33,7 +33,7 @@ process CAT_FASTQ {
|
||||||
"""
|
"""
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (readList.size > 2) {
|
if (readList.size >= 2) {
|
||||||
def read1 = []
|
def read1 = []
|
||||||
def read2 = []
|
def read2 = []
|
||||||
readList.eachWithIndex{ v, ix -> ( ix & 1 ? read2 : read1 ) << v }
|
readList.eachWithIndex{ v, ix -> ( ix & 1 ? read2 : read1 ) << v }
|
||||||
|
|
Loading…
Reference in a new issue