fix the typo when using getExtension for motus_profile.

This commit is contained in:
JIANHONG OU 2022-05-11 14:23:09 -04:00
parent b2542ee079
commit ae81311a78

View file

@ -23,9 +23,9 @@ 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]".getExtension == ('.bam') ? def inputs = "$reads[0]".getExtension() == 'bam' ?
"-i ${reads}" : "-i ${reads}" :
"$reads[0]".getExtension == ('.mgc') ? "-m $reads" : "$reads[0]".getExtension() == 'mgc' ? "-m $reads" :
meta.single_end ? meta.single_end ?
"-s $reads" : "-f ${reads[0]} -r ${reads[1]}" "-s $reads" : "-f ${reads[0]} -r ${reads[1]}"
def refdb = db ? "-db ${db}" : "" def refdb = db ? "-db ${db}" : ""