Skip to content

Commit

Permalink
have outputs separated
Browse files Browse the repository at this point in the history
  • Loading branch information
fmalmeida committed Oct 30, 2024
1 parent cb67797 commit 7230095
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 10 deletions.
14 changes: 5 additions & 9 deletions subworkflows/local/starsolo.nf
Original file line number Diff line number Diff line change
Expand Up @@ -54,16 +54,12 @@ workflow STARSOLO {
)
ch_versions = ch_versions.mix(STAR_ALIGN.out.versions)

// generate channel of star counts with correct metadata
ch_star_counts =
STAR_ALIGN.out.raw_counts.map{ meta, files -> [meta + [input_type: 'raw'], files] }
.mix( STAR_ALIGN.out.filtered_counts.map{ meta, files -> [meta + [input_type: 'filtered'], files] } )


emit:
ch_versions
// get rid of meta for star index
star_result = STAR_ALIGN.out.tab
star_counts = ch_star_counts
for_multiqc = STAR_ALIGN.out.log_final.map{ meta, it -> it }
star_result = STAR_ALIGN.out.tab
star_counts = STAR_ALIGN.out.counts
raw_counts = STAR_ALIGN.out.raw_counts
filtered_counts = STAR_ALIGN.out.filtered_counts
for_multiqc = STAR_ALIGN.out.log_final.map{ meta, it -> it }
}
4 changes: 3 additions & 1 deletion workflows/scrnaseq.nf
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,9 @@ workflow SCRNASEQ {
)
ch_versions = ch_versions.mix(STARSOLO.out.ch_versions)
ch_multiqc_files = ch_multiqc_files.mix(STARSOLO.out.for_multiqc)
ch_mtx_matrices = STARSOLO.out.star_counts
ch_mtx_matrices =
STARSOLO.out.raw_counts.map{ meta, files -> [meta + [input_type: 'raw'], files] }
.mix( STARSOLO.out.filtered_counts.map{ meta, files -> [meta + [input_type: 'filtered'], files] } )
}

// Run cellranger pipeline
Expand Down

0 comments on commit 7230095

Please sign in to comment.