Skip to content

Commit 0d51a46

Browse files
Swap tinc to topics and pin conda versions (#11762)
* Swap tinc to topics and pin conda versions * Update modules/nf-core/tinc/environment.yml * Fix linting --------- Co-authored-by: Lucrezia Valeriani <valerianilucrezia11@gmail.com>
1 parent 8d62f18 commit 0d51a46

5 files changed

Lines changed: 63 additions & 77 deletions

File tree

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1+
---
2+
# yaml-language-server: $schema=https://raw.githubusercontent.com/nf-core/modules/master/modules/environment-schema.json
13
channels:
24
- conda-forge
35
- bioconda
46
dependencies:
5-
- "bioconda::r-tinc=0.1.0"
7+
- bioconda::r-cnaqc=1.1.2
8+
- bioconda::r-tinc=0.1.0
9+
- conda-forge::r-tidyverse=2.0.0

modules/nf-core/tinc/main.nf

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ process TINC {
1313
tuple val(meta), path(cna_rds), path(vcf_rds)
1414

1515
output:
16-
tuple val(meta), path("*_fit.rds"), emit: rds
17-
tuple val(meta), path("*_plot.rds"), emit: plot_rds
18-
tuple val(meta), path("*.pdf"), emit: plot_pdf
19-
tuple val(meta), path("*_qc.csv"), emit: tinc_csv
20-
path "versions.yml", emit: versions
16+
tuple val(meta), path("*_fit.rds"), emit: rds
17+
tuple val(meta), path("*_plot.rds"), emit: plot_rds
18+
tuple val(meta), path("*.pdf"), emit: plot_pdf
19+
tuple val(meta), path("*_qc.csv"), emit: tinc_csv
20+
path "versions.yml", emit: versions_tinc, topic: versions
2121

2222
when:
2323
task.ext.when == null || task.ext.when
@@ -36,7 +36,9 @@ process TINC {
3636
3737
cat <<-END_VERSIONS > versions.yml
3838
"${task.process}":
39-
bioconductor-rtinc: \$(Rscript -e "library(TINC); cat(as.character(packageVersion('TINC')))")
39+
TINC: \$(Rscript -e "library(TINC); cat(as.character(packageVersion('TINC')))")
40+
tidyverse: \$(Rscript -e "cat(as.character(packageVersion('tidyverse')))")
41+
CNAqc: \$(Rscript -e "cat(as.character(packageVersion('CNAqc')))")
4042
END_VERSIONS
4143
"""
4244
}

modules/nf-core/tinc/meta.yml

Lines changed: 15 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
name: "tinc"
2-
description: "TINC is a package to determine the contamination of tumour DNA in a matched normal sample. The approach uses evolutionary theory applied to read counts data from whole-genome sequencing assays."
2+
description: "TINC is a package to determine the contamination of tumour DNA in a
3+
matched normal sample. The approach uses evolutionary theory applied to read counts
4+
data from whole-genome sequencing assays."
35
keywords:
46
- genomics
57
- tumour contamination
68
- normal
79
- purity
8-
910
tools:
1011
- "tinc":
1112
description: "TINC is a package that implements algorithms to determine the contamination
@@ -21,25 +22,22 @@ tools:
2122
documentation: "https://caravagnalab.github.io/TINC/"
2223
tool_dev_url: "https://github.com/caravagnalab/TINC/"
2324
doi: "10.1038/s41467-023-44158-2"
24-
licence: ["GPL v3"]
25+
licence:
26+
- "GPL v3"
2527
identifier: "biotools:r-tinc"
26-
2728
input:
2829
- - meta:
2930
type: map
3031
description: |
3132
Groovy Map containing sample information
3233
e.g. `[ id:'sample1', tumour_sample:'tumour_sample1_name', normal_sample:'normal_sample_name' ]`
33-
3434
- cna_rds:
3535
type: file
3636
description: RDS file with copy number segments and purity
37-
3837
ontologies: []
3938
- vcf_rds:
4039
type: file
4140
description: RDS file with vcf calls from tumour and normal sample
42-
4341
ontologies: []
4442
output:
4543
rds:
@@ -63,7 +61,6 @@ output:
6361
type: file
6462
description: RDS file with the plot of the results
6563
pattern: "*.{rds}"
66-
6764
ontologies: []
6865
plot_pdf:
6966
- - meta:
@@ -86,17 +83,23 @@ output:
8683
type: file
8784
description: CSV file with the output of TINC qc flag
8885
pattern: "*.{csv}"
89-
9086
ontologies:
91-
- edam: http://edamontology.org/format_3752 # CSV
87+
- edam: http://edamontology.org/format_3752
88+
versions_tinc:
89+
- versions.yml:
90+
type: file
91+
description: File containing software versions
92+
pattern: "versions.yml"
93+
ontologies:
94+
- edam: http://edamontology.org/format_3750
95+
topics:
9296
versions:
9397
- versions.yml:
9498
type: file
9599
description: File containing software versions
96100
pattern: "versions.yml"
97-
98101
ontologies:
99-
- edam: http://edamontology.org/format_3750 # YAML
102+
- edam: http://edamontology.org/format_3750
100103
authors:
101104
- "@valerianilucrezia"
102105
maintainers:

modules/nf-core/tinc/tests/main.nf.test

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@ nextflow_process {
3333
assertAll(
3434
{ assert process.success },
3535
{ assert snapshot(
36-
process.out.versions
36+
process.out.findAll { key, val -> key.startsWith('versions') },
37+
path(process.out.versions_tinc[0]).yaml
3738
).match() },
3839
{ assert file(process.out.rds[0][1]).exists() },
3940
{ assert file(process.out.plot_rds[0][1]).exists() },
@@ -62,7 +63,10 @@ nextflow_process {
6263
then {
6364
assertAll(
6465
{ assert process.success },
65-
{ assert snapshot(process.out).match() }
66+
{ assert snapshot(
67+
sanitizeOutput(process.out),
68+
path(process.out.versions_tinc[0]).yaml
69+
).match() }
6670
)
6771
}
6872

Lines changed: 29 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,62 +1,28 @@
11
{
22
"tinc - rds": {
33
"content": [
4-
[
5-
"versions.yml:md5,fd8574ef3613bda9da0db50875ab36fc"
6-
]
4+
{
5+
"versions_tinc": [
6+
"versions.yml:md5,fd8574ef3613bda9da0db50875ab36fc"
7+
]
8+
},
9+
{
10+
"TINC": {
11+
"CNAqc": "1.1.2",
12+
"tidyverse": "2.0.0",
13+
"TINC": "0.1.0"
14+
}
15+
}
716
],
17+
"timestamp": "2026-05-26T11:17:23.848447266",
818
"meta": {
9-
"nf-test": "0.9.2",
10-
"nextflow": "24.10.3"
11-
},
12-
"timestamp": "2025-06-23T17:19:07.295163"
19+
"nf-test": "0.9.5",
20+
"nextflow": "26.04.0"
21+
}
1322
},
1423
"tinc - rds - stub": {
1524
"content": [
1625
{
17-
"0": [
18-
[
19-
{
20-
"id": "test",
21-
"tumour_sample": "HCC1395_HCC1395T",
22-
"normal_sample": "HCC1395_HCC1395N"
23-
},
24-
"test_fit.rds:md5,d41d8cd98f00b204e9800998ecf8427e"
25-
]
26-
],
27-
"1": [
28-
[
29-
{
30-
"id": "test",
31-
"tumour_sample": "HCC1395_HCC1395T",
32-
"normal_sample": "HCC1395_HCC1395N"
33-
},
34-
"test_plot.rds:md5,d41d8cd98f00b204e9800998ecf8427e"
35-
]
36-
],
37-
"2": [
38-
[
39-
{
40-
"id": "test",
41-
"tumour_sample": "HCC1395_HCC1395T",
42-
"normal_sample": "HCC1395_HCC1395N"
43-
},
44-
"test.pdf:md5,d41d8cd98f00b204e9800998ecf8427e"
45-
]
46-
],
47-
"3": [
48-
[
49-
{
50-
"id": "test",
51-
"tumour_sample": "HCC1395_HCC1395T",
52-
"normal_sample": "HCC1395_HCC1395N"
53-
},
54-
"test_qc.csv:md5,d41d8cd98f00b204e9800998ecf8427e"
55-
]
56-
],
57-
"4": [
58-
"versions.yml:md5,794f464ec69ce573be2d9052659964f2"
59-
],
6026
"plot_pdf": [
6127
[
6228
{
@@ -97,15 +63,22 @@
9763
"test_qc.csv:md5,d41d8cd98f00b204e9800998ecf8427e"
9864
]
9965
],
100-
"versions": [
101-
"versions.yml:md5,794f464ec69ce573be2d9052659964f2"
66+
"versions_tinc": [
67+
"versions.yml:md5,092df7ac0ff11e3d2be5cb38671e5e80"
10268
]
69+
},
70+
{
71+
"TINC": {
72+
"TINC": "0.1.0",
73+
"tidyverse": "2.0.0",
74+
"CNAqc": "1.1.2"
75+
}
10376
}
10477
],
78+
"timestamp": "2026-05-26T11:17:34.699461564",
10579
"meta": {
106-
"nf-test": "0.9.2",
107-
"nextflow": "24.10.3"
108-
},
109-
"timestamp": "2025-06-16T18:34:44.017922"
80+
"nf-test": "0.9.5",
81+
"nextflow": "26.04.0"
82+
}
11083
}
11184
}

0 commit comments

Comments
 (0)