Skip to content

Commit

Permalink
refactor: Add gffs to ppanggolin/panaroo input
Browse files Browse the repository at this point in the history
Signed-off-by: jvfe <[email protected]>
  • Loading branch information
jvfe committed May 9, 2024
1 parent b14ca29 commit f1c93b6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions modules/local/ppanggolin/workflow/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ process PPANGGOLIN_WORKFLOW {

input:
tuple val(meta), path(samplesheet)
path gffs

output:
tuple val(meta), path("$prefix") , emit: results
Expand Down
1 change: 1 addition & 0 deletions modules/nf-core/panaroo/run/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ process PANAROO_RUN {

input:
tuple val(meta), path(gff)
path gffs

output:
tuple val(meta), path("results/*") , emit: results
Expand Down
6 changes: 3 additions & 3 deletions subworkflows/local/phylo.nf
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ workflow PHYLOGENOMICS{
ch_software_versions = Channel.empty()

gffs
.map { meta, path -> [meta.id, path.toString()] }
.map { meta, path -> [meta.id, path.getName()] }
.set { gff_paths }

// Create samplesheet
Expand All @@ -39,7 +39,7 @@ workflow PHYLOGENOMICS{
.map{ path -> [[id: 'ppanggolin'], path] }
.set { gff_samplesheet }

PPANGGOLIN_WORKFLOW(gff_samplesheet)
PPANGGOLIN_WORKFLOW(gff_samplesheet, gffs.collect{ it[1] })

PPANGGOLIN_WORKFLOW.out.pangenome.set { pangenome }

Expand Down Expand Up @@ -76,7 +76,7 @@ workflow PHYLOGENOMICS{
* Core gene identification and alignment
*/
// By default, run panaroo
PANAROO_RUN(gff_samplesheet)
PANAROO_RUN(gff_samplesheet, gffs.collect{ it[1] })
PANAROO_RUN.out.aln.collect{ meta, aln -> aln }.set{ ch_core_alignment }
PANAROO_RUN.out.accessory_aln.set{ ch_all_alignments }

Expand Down

0 comments on commit f1c93b6

Please sign in to comment.