Skip to content

Commit

Permalink
Merge pull request #676 from d4straub/fix_phyloseq_input
Browse files Browse the repository at this point in the history
Fix phyloseq input
  • Loading branch information
d4straub authored Dec 12, 2023
2 parents 0b29755 + 99b1db6 commit 746c524
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 5 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

- [#672](https://github.com/nf-core/ampliseq/pull/672) - Update output docs for collapsed abundance tables
- [#673](https://github.com/nf-core/ampliseq/pull/673) - Fix logic relating to generation of qiime2 taxonomy part of summary report
- [#676](https://github.com/nf-core/ampliseq/pull/676) - Phyloseq sometimes only produced one of multiple output files

### `Dependencies`

Expand Down
3 changes: 1 addition & 2 deletions modules/local/phyloseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,7 @@ process PHYLOSEQ {
'biocontainers/bioconductor-phyloseq:1.44.0--r43hdfd78af_0' }"

input:
tuple val(prefix), path(tax_tsv)
path otu_tsv
tuple val(prefix), path(tax_tsv), path(otu_tsv)
path sam_tsv
path tree

Expand Down
2 changes: 1 addition & 1 deletion subworkflows/local/phyloseq_workflow.nf
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ workflow PHYLOSEQ_WORKFLOW {
ch_phyloseq_inasv = ch_tsv
}

PHYLOSEQ ( ch_tax, ch_phyloseq_inasv, ch_phyloseq_inmeta, ch_phyloseq_intree )
PHYLOSEQ ( ch_tax.combine(ch_phyloseq_inasv), ch_phyloseq_inmeta, ch_phyloseq_intree )

emit:
rds = PHYLOSEQ.out.rds
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/pplace.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,8 @@ nextflow_pipeline {
{ assert snapshot(path("$outputDir/multiqc/multiqc_data/multiqc_general_stats.txt"),
path("$outputDir/multiqc/multiqc_data/multiqc_cutadapt.txt")).match("multiqc") },
{ assert new File("$outputDir/summary_report/summary_report.html").exists() },
{ assert new File("$outputDir/phyloseq/qiime2_phyloseq.rds").exists() }
{ assert new File("$outputDir/phyloseq/qiime2_phyloseq.rds").exists() },
{ assert new File("$outputDir/phyloseq/pplace_phyloseq.rds").exists() }
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/reftaxcustom.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ nextflow_pipeline {
path("$outputDir/multiqc/multiqc_data/multiqc_general_stats.txt"),
path("$outputDir/multiqc/multiqc_data/multiqc_cutadapt.txt")).match("multiqc") },
{ assert new File("$outputDir/summary_report/summary_report.html").exists() },
{ assert new File("$outputDir/phyloseq/dada2_phyloseq.rds").exists() }
{ assert new File("$outputDir/phyloseq/dada2_phyloseq.rds").exists() },
{ assert new File("$outputDir/phyloseq/kraken2_phyloseq.rds").exists() }
)
}
}
Expand Down

0 comments on commit 746c524

Please sign in to comment.