Skip to content

Commit 0cf1636

Browse files
authored
Merge pull request #539 from atrigila/migrate_picard
Add nf-test to local module `ENSEMBL_DOWNLOAD`
2 parents 22d0e80 + f767168 commit 0cf1636

File tree

4 files changed

+56
-0
lines changed

4 files changed

+56
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ testing/
77
testing*
88
*.pyc
99
null/
10+
.nf-test*

CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
1010
- Normalized gene expression calculated [#488](https://github.com/nf-core/rnafusion/pull/488)
1111
- Primary assembly now used as main reference genome FASTA file, as recommended by the STAR manual [#488](https://github.com/nf-core/rnafusion/pull/488)
1212
- Use of only ensembl GTF file, not chr.gtf file as GTF reference file [#488](https://github.com/nf-core/rnafusion/pull/488)
13+
- Add nf-test to local module: `ENSEMBL_DOWNLOAD` [#508](https://github.com/nf-core/rnafusion/pull/508)
1314

1415
### Changed
1516

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
nextflow_process {
2+
3+
name "Test Process ENSEMBL_DOWNLOAD"
4+
script "../main.nf"
5+
process "ENSEMBL_DOWNLOAD"
6+
7+
test("Should download Ensembl files") {
8+
9+
when {
10+
params {
11+
outdir = "tests/results"
12+
genome = "GRCh38"
13+
}
14+
process {
15+
"""
16+
input[0] = "102"
17+
input[1] = "GRCh38"
18+
input[2] = "GRCh38"
19+
"""
20+
}
21+
}
22+
23+
then {
24+
assertAll(
25+
{ assert process.success },
26+
{ assert snapshot(
27+
file(process.out.gtf[0][1]).name,
28+
file(process.out.primary_assembly[0][1]).name,
29+
file(process.out.chrgtf[0][1]).name,
30+
process.out.versions
31+
).match() }
32+
)
33+
}
34+
35+
}
36+
37+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"Should download Ensembl files": {
3+
"content": [
4+
"Homo_sapiens.GRCh38.102.gtf",
5+
"Homo_sapiens.GRCh38.102.dna.primary_assembly.fa",
6+
"Homo_sapiens.GRCh38.102.chr.gtf",
7+
[
8+
"versions.yml:md5,efb55665a151fe2b4d9eac70c0e01bb0"
9+
]
10+
],
11+
"meta": {
12+
"nf-test": "0.9.2",
13+
"nextflow": "24.10.1"
14+
},
15+
"timestamp": "2024-11-26T14:06:24.319131837"
16+
}
17+
}

0 commit comments

Comments
 (0)