Skip to content

Commit 74dd526

Browse files
committed
Merge branch 's3-references' of github.com:nvnieuwk/nf-core-rnafusion into s3-references
2 parents 54ba946 + 06438c9 commit 74dd526

File tree

9 files changed

+337
-585
lines changed

9 files changed

+337
-585
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
119119
- Removed subworkflow with less than two modules: `ARRIBA_WORKFLOW` [#692](https://github.com/nf-core/rnafusion/pull/692)
120120
- Removed subworkflow with less than two modules: `STARFUSION_WORKFLOW` [#707](https://github.com/nf-core/rnafusion/pull/707)
121121
- Removed subworkflow with less than two modules: `CTATSPLICING_WORKFLOW` [#704](https://github.com/nf-core/rnafusion/pull/704)
122+
- Removed subworkflow with less than two modules: `FUSIONREPORT_WORKFLOW` [#721](https://github.com/nf-core/rnafusion/pull/721)
122123

123124
### Parameters
124125

70.7 KB
Loading

docs/images/nf-core-rnafusion_metro_map.svg

Lines changed: 315 additions & 406 deletions
Loading

subworkflows/local/ctatsplicing_workflow/main.nf

Lines changed: 0 additions & 28 deletions
This file was deleted.

subworkflows/local/fusionreport_workflow/main.nf

Lines changed: 0 additions & 34 deletions
This file was deleted.

subworkflows/local/fusionreport_workflow/tests/main.nf.test

Lines changed: 0 additions & 71 deletions
This file was deleted.

subworkflows/local/fusionreport_workflow/tests/main.nf.test.snap

Lines changed: 0 additions & 35 deletions
This file was deleted.

tests/test_stub_bam.nf.test

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,13 +150,16 @@ nextflow_pipeline {
150150

151151
test("stub test starfusion") {
152152

153+
tag "starfusion"
154+
153155
when {
154156
params {
155157
outdir = "$outputDir"
156158
tools = "starfusion"
157159
fusion_annot_lib = 'https://github.com/STAR-Fusion/STAR-Fusion-Tutorial/raw/master/CTAT_HumanFusionLib.mini.dat.gz'
158160
input = "${projectDir}/tests/yml/bam.yml"
159161
genomes_base = "${outputDir}/references"
162+
pfam_file = "http://ftp.ebi.ac.uk/pub/databases/Pfam/releases/Pfam37.4/Pfam-A.hmm.gz"
160163
}
161164
}
162165

@@ -217,6 +220,7 @@ nextflow_pipeline {
217220
}
218221

219222
test("stub test fusionreport") {
223+
tag "fusionreport"
220224

221225
when {
222226
params {
@@ -226,6 +230,7 @@ nextflow_pipeline {
226230
input = "${projectDir}/tests/yml/bam.yml"
227231
no_cosmic = true
228232
genomes_base = "${outputDir}/references"
233+
pfam_file = "http://ftp.ebi.ac.uk/pub/databases/Pfam/releases/Pfam37.4/Pfam-A.hmm.gz"
229234
}
230235
}
231236

workflows/rnafusion.nf

Lines changed: 16 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ include { STARFUSION } from '../modules/local/starfusion/de
1212
include { STRINGTIE_WORKFLOW } from '../subworkflows/local/stringtie_workflow/main'
1313
include { FUSIONCATCHER_WORKFLOW } from '../subworkflows/local/fusioncatcher_workflow'
1414
include { FUSIONINSPECTOR_WORKFLOW } from '../subworkflows/local/fusioninspector_workflow'
15-
include { FUSIONREPORT_WORKFLOW } from '../subworkflows/local/fusionreport_workflow'
15+
include { FUSIONREPORT_DETECT } from '../modules/nf-core/fusionreport/detect/main'
1616
include { FASTQC } from '../modules/nf-core/fastqc/main'
1717
include { MULTIQC } from '../modules/nf-core/multiqc/main'
1818
include { STAR_ALIGN } from '../modules/nf-core/star/align/main'
@@ -308,21 +308,26 @@ workflow RNAFUSION {
308308
def ch_fusion_list_filtered = Channel.empty()
309309
def ch_fusionreport_report = Channel.empty()
310310
def ch_fusionreport_csv = Channel.empty()
311-
if(!params.skip_vis && tools.contains("fusionreport")) {
311+
if (!params.skip_vis && tools.contains("fusionreport")) {
312312
if (!fusions_created) {
313313
error("Could not find any fusion files. Please generate some with `--tools arriba`, `--tools starfusion` and/or `--tools fusioncatcher`")
314314
}
315-
FUSIONREPORT_WORKFLOW (
315+
316+
def ch_fusions = ch_arriba_fusions
317+
.join(ch_starfusion_fusions, failOnMismatch:true, failOnDuplicate:true)
318+
.join(ch_fusioncatcher_fusions, failOnMismatch:true, failOnDuplicate:true)
319+
320+
FUSIONREPORT_DETECT(
321+
ch_fusions,
316322
BUILD_REFERENCES.out.fusionreport_ref,
317-
ch_arriba_fusions,
318-
ch_starfusion_fusions,
319-
ch_fusioncatcher_fusions
323+
params.tools_cutoff
320324
)
321-
ch_versions = ch_versions.mix(FUSIONREPORT_WORKFLOW.out.versions)
322-
ch_fusion_list = FUSIONREPORT_WORKFLOW.out.fusion_list
323-
ch_fusion_list_filtered = FUSIONREPORT_WORKFLOW.out.fusion_list_filtered
324-
ch_fusionreport_report = FUSIONREPORT_WORKFLOW.out.report
325-
ch_fusionreport_csv = FUSIONREPORT_WORKFLOW.out.csv
325+
326+
ch_versions = ch_versions.mix(FUSIONREPORT_DETECT.out.versions)
327+
ch_fusion_list = FUSIONREPORT_DETECT.out.fusion_list
328+
ch_fusion_list_filtered = FUSIONREPORT_DETECT.out.fusion_list_filtered
329+
ch_fusionreport_report = FUSIONREPORT_DETECT.out.report
330+
ch_fusionreport_csv = FUSIONREPORT_DETECT.out.csv
326331
} else if(params.fusioninspector_fusions) {
327332
def input_fusions = file(params.fusioninspector_fusions, checkIfExists:true)
328333
ch_fusion_list = ch_reads.map { it -> [ it[0], input_fusions ] }

0 commit comments

Comments
 (0)