-
Notifications
You must be signed in to change notification settings - Fork 424
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
Migrate pipeline pytest alignment and annotation tests to nf-test #1708
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
47e0802
convert tests
maxulysse 1c8104e
one more
maxulysse d12b1c1
no igenomes
maxulysse fa5fbbc
fix path
maxulysse fe5c75a
snpeff
maxulysse 9c1fbc5
add check for failures
maxulysse efae78d
cache
maxulysse cb85367
rename + bcfann
maxulysse 565ef20
add merge + refactor snpeff/vep
maxulysse 16d5c48
update CHANGELOG
maxulysse d745104
Merge branch 'dev' into pytest_convert
maxulysse 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 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 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 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 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 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,46 @@ | ||
nextflow_pipeline { | ||
|
||
name "Test pipeline" | ||
script "../main.nf" | ||
tag "pipeline" | ||
tag "pipeline_sarek" | ||
profile "alignment_from_everything" | ||
|
||
test("Run with profile test,alignment_from_everything | --save_mapped --save_output_as_bam") { | ||
|
||
when { | ||
params { | ||
modules_testdata_base_path = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data/' | ||
igenomes_base = 'https://raw.githubusercontent.com/nf-core/test-datasets/modules/data' | ||
outdir = "$outputDir" | ||
save_mapped = true | ||
save_output_as_bam = true | ||
} | ||
} | ||
|
||
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') | ||
// cram_files: All cram files | ||
def cram_files = getAllFilesFromDir(params.outdir, include: ['**/*.cram']) | ||
def fasta = params.modules_testdata_base_path + 'genomics/homo_sapiens/genome/genome.fasta' | ||
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 tests pipelines on multiple Nextflow versions | ||
removeNextflowVersion("$outputDir/pipeline_info/nf_core_sarek_software_mqc_versions.yml"), | ||
// All stable path name, with a relative path | ||
stable_name, | ||
// All files with stable contents | ||
stable_path, | ||
// All cram files | ||
cram_files.collect{ file -> [ file.getName(), cram(file.toString(), fasta).getReadsMD5() ] } | ||
).match() } | ||
) | ||
} | ||
} | ||
} |
Oops, something went wrong.
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.
can we name this better