11process MMSEQS_CLUSTER {
2- tag " $meta . id "
2+ tag " ${ meta.id} "
33 label ' process_high'
44
55 conda " ${ moduleDir} /environment.yml"
6- container " ${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
7- 'https://depot.galaxyproject.org/singularity/mmseqs2:17.b804f--hd6d6fdc_1':
8- 'biocontainers/ mmseqs2:17.b804f--hd6d6fdc_1' } "
6+ container " ${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container
7+ ? 'https://community-cr-prod.seqera.io/docker/registry/v2/blobs/sha256/fe/fe49c17754753d6cd9a31e5894117edaf1c81e3d6053a12bf6dc8f3af1dffe23/data'
8+ : 'community.wave.seqera.io/library/ mmseqs2:18.8cc5c--af05c9a98d9f6139' } "
99
1010 input:
1111 tuple val(meta), path(db_input)
1212
1313 output:
1414 tuple val(meta), path(" ${ prefix} /" ), emit: db_cluster
15- path " versions.yml" , emit: versions
15+ path " versions.yml" , emit: versions
1616
1717 when:
1818 task. ext. when == null || task. ext. when
@@ -21,19 +21,21 @@ process MMSEQS_CLUSTER {
2121 def args = task. ext. args ?: ' '
2222 def args2 = task. ext. args2 ?: " *.dbtype"
2323 prefix = task. ext. prefix ?: " ${ meta.id} "
24- if (" $db_input " == " ${ prefix} " ) error " Input and output names of databases are the same, set prefix in module configuration to disambiguate!"
24+ if (" ${ db_input} " == " ${ prefix} " ) {
25+ error(" Input and output names of databases are the same, set prefix in module configuration to disambiguate!" )
26+ }
2527
2628 """
2729 mkdir -p ${ prefix}
2830 # Extract files with specified args based suffix | remove suffix | isolate longest common substring of files
29- DB_INPUT_PATH_NAME=\$ (find -L "$db_input /" -maxdepth 1 -name "$args2 " | sed 's/\\ .[^.]*\$ //' | sed -e 'N;s/^\\ (.*\\ ).*\\ n\\ 1.*\$ /\\ 1\\ n\\ 1/;D' )
31+ DB_INPUT_PATH_NAME=\$ (find -L "${ db_input} /" -maxdepth 1 -name "${ args2} " | sed 's/\\ .[^.]*\$ //' | sed -e 'N;s/^\\ (.*\\ ).*\\ n\\ 1.*\$ /\\ 1\\ n\\ 1/;D' )
3032
3133 mmseqs \\
3234 cluster \\
3335 \$ DB_INPUT_PATH_NAME \\
3436 ${ prefix} /${ prefix} \\
3537 tmp1 \\
36- $args \\
38+ ${ args} \\
3739 --threads ${ task.cpus}
3840
3941 cat <<-END_VERSIONS > versions.yml
@@ -46,6 +48,7 @@ process MMSEQS_CLUSTER {
4648 def args = task. ext. args ?: ' '
4749 prefix = task. ext. prefix ?: " ${ meta.id} "
4850 """
51+ echo ${ args}
4952 mkdir -p ${ prefix}
5053
5154 touch ${ prefix} /${ prefix} .{0..9}
0 commit comments