Skip to content
Snippets Groups Projects
Commit 0c07c910 authored by Xavier Grand's avatar Xavier Grand
Browse files

modif src/nf_modules/arriba/main.nf input bai file as a path not a tuple

parent 7f485e40
No related branches found
No related tags found
No related merge requests found
...@@ -185,12 +185,12 @@ workflow { ...@@ -185,12 +185,12 @@ workflow {
} }
filter_bam_quality(mapping2fusion.out.bam) filter_bam_quality(mapping2fusion.out.bam)
index_bam(filter_bam_quality.out.bam.collect()) index_bam(filter_bam_quality.out.bam.collect())
arriba(filter_bam_quality.out.bam, gtf_file.collect(), genome_file.collect()) arriba(index_bam.out.bam_idx.collect(), gtf_file.collect(), genome_file.collect())
draw_fusions(arriba.out.fusions, filter_bam_quality.out.bam, gtf_file, index_bam.out.bam_idx) draw_fusions(arriba.out.fusions, index_bam.out.bam_idx, gtf_file)
} }
else { else {
index_bam(bam_files.collect()) index_bam(bam_files.collect())
arriba(bam_files, gtf_file.collect(), genome_file.collect()) arriba(index_bam.out.bam_idx.collect(), gtf_file.collect(), genome_file.collect())
draw_fusions(arriba.out.fusions, bam_files, gtf_file, index_bam.out.bam_idx) draw_fusions(arriba.out.fusions, index_bam.out.bam_idx, gtf_file)
} }
} }
\ No newline at end of file
...@@ -41,9 +41,8 @@ process draw_fusions{ ...@@ -41,9 +41,8 @@ process draw_fusions{
input: input:
tuple val(fusion_id), path(fusions) tuple val(fusion_id), path(fusions)
tuple val(bam_id), path(bam) tuple val(bam_id), path(bam), path("*.bam.bai")
path(gtf) path(gtf)
path(bai)
output: output:
tuple val(fusion_id), path("*.pdf"), emit: drawn_fusions tuple val(fusion_id), path("*.pdf"), emit: drawn_fusions
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment