Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ensure that starsolo outputs channel that matches others, including meta map #220

Merged
merged 4 commits into from
May 2, 2023

Conversation

robsyme
Copy link
Contributor

@robsyme robsyme commented Apr 27, 2023

Overview

Before this PR, the STARSOLO local subworkflow emits the for_multiqc channel and in doing so trims out the meta map by returning just the path with .collect{it[1]}:

    emit:
    // snip
    for_multiqc = STAR_ALIGN.out.log_final.collect{it[1]}.ifEmpty([])

This for_multiqc output is then assigned to ch_multiqc_star:

ch_multiqc_star = STARSOLO.out.for_multiqc

and then imported into multiqc, but in doing so assumes that the meta map is still included, and re-trims it:

ch_multiqc_files = ch_multiqc_files.mix(ch_multiqc_star.collect{it[1]}.ifEmpty([]))

Performing two rounds of .collect{it[1]} returns a null object, which throws an error when MultiQC is queued.

The Fix

I removed the first meta map removal in the STARSOLO subworkflow.

PR checklist

  • This comment contains a description of changes (with reason).
  • If you've fixed a bug or added code that should be tested, add tests!
  • If you've added a new tool - have you followed the pipeline conventions in the contribution docs- [ ] If necessary, also make a PR on the nf-core/scrnaseq branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Usage Documentation in docs/usage.md is updated.
  • Output Documentation in docs/output.md is updated.
  • CHANGELOG.md is updated.
  • README.md is updated (including new tool citations and authors/contributors).

@github-actions
Copy link

github-actions bot commented Apr 27, 2023

nf-core lint overall result: Passed ✅

Posted for pipeline commit 4f393da

+| ✅ 158 tests passed       |+

✅ Tests passed:

Run details

  • nf-core/tools version 2.7.2
  • Run at 2023-04-28 17:55:45

@robsyme robsyme marked this pull request as ready for review April 28, 2023 16:41
@robsyme robsyme enabled auto-merge April 30, 2023 18:28
Copy link
Member

@ggabernet ggabernet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@robsyme robsyme merged commit be53837 into dev May 2, 2023
@robsyme robsyme deleted the null-path-fix branch May 2, 2023 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants