Joon Klaps
06/19/2025, 3:49 PMvlcust/cluster , it’s required to give a one of the three distances or any combination of, by default it doesn’t work. Should I set a default value- if nothing is given? Looking for some feedback.
--tani <float> Min. total ANI (0-1) [0]
--gani <float> Min. global ANI (0-1) [0]
--ani <float> Min. ANI (0-1) [0]
I was thinking of doing something like this so that the module works out of the box:
input:
tuple val(meta), path(tsv)
tuple val(meta2), path(ids)
val tani
val gani
val ani
....
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def tani_command = tani ? "--tani ${tani}" : ''
def gani_command = gani ? "--gani ${gani}" : ''
def ani_command = ani ? "--ani ${ani}" : ''
def metric_command = tani_command + gani_command + ani_command ?: '--ani 0.95'
"""
vclust \\
cluster \\
$args \\
${metric_command} \\James Fellows Yates
06/19/2025, 4:38 PMJames Fellows Yates
06/19/2025, 4:38 PMJoon Klaps
06/20/2025, 7:53 AMJames Fellows Yates
06/20/2025, 8:04 AM