-
Notifications
You must be signed in to change notification settings - Fork 159
Implement nf-test #475
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Implement nf-test #475
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
22ead19
test: Implement nf-tests
edmundmiller 0970051
chore: Add stubs to local modules
edmundmiller 4655769
test: Implement nft-utils for enhanced snapshot testing
edmundmiller 779ce9a
style: The RO-Crate descriptions do not match the README.md content
edmundmiller File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,3 +7,5 @@ testing/ | |
testing* | ||
*.pyc | ||
null/ | ||
|
||
.nf-test* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,6 @@ config { | |
|
||
// load the necessary plugins | ||
plugins { | ||
load "[email protected].3" | ||
load "[email protected].5" | ||
} | ||
} |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,84 @@ | ||
# === SYSTEM FILES === | ||
.DS_Store | ||
**/.DS_Store | ||
|
||
# === PIPELINE EXECUTION METADATA === | ||
pipeline_info/*.{html,json,txt,yml} | ||
|
||
# === MULTIQC OUTPUTS === | ||
# MultiQC files contain timestamps, system paths, and run-specific data | ||
multiqc/multiqc_data/fastqc_top_overrepresented_sequences_table.txt | ||
multiqc/multiqc_data/BETA-multiqc.parquet | ||
multiqc/multiqc_data/multiqc.log | ||
multiqc/multiqc_data/multiqc_data.json | ||
**/multiqc.log | ||
**/multiqc_data.json | ||
**/multiqc_report.html | ||
multiqc/multiqc_data/multiqc_sources.txt | ||
multiqc/multiqc_data/multiqc_software_versions.txt | ||
multiqc/multiqc_plots/{svg,pdf,png}/*.{svg,pdf,png} | ||
multiqc/multiqc_report.html | ||
|
||
# === QC TOOL OUTPUTS === | ||
fastqc/*_fastqc.{html,zip} | ||
pipeline_info/*.{html,json,txt,yml} | ||
**/*_fastqc.html | ||
**/*_val_*_fastqc.html | ||
|
||
# === BINARY AND COMPRESSED FILES === | ||
**/*.{pdf,png,svg,gz,bam,bai,bigWig,zip,RData,rds} | ||
|
||
# === TOOL-SPECIFIC METRICS FILES === | ||
# Picard metrics | ||
**/*.quality_distribution_metrics | ||
**/*.quality_by_cycle_metrics | ||
**/*.insert_size_metrics | ||
**/*.alignment_summary_metrics | ||
**/*.base_distribution_by_cycle_metrics | ||
**/*.MarkDuplicates.metrics.txt | ||
|
||
# Trimming reports | ||
**/*_trimming_report.txt | ||
|
||
# Generic outputs | ||
**/*.out | ||
|
||
# === ANALYSIS RESULTS (FLOATING-POINT VARIATIONS) === | ||
# DeepTools outputs | ||
**/*.plotFingerprint.raw.txt | ||
**/*.plotFingerprint.qcmetrics.txt | ||
**/*.computeMatrix.vals.mat.tab | ||
**/*.plotHeatmap.mat.tab | ||
**/*.computeMatrix.mat.gz | ||
**/*.plotProfile.tab | ||
|
||
# Peak calling and annotation | ||
**/*.annotatePeaks.txt | ||
**/*.boolean.annotatePeaks.txt | ||
**/macs3_peak.summary.txt | ||
|
||
# Feature counting | ||
**/*.featureCounts.txt | ||
**/*.featureCounts.txt.summary | ||
|
||
# Statistical analysis | ||
**/*.pca.vals.txt | ||
**/*.pca.vals_mqc.tsv | ||
**/*.sample.dists.txt | ||
**/*.sample.dists_mqc.tsv | ||
|
||
# === YAML CONFIGURATION FILES === | ||
**/deeptools_plot_profile_mlib_deeptools.yaml | ||
**/multiqc_deseq2_clustering_1.yaml | ||
**/multiqc_deseq2_pca_1.yaml | ||
**/multiqc_sources.yaml | ||
**/read_distribution_profile.yaml | ||
**/deeptools_fingerprint_plot.yaml | ||
**/deeptools_plot_fingerprint_counts_mlib_deeptools.yaml | ||
|
||
# === CHIP-SEQ SPECIFIC OUTPUTS === | ||
# PhantomPeakQualTools outputs (contain variable correlation data) | ||
**/*.spp_correlation_mqc.tsv | ||
**/*.spp_nsc_mqc.tsv | ||
**/*.spp_rsc_mqc.tsv | ||
|
||
# === IGV SESSION FILES === | ||
# IGV session files contain absolute paths and timestamps | ||
**/igv_files.txt | ||
**/igv_session.xml |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline with bowtie2 aligner" | ||
script "../main.nf" | ||
tag "bowtie2" | ||
|
||
test("bowtie2") { | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
aligner = "bowtie2" | ||
} | ||
} | ||
|
||
then { | ||
// stable_name: All files + folders in ${params.outdir}/ with a stable name | ||
def stable_name = getAllFilesFromDir(params.outdir, relative: true, includeDir: true, ignore: ['pipeline_info/*.{html,json,txt}']) | ||
// stable_path: All files in ${params.outdir}/ with stable content | ||
def stable_path = getAllFilesFromDir(params.outdir, ignoreFile: 'tests/.nftignore') | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot( | ||
// Number of successful tasks | ||
workflow.trace.succeeded().size(), | ||
// pipeline versions.yml file for multiqc from which Nextflow version is removed because we test pipelines on multiple Nextflow versions | ||
removeNextflowVersion("$outputDir/pipeline_info/nf_core_chipseq_software_mqc_versions.yml"), | ||
// All stable path name, with a relative path | ||
stable_name, | ||
// All files with stable contents | ||
stable_path | ||
).match() } | ||
) | ||
} | ||
} | ||
|
||
test("bowtie2 with stub") { | ||
|
||
options "-stub" | ||
|
||
when { | ||
params { | ||
outdir = "$outputDir" | ||
aligner = "bowtie2" | ||
} | ||
} | ||
|
||
then { | ||
assertAll( | ||
{ assert workflow.success }, | ||
{ assert snapshot( | ||
workflow.trace.succeeded().size() | ||
).match() } | ||
) | ||
} | ||
} | ||
} |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.