Add manual version definition for artic modules (#1867)

This commit is contained in:
Harshil Patel 2022-07-12 11:33:51 +01:00 committed by GitHub
parent 49366ef275
commit 589f39c39e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 2 deletions

View file

@ -20,6 +20,7 @@ process ARTIC_GUPPYPLEX {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def VERSION = '1.2.2' // WARN: Version information provided by tool on CLI is incorrect. Please update this string when bumping container versions.
"""
artic \\
guppyplex \\
@ -30,7 +31,7 @@ process ARTIC_GUPPYPLEX {
pigz -p $task.cpus *.fastq
cat <<-END_VERSIONS > versions.yml
"${task.process}":
artic: \$(artic --version 2>&1 | sed 's/^.*artic //; s/ .*\$//')
artic: $VERSION
END_VERSIONS
"""
}

View file

@ -48,6 +48,7 @@ process ARTIC_MINION {
model = medaka_model_file ? "--medaka-model ./$medaka_model_file" : "--medaka-model $medaka_model_string"
}
def hd5_plugin_path = task.ext.hd5_plugin_path ? "export HDF5_PLUGIN_PATH=" + task.ext.hd5_plugin_path : "export HDF5_PLUGIN_PATH=/usr/local/lib/python3.6/site-packages/ont_fast5_api/vbz_plugin"
def VERSION = '1.2.2' // WARN: Version information provided by tool on CLI is incorrect. Please update this string when bumping container versions.
"""
$hd5_plugin_path
@ -66,7 +67,7 @@ process ARTIC_MINION {
cat <<-END_VERSIONS > versions.yml
"${task.process}":
artic: \$(artic --version 2>&1 | sed 's/^.*artic //; s/ .*\$//')
artic: $VERSION
END_VERSIONS
"""
}