Update modules/motus/profile/main.nf

Co-authored-by: James A. Fellows Yates <jfy133@gmail.com>
This commit is contained in:
JIANHONG OU 2022-05-06 08:11:22 -04:00 committed by GitHub
parent e391c65510
commit 4497eb1734
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -22,7 +22,7 @@ process MOTUS_PROFILE {
script: script:
def args = task.ext.args ?: '' def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}" def prefix = task.ext.prefix ?: "${meta.id}"
def inputs = "$reads[0]".toLowerCase().endsWith('.bam') ? def inputs = "$reads[0]".getExtension == ('.bam') ?
"-i ${reads}" : "-i ${reads}" :
meta.single_end ? meta.single_end ?
"-s $reads" : "-f ${reads[0]} -r ${reads[1]}" "-s $reads" : "-f ${reads[0]} -r ${reads[1]}"