Skip to content

Commit

Permalink
fix: Remove relative paths from quast input
Browse files Browse the repository at this point in the history
  • Loading branch information
jvfe committed Jun 7, 2024
1 parent 0348fe7 commit 1a0e345
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 18 deletions.
3 changes: 2 additions & 1 deletion modules/nf-core/quast/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ process QUAST {
val use_fasta
val use_gff


output:
path "${prefix}" , emit: results
path "*.tsv" , emit: tsv
Expand All @@ -34,7 +35,7 @@ process QUAST {
$features \\
--threads $task.cpus \\
$args \\
\$(cat ${consensus.join(' ')})
${consensus.join(' ')}
ln -s ${prefix}/report.tsv
Expand Down
16 changes: 5 additions & 11 deletions modules/nf-core/quast/quast.diff
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@ Changes in module 'nf-core/quast'
container "${ workflow.containerEngine == 'singularity' && !task.ext.singularity_pull_docker_container ?
'https://depot.galaxyproject.org/singularity/quast:5.2.0--py39pl5321h2add14b_1' :
'quay.io/biocontainers/quast:5.2.0--py39pl5321h2add14b_1' }"
@@ -15,7 +15,8 @@
@@ -13,9 +13,11 @@
val use_fasta
val use_gff

+
output:
path "${prefix}" , emit: results
- path '*.tsv' , emit: tsv
Expand All @@ -20,16 +23,7 @@ Changes in module 'nf-core/quast'
path "versions.yml" , emit: versions

when:
@@ -33,7 +34,7 @@
$features \\
--threads $task.cpus \\
$args \\
- ${consensus.join(' ')}
+ \$(cat ${consensus.join(' ')})

ln -s ${prefix}/report.tsv

@@ -42,4 +43,16 @@
@@ -42,4 +44,16 @@
quast: \$(quast.py --version 2>&1 | sed 's/^.*QUAST v//; s/ .*\$//')
END_VERSIONS
"""
Expand Down
7 changes: 1 addition & 6 deletions subworkflows/local/assemblyqc.nf
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,8 @@ workflow CHECK_ASSEMBLIES {
/*
* Module: QUAST quality check
*/
assemblies
.map { meta, fasta -> fasta.toString() }
.collectFile(name:'assemblies.txt', newLine: true)
.set { quast_input }

QUAST (
quast_input,
assemblies.collect { meta, fasta -> fasta },
reference_genome,
[],
use_reference_genome,
Expand Down

0 comments on commit 1a0e345

Please sign in to comment.