Skip to content

Commit

Permalink
Merge pull request #32 from CarsonJM/dev
Browse files Browse the repository at this point in the history
Updated nf-core modules to fix nf-tests
  • Loading branch information
CarsonJM authored Feb 2, 2024
2 parents 0f5f931 + cad6184 commit 8ccb7a9
Show file tree
Hide file tree
Showing 13 changed files with 155 additions and 44 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ testing/
testing*
*.pyc
.nf-tests/
.nf-test/
.nf-test.log
6 changes: 3 additions & 3 deletions modules.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@
},
"fastqc": {
"branch": "master",
"git_sha": "c9488585ce7bd35ccd2a30faa2371454c8112fb9",
"git_sha": "f4ae1d942bd50c5c0b9bd2de1393ce38315ba57c",
"installed_by": ["modules"]
},
"multiqc": {
"branch": "master",
"git_sha": "8ec825f465b9c17f9d83000022995b4f7de6fe93",
"git_sha": "9e71d8519dfbfc328c078bba14d4bd4c99e39a94",
"installed_by": ["modules"]
},
"ncbigenomedownload": {
Expand All @@ -48,7 +48,7 @@
},
"samtools/index": {
"branch": "master",
"git_sha": "5394565c5fe4c760e5b35977ec7607c62e81d1f8",
"git_sha": "a64788f5ad388f1d2ac5bd5f1f3f8fc81476148c",
"installed_by": ["modules"]
}
}
Expand Down
14 changes: 7 additions & 7 deletions modules/nf-core/fastqc/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

76 changes: 72 additions & 4 deletions modules/nf-core/fastqc/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/nf-core/fastqc/tests/tags.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 7 additions & 6 deletions modules/nf-core/multiqc/tests/main.nf.test

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

28 changes: 24 additions & 4 deletions modules/nf-core/multiqc/tests/main.nf.test.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/nf-core/multiqc/tests/tags.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion modules/nf-core/samtools/index/environment.yml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions modules/nf-core/samtools/index/main.nf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions nextflow_schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@
},
"target_capture_fshape": {
"type": "number",
"default": 6,
"default": 6.0,
"description": "Shape parameter of the fragment size distribution."
},
"target_capture_smedian": {
Expand All @@ -168,7 +168,7 @@
},
"target_capture_sshape": {
"type": "number",
"default": 6,
"default": 6.0,
"description": "Shape parameter of the fragment size distribution."
},
"target_capture_tmedian": {
Expand Down
16 changes: 5 additions & 11 deletions nf-test.config
Original file line number Diff line number Diff line change
@@ -1,16 +1,10 @@
config {
// location for all nf-tests
// Location of nf-tests
testsDir "."

// nf-test directory including temporary files for each test
workDir ".nf-tests"
// nf-test directory used to create temporary files for each test
workDir System.getenv("NFT_WORKDIR") ?: ".nf-test"

// location of library folder that is added automatically to the classpath
libDir "lib/"

// location of an optional nextflow.config file specific for executing tests
configFile "nextflow.config"

// run all test with the defined docker profile from the main nextflow.config
profile ""
// Location of an optional nextflow.config file specific for executing pipeline tests
configFile "tests/nextflow.config"
}
27 changes: 27 additions & 0 deletions tests/nextflow.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
params {
// Base directory for nf-core/modules test data
modules_testdata_base_path = 's3://ngi-igenomes/testdata/nf-core/modules/'
}

// Load test_data.config for for using test-datasets
includeConfig '../conf/test_data.config'

// Impose sensible resource limits for testing
process {
withName: '.*' {
cpus = 2
memory = 3.GB
time = 2.h
}
}

// Impose same minimum Nextflow version as the pipeline for testing
manifest {
nextflowVersion = '!>=23.04.0'
}

// Disable all Nextflow reporting options
timeline { enabled = false }
report { enabled = false }
trace { enabled = false }
dag { enabled = false }

0 comments on commit 8ccb7a9

Please sign in to comment.