Skip to content

Commit e0c951b

Browse files
authored
Merge pull request #669 from nf-core/container_fusioninspector
Fixes for STARFUSION and FusionInspector
2 parents 327c30a + 3aa8243 commit e0c951b

File tree

7 files changed

+18
-22
lines changed

7 files changed

+18
-22
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
8080
- `fusioninspector`
8181
- `all` => This will automatically run all of the above tools
8282
- Updated all `wget` containers to `conda-forge::wget=1.21.4` [#655](https://github.com/nf-core/rnafusion/pull/655)
83+
- Using FusionInspector abridged output (that now contains coding effects) for downstream analysis [#669](https://github.com/nf-core/rnafusion/pull/669)
8384

8485
### Fixed
8586

@@ -95,6 +96,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
9596
- Updated the input validation to be more strict. This will prevent more errors down the line in the pipeline [#640](https://github.com/nf-core/rnafusion/pull/640)
9697
- The `FUSIONINSPECTOR` process will no longer fail when no fusions have been found. [#651](https://github.com/nf-core/rnafusion/pull/651)
9798
- Fixed STAR-Fusion build would fail when downloading Pfam and Dfam resources behind SSL. [#653](https://github.com/nf-core/rnafusion/pull/653)
99+
- Fix bug in argument handling for FusionInspector [#669](https://github.com/nf-core/rnafusion/pull/669)
98100

99101
### Removed
100102

conf/modules.config

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ process {
103103
]
104104
}
105105

106-
withName: '.*FUSIONINSPECTOR_WORKFLOW:.*:FUSIONINSPECTOR' {
106+
withName: 'FUSIONINSPECTOR' {
107107
ext.args = { params.fusioninspector_limitSjdbInsertNsj != 1000000 ? "--STAR_xtra_params \"--limitSjdbInsertNsj ${params.fusioninspector_limitSjdbInsertNsj}\"" : '' }
108108
ext.args2 = '--annotate --examine_coding_effect'
109109
}

modules/local/fusioninspector/main.nf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ process FUSIONINSPECTOR {
1313

1414
output:
1515
tuple val(meta), path("*FusionInspector.fusions.tsv") , emit: tsv
16-
tuple val(meta), path("*.coding_effect") , optional:true, emit: tsv_coding_effect
1716
tuple val(meta), path("*.gtf") , optional:true, emit: out_gtf
1817
tuple val(meta), path("*FusionInspector.log") , emit: log
1918
tuple val(meta), path("*html") , emit: html

modules/local/fusioninspector/tests/main.nf.test

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ nextflow_process {
2525
]
2626

2727
input[2] = file("https://github.com/STAR-Fusion/STAR-Fusion-Tutorial/raw/master/CTAT_HumanFusionLib.mini.dat.gz")
28-
input[3] = "human"
28+
input[3] = "homo_sapiens"
29+
input [4] = "3.8"
30+
input [5] = "37.4"
2931
"""
3032
}
3133
}
@@ -44,7 +46,7 @@ nextflow_process {
4446
file("https://github.com/FusionInspector/FusionInspector/raw/master/test/fusion_targets.A.txt")
4547
]
4648
]
47-
input[1] = STARFUSION_BUILD.out.reference.map { it[1] }
49+
input[1] = STARFUSION_BUILD.out.reference
4850
"""
4951
}
5052
}
@@ -128,7 +130,7 @@ nextflow_process {
128130
file("https://github.com/FusionInspector/FusionInspector/raw/master/test/fusion_targets.A.txt")
129131
]
130132
]
131-
input[1] = []
133+
input[1] = [[id:'minigenome_refs'],[]]
132134
"""
133135
}
134136
}

modules/local/fusioninspector/tests/main.nf.test.snap

Lines changed: 8 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@
1515

1616
],
1717
"2": [
18-
19-
],
20-
"3": [
2118
[
2219
{
2320
"id": "test",
@@ -26,7 +23,7 @@
2623
"test.FusionInspector.log:md5,d41d8cd98f00b204e9800998ecf8427e"
2724
]
2825
],
29-
"4": [
26+
"3": [
3027
[
3128
{
3229
"id": "test",
@@ -35,7 +32,7 @@
3532
"test.fusion_inspector_web.html:md5,d41d8cd98f00b204e9800998ecf8427e"
3633
]
3734
],
38-
"5": [
35+
"4": [
3936
[
4037
{
4138
"id": "test",
@@ -44,7 +41,7 @@
4441
"test.FusionInspector.fusions.abridged.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
4542
]
4643
],
47-
"6": [
44+
"5": [
4845
[
4946
{
5047
"id": "test",
@@ -73,7 +70,7 @@
7370
]
7471
]
7572
],
76-
"7": [
73+
"6": [
7774
[
7875
{
7976
"id": "test",
@@ -133,7 +130,7 @@
133130
]
134131
]
135132
],
136-
"8": [
133+
"7": [
137134
[
138135
{
139136
"id": "test",
@@ -186,7 +183,7 @@
186183
]
187184
]
188185
],
189-
"9": [
186+
"8": [
190187
"versions.yml:md5,ad8d0da5929dfa70794bccf8765ddb23"
191188
],
192189
"abridged_tsv": [
@@ -369,9 +366,6 @@
369366
},
370367
"test.FusionInspector.fusions.tsv:md5,d41d8cd98f00b204e9800998ecf8427e"
371368
]
372-
],
373-
"tsv_coding_effect": [
374-
375369
],
376370
"versions": [
377371
"versions.yml:md5,ad8d0da5929dfa70794bccf8765ddb23"
@@ -380,9 +374,9 @@
380374
],
381375
"meta": {
382376
"nf-test": "0.9.2",
383-
"nextflow": "24.10.3"
377+
"nextflow": "25.04.2"
384378
},
385-
"timestamp": "2024-12-31T13:48:13.020571472"
379+
"timestamp": "2025-05-19T14:11:46.597061"
386380
},
387381
"FUSIONINSPECTOR": {
388382
"content": [
Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
process {
22
withName: 'FUSIONINSPECTOR' {
3-
ext.args = '--annotate --examine_coding_effect'
4-
}
3+
ext.args = '--annotate --examine_coding_effect' }
54
}

subworkflows/local/fusioninspector_workflow.nf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ workflow FUSIONINSPECTOR_WORKFLOW {
4646
AGAT_CONVERTSPGFF2TSV(FUSIONINSPECTOR.out.out_gtf)
4747
ch_versions = ch_versions.mix(AGAT_CONVERTSPGFF2TSV.out.versions)
4848

49-
fusion_data = FUSIONINSPECTOR.out.tsv_coding_effect.join(AGAT_CONVERTSPGFF2TSV.out.tsv).join(fusionreport_out).join(fusionreport_csv)
49+
fusion_data = FUSIONINSPECTOR.out.abridged_tsv.join(AGAT_CONVERTSPGFF2TSV.out.tsv).join(fusionreport_out).join(fusionreport_csv)
5050

5151
VCF_COLLECT(fusion_data, ch_hgnc_ref, ch_hgnc_date)
5252
ch_versions = ch_versions.mix(VCF_COLLECT.out.versions)

0 commit comments

Comments
 (0)