Skip to content

Commit

Permalink
update view with messages
Browse files Browse the repository at this point in the history
  • Loading branch information
suzannejin committed Jan 16, 2025
1 parent 8ff53a4 commit bd3613d
Showing 1 changed file with 12 additions and 25 deletions.
37 changes: 12 additions & 25 deletions subworkflows/nf-core/abundance_differential_filter/main.nf
Original file line number Diff line number Diff line change
Expand Up @@ -58,21 +58,14 @@ workflow ABUNDANCE_DIFFERENTIAL_FILTER {
.combine(ch_contrasts.first()) // Just taking the first contrast
.multiMap(criteria)

println('---- inputs ----')
println('inputs - samples_and_matrix')
inputs.samples_and_matrix.view()
println('inputs - contrasts')
inputs.contrasts.view()
println('inputs - filter_params')
inputs.filter_params.view()

println('---- norm_inputs ----')
println('norm_inputs - samples_and_matrix')
norm_inputs.samples_and_matrix.view()
println('norm_inputs - contrasts')
norm_inputs.contrasts.view()
println('norm_inputs - filter_params')
norm_inputs.filter_params.view()

inputs.samples_and_matrix.view{ it -> "inputs.samples_and_matrix is ${it}" }
inputs.contrasts.view{ it -> "inputs.contrasts is ${it}" }
inputs.filter_params.view{ it -> "inputs.filter_params is ${it}" }

norm_inputs.samples_and_matrix.view{ it -> "norm_inputs.samples_and_matrix is ${it}" }
norm_inputs.contrasts.view { it -> "norm_inputs.contrasts is ${it}" }
norm_inputs.filter_params.view{ it -> "norm_inputs.filter_params is ${it}" }


// ----------------------------------------------------
Expand Down Expand Up @@ -151,14 +144,9 @@ workflow ABUNDANCE_DIFFERENTIAL_FILTER {
.mix(LIMMA_DIFFERENTIAL.out.versions)
.mix(PROPR_PROPD.out.versions)

println('---- results ----')
ch_results.view()

println('---- normalized_matrix ----')
ch_normalised_matrix.view()

println('---- model ----')
ch_model.view()
ch_results.view{ it -> "ch_results is ${it}" }
ch_normalised_matrix.view{ it -> "ch_normalised_matrix is ${it}" }
ch_model.view{ it -> "ch_model is ${it}" }

// ----------------------------------------------------
// Filter DE results
Expand Down Expand Up @@ -201,8 +189,7 @@ workflow ABUNDANCE_DIFFERENTIAL_FILTER {
ch_diff_filter_params.stat_input
)

println('---- filtered_results ----')
CUSTOM_FILTERDIFFERENTIALTABLE.out.filtered.view()
CUSTOM_FILTERDIFFERENTIALTABLE.out.filtered.view{ it -> "filtered output is ${it}" }

emit:
// main results
Expand Down

0 comments on commit bd3613d

Please sign in to comment.