Skip to content

Commit 60cd053

Browse files
Fix pycloneevi (#11766)
* Remove space to trigger test * Update snapshot * Add .yaml * Update python script version extraction --------- Co-authored-by: Lucrezia Valeriani <valerianilucrezia11@gmail.com>
1 parent 7b581d0 commit 60cd053

4 files changed

Lines changed: 17 additions & 15 deletions

File tree

modules/nf-core/pyclonevi/main.nf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ process PYCLONEVI {
2424

2525
stub:
2626
def prefix = task.ext.prefix ?: "${meta.id}"
27-
2827
"""
2928
touch ${prefix}_cluster_table.csv
3029
touch ${prefix}.tsv

modules/nf-core/pyclonevi/templates/main_script.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -163,9 +163,7 @@ def pyclone_ctree(joint, best_fit, ctree_input):
163163

164164
# Version
165165
version = (
166-
subprocess.check_output("pip show pyclone-vi | grep Version | awk '{print \$NF}'", shell=True)
167-
.decode()
168-
.split("\\n")[0]
166+
subprocess.check_output("pyclone-vi --version | sed 's/.*version //g'", shell=True).decode().split("\\n")[0]
169167
)
170168

171169
f = open("versions.yml", "a")

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ nextflow_process {
2828
assert process.success
2929
assertAll(
3030
{ assert snapshot(
31-
sanitizeOutput(
32-
process.out,
33-
unstableKeys: ["ctree_input", "pyclone_input", "pyclone_all_fits", "pyclone_best_fit"]
34-
)).match() }
31+
sanitizeOutput(process.out,
32+
unstableKeys: ["ctree_input", "pyclone_input", "pyclone_all_fits", "pyclone_best_fit"]),
33+
path(process.out.versions_pyclonevi[0]).yaml
34+
).match() }
3535
)
3636
}
3737

modules/nf-core/pyclonevi/tests/main.nf.test.snap

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -43,19 +43,19 @@
4343
]
4444
],
4545
"versions_pyclonevi": [
46-
"versions.yml:md5,d7a72f90b5e871ad593d6b02ac78abb4"
46+
"versions.yml:md5,bc0f9ae69eb48d45a2c7389d55f7882e"
4747
]
4848
},
4949
{
5050
"PYCLONEVI": {
51-
"pyclonevi": "0.1.6"
51+
"pyclonevi": "0.2.0"
5252
}
5353
}
5454
],
55-
"timestamp": "2026-05-26T11:01:04.192976421",
55+
"timestamp": "2026-05-26T17:22:45.350487609",
5656
"meta": {
5757
"nf-test": "0.9.5",
58-
"nextflow": "26.04.0"
58+
"nextflow": "26.04.2"
5959
}
6060
},
6161
"pyclonevi": {
@@ -105,14 +105,19 @@
105105
]
106106
],
107107
"versions_pyclonevi": [
108-
"versions.yml:md5,764c065f67a1502d5158a8a018d8a388"
108+
"versions.yml:md5,3d517410bfd758e0eea9bef7f40d22e6"
109109
]
110+
},
111+
{
112+
"PYCLONEVI": {
113+
"pyclonevi": "0.2.0"
114+
}
110115
}
111116
],
112-
"timestamp": "2026-05-26T11:00:56.527463061",
117+
"timestamp": "2026-05-27T07:54:19.275868186",
113118
"meta": {
114119
"nf-test": "0.9.5",
115-
"nextflow": "26.04.0"
120+
"nextflow": "26.04.2"
116121
}
117122
}
118123
}

0 commit comments

Comments
 (0)