Skip to content

Commit

Permalink
refactor(grohmm): Use each input
Browse files Browse the repository at this point in the history
Didn't know that was a thing!
  • Loading branch information
edmundmiller committed Sep 27, 2024
1 parent 89051e5 commit bba68b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 3 additions & 1 deletion modules/local/grohmm/parametertuning/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,10 @@ process GROHMM_PARAMETERTUNING {
'community.wave.seqera.io/library/grohmm:833aa94cad4202ac' }"

input:
tuple val(meta), path(bams), path(bais), val(UTS), val(LtProbB)
tuple val(meta), path(bams), path(bais)
path gtf
each UTS
each LtProbB

output:
tuple val(meta), path("*.tuning.csv"), emit: tuning
Expand Down
8 changes: 3 additions & 5 deletions subworkflows/local/grohmm/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,12 @@ workflow GROHMM {
ch_uts = channel.fromList((params.grohmm_min_uts..params.grohmm_max_uts).step(5))
// -100..-400 by 50 for LtProbB
ch_ltprobb = channel.fromList((params.grohmm_min_ltprobb..params.grohmm_max_ltprobb).step(50))
ch_bams_bais_uts_ltprobb =
bams_bais
.combine(ch_uts)
.combine(ch_ltprobb)

GROHMM_PARAMETERTUNING (
ch_bams_bais_uts_ltprobb,
bams_bais,
gtf,
ch_uts,
ch_ltprobb,
)
.tuning
.collectFile(
Expand Down

0 comments on commit bba68b5

Please sign in to comment.