Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
d4straub committed Dec 20, 2024
1 parent d9c0cc9 commit ef6c984
Show file tree
Hide file tree
Showing 12 changed files with 23 additions and 8 deletions.
3 changes: 3 additions & 0 deletions conf/test_multi.config
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,7 @@ params {
dada_ref_taxonomy = "rdp=18"
skip_dada_addspecies = true
input = params.pipelines_testdata_base_path + "ampliseq/samplesheets/Samplesheet_multi.tsv"

skip_phyloseq = true
skip_tse = true
}
2 changes: 2 additions & 0 deletions conf/test_pacbio_its.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ params {

// Prevent default taxonomic classification
skip_dada_taxonomy = true

skip_phyloseq = true
}
2 changes: 2 additions & 0 deletions conf/test_reftaxcustom.config
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,6 @@ params {

// Skip downstream analysis with QIIME2
skip_qiime_downstream = true

skip_tse = true
}
1 change: 1 addition & 0 deletions tests/pipeline/doubleprimers.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ nextflow_pipeline {
{ assert snapshot(path("$outputDir/input/Samplesheet_double_primer.tsv")).match("input") },
{ assert new File("$outputDir/qiime2/abundance_tables/feature-table.tsv").exists() },
{ assert new File("$outputDir/phyloseq/kraken2_phyloseq.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/kraken2_TreeSummarizedExperiment.rds").exists() },
{ assert snapshot(path("$outputDir/kraken2/ASV_tax.greengenes.kraken2.classifiedreads.txt"),
path("$outputDir/kraken2/ASV_tax.greengenes.kraken2.complete.tsv"),
path("$outputDir/kraken2/ASV_tax.greengenes.kraken2.tsv")).match("kraken2") },
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/failed.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ nextflow_pipeline {
{ assert new File("$outputDir/qiime2/diversity/alpha_diversity/shannon_vector/kruskal-wallis-pairwise-treatment1.csv").exists() },
{ assert new File("$outputDir/qiime2/diversity/beta_diversity/bray_curtis_pcoa_results-PCoA/index.html").exists() },
{ 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/treesummarizedexperiment/dada2_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/iontorrent.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,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/sintax_phyloseq.rds").exists() }
{ assert new File("$outputDir/phyloseq/sintax_phyloseq.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/sintax_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
3 changes: 1 addition & 2 deletions tests/pipeline/multi.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,7 @@ nextflow_pipeline {
{ assert new File("$outputDir/qiime2/representative_sequences/rep-seq.fasta").exists() },
{ assert snapshot(path("$outputDir/qiime2/representative_sequences/descriptive_stats.tsv"),
path("$outputDir/qiime2/representative_sequences/seven_number_summary.tsv")).match("qiime2") },
{ assert new File("$outputDir/summary_report/summary_report.html").exists() },
{ assert new File("$outputDir/phyloseq/dada2_phyloseq.rds").exists() }
{ assert new File("$outputDir/summary_report/summary_report.html").exists() }
)
}
}
Expand Down
2 changes: 1 addition & 1 deletion tests/pipeline/pacbio_its.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ nextflow_pipeline {
{ assert new File("$outputDir/SBDI/annotation.tsv").exists() },
{ assert new File("$outputDir/SBDI/asv-table.tsv").exists() },
{ assert new File("$outputDir/summary_report/summary_report.html").exists() },
{ assert new File("$outputDir/phyloseq/sintax_phyloseq.rds").exists() }
{ assert new File("$outputDir/treesummarizedexperiment/sintax_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
4 changes: 3 additions & 1 deletion tests/pipeline/pplace.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ nextflow_pipeline {
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/pplace_phyloseq.rds").exists() }
{ assert new File("$outputDir/phyloseq/pplace_phyloseq.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/qiime2_TreeSummarizedExperiment.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/pplace_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/single.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,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/treesummarizedexperiment/dada2_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
3 changes: 2 additions & 1 deletion tests/pipeline/sintax.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,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/sintax_phyloseq.rds").exists() }
{ assert new File("$outputDir/phyloseq/sintax_phyloseq.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/sintax_TreeSummarizedExperiment.rds").exists() }
)
}
}
Expand Down
2 changes: 2 additions & 0 deletions tests/pipeline/test.nf.test
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ nextflow_pipeline {
{ assert new File("$outputDir/summary_report/summary_report.html").exists() },
{ assert new File("$outputDir/phyloseq/dada2_phyloseq.rds").exists() },
{ assert new File("$outputDir/phyloseq/qiime2_phyloseq.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/dada2_TreeSummarizedExperiment.rds").exists() },
{ assert new File("$outputDir/treesummarizedexperiment/qiime2_TreeSummarizedExperiment.rds").exists() },
{ assert snapshot(path("$outputDir/vsearch_cluster/ASV_post_clustering_filtered.fna"),
path("$outputDir/vsearch_cluster/ASV_post_clustering_filtered.stats.tsv"),
path("$outputDir/vsearch_cluster/ASV_post_clustering_filtered.table.tsv")).match("vsearch_cluster") }
Expand Down

0 comments on commit ef6c984

Please sign in to comment.