Skip to content

Commit

Permalink
Add haplotigs as possible input (#2834)
Browse files Browse the repository at this point in the history
Co-authored-by: Ksenia Krasheninnikova <kk16@sanger.ac.uk>
  • Loading branch information
ksenia-krasheninnikova and Ksenia Krasheninnikova authored Feb 7, 2023
1 parent c9968ab commit 7f59e57
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/nf-core/merquryfk/merquryfk/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ process MERQURYFK_MERQURYFK {
}

input:
tuple val(meta), path(fastk_hist), path(fastk_ktab), path(assembly)
tuple val(meta), path(fastk_hist), path(fastk_ktab), path(assembly), path(haplotigs)

output:
tuple val(meta), path("${prefix}.completeness.stats") , emit: stats
Expand Down Expand Up @@ -46,6 +46,7 @@ process MERQURYFK_MERQURYFK {
-T$task.cpus \\
${fastk_ktab.find{ it.toString().endsWith(".ktab") }} \\
$assembly \\
$haplotigs \\
$prefix
cat <<-END_VERSIONS > versions.yml
Expand Down
6 changes: 5 additions & 1 deletion modules/nf-core/merquryfk/merquryfk/meta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,11 @@ input:
pattern: "*.ktab*"
- assembly:
type: file
description: Genome assembly files (fasta format)
description: Genome (primary) assembly files (fasta format)
pattern: ".fasta"
- haplotigs:
type: file
description: Assembly haplotigs (fasta format)
pattern: ".fasta"

output:
Expand Down
10 changes: 10 additions & 0 deletions tests/modules/nf-core/merquryfk/merquryfk/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,15 @@ workflow test_merquryfk_merquryfk_png {
file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
]

haplotigs = [
[ id:'test', single_end:true ], []
]

FASTK_FASTK ( input )
MERQURYFK_MERQURYFK ( FASTK_FASTK.out.hist
.join( FASTK_FASTK.out.ktab )
.join( Channel.value( assembly ) )
.join( Channel.value( haplotigs ) )
)
}

Expand All @@ -34,9 +39,14 @@ workflow test_merquryfk_merquryfk_pdf {
file(params.test_data['homo_sapiens']['genome']['genome_fasta'], checkIfExists: true)
]

haplotigs = [
[ id:'test', single_end:true ], []
]

FASTK_FASTK ( input )
MERQURYFK_MERQURYFK ( FASTK_FASTK.out.hist
.join( FASTK_FASTK.out.ktab )
.join( Channel.value( assembly ) )
.join( Channel.value( haplotigs ) )
)
}

0 comments on commit 7f59e57

Please sign in to comment.