Skip to content

Commit

Permalink
Merge branch 'master' into update_kmcp
Browse files Browse the repository at this point in the history
  • Loading branch information
sofstam authored Jul 31, 2023
2 parents d2ea0bc + 5b116ec commit 137d969
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions modules/nf-core/fcs/fcsgx/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ process FCS_FCSGX {
label 'process_low'

container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/releases/0.2.3/fcs-gx.0.2.3.sif':
'docker.io/ncbi/fcs-gx:0.2.3' }"
'https://ftp.ncbi.nlm.nih.gov/genomes/TOOLS/FCS/releases/0.4.0/fcs-gx.sif':
'docker.io/ncbi/fcs-gx:0.4.0' }"

// Exit if running this module with -profile conda / -profile mamba
if (workflow.profile.tokenize(',').intersect(['conda', 'mamba']).size() >= 1) {
Expand All @@ -26,7 +26,7 @@ process FCS_FCSGX {
script:
def args = task.ext.args ?: ''
def prefix = task.ext.prefix ?: "${meta.id}"
def FCSGX_VERSION = '0.2.3'
def FCSGX_VERSION = '0.4.0'

"""
python3 /app/bin/run_gx \\
Expand All @@ -42,4 +42,20 @@ process FCS_FCSGX {
FCS-GX: $FCSGX_VERSION
END_VERSIONS
"""

stub:
def prefix = task.ext.prefix ?: "${meta.id}"
def FCSGX_VERSION = '0.4.0'

"""
mkdir -p out
touch out/${prefix}.fcs_gx_report.txt
touch out/${prefix}.taxonomy.rpt
cat <<-END_VERSIONS > versions.yml
"${task.process}":
python: \$(python3 --version 2>&1 | sed -e "s/Python //g")
FCS-GX: $FCSGX_VERSION
END_VERSIONS
"""
}

0 comments on commit 137d969

Please sign in to comment.