You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// In seqera containers `MAMBA_ROOT_PREFIX` is always available
31
-
// whereas `CONDA_PREFIX` may not be
32
-
// see https://github.com/seqeralabs/wave/issues/886
33
-
model ="\${CONDA_PREFIX:-\$MAMBA_ROOT_PREFIX}/bin/models/${packaged_model}"
31
+
if (workflow.containerEngine in ['singularity', 'docker', 'podman']) {
32
+
model ="/opt/models/${packaged_model}"
33
+
} else {
34
+
error "Clair3 packaged models are only available in Docker/Singularity/Podman containers. Please use one of these profiles or provide a user_model instead."
35
+
}
34
36
}
35
37
if (!packaged_model) {
36
38
model ="${user_model}"
@@ -42,12 +44,12 @@ process CLAIR3 {
42
44
prefix = task.ext.prefix ?:"${meta.id}"
43
45
"""
44
46
run_clair3.sh \\
45
-
--bam_fn=${bam}\\
46
-
--ref_fn=${reference}\\
47
+
--bam_fn=\${PWD}/${bam}\\
48
+
--ref_fn=\${PWD}/${reference}\\
47
49
--threads=${task.cpus}\\
48
50
--output=. \\
49
51
--platform=${platform}\\
50
-
--model=${model}\\
52
+
--model_path=${model}\\
51
53
${args}
52
54
53
55
# Rename to add prefix
@@ -61,11 +63,6 @@ process CLAIR3 {
61
63
mv "\$file" "${prefix}\$file"
62
64
fi
63
65
done
64
-
65
-
cat <<-END_VERSIONS > versions.yml
66
-
"${task.process}":
67
-
clair3: \$(run_clair3.sh --version |& sed '1!d ; s/Clair3 v//')
68
-
END_VERSIONS
69
66
"""
70
67
71
68
stub:
@@ -77,10 +74,5 @@ process CLAIR3 {
77
74
touch ${prefix}merge_output.vcf.gz.tbi
78
75
echo "" | gzip > ${prefix}merge_output.gvcf.gz
79
76
touch ${prefix}merge_output.gvcf.gz.tbi
80
-
81
-
cat <<-END_VERSIONS > versions.yml
82
-
"${task.process}":
83
-
clair3: \$(run_clair3.sh --version |& sed '1!d ; s/Clair3 v//')
0 commit comments