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

skip over empty fastqs after demultiplex #165

Conversation

glichtenstein
Copy link
Contributor

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/demultiplex 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).

@glichtenstein glichtenstein requested a review from a team as a code owner January 8, 2024 19:08
@glichtenstein glichtenstein requested review from matthdsm and removed request for a team January 8, 2024 19:08
Copy link

github-actions bot commented Jan 8, 2024

This PR is against the master branch ❌

  • Do not close this PR
  • Click Edit and change the base to dev
  • This CI test will remain failed until you push a new commit

Hi @glichtenstein,

It looks like this pull-request is has been made against the glichtenstein/demultiplex master branch.
The master branch on nf-core repositories should always contain code from the latest release.
Because of this, PRs to master are only allowed if they come from the glichtenstein/demultiplex dev branch.

You do not need to close this PR, you can change the target branch to dev by clicking the "Edit" button at the top of this page.
Note that even after this, the test will continue to show as failing until you push a new commit.

Thanks again for your contribution!

Copy link

github-actions bot commented Jan 8, 2024

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit aa54803

+| ✅ 160 tests passed       |+
#| ❔   2 tests were ignored |#
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in README.md: Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your preferred methods description, e.g. add publication citation for this pipeline
  • pipeline_todos - TODO string in awsfulltest.yml: You can customise AWS full pipeline tests as required
  • pipeline_todos - TODO string in WorkflowDemultiplex.groovy: Optionally add in-text citation tools to this list.

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 2.11.1
  • Run at 2024-01-12 20:42:48

Comment on lines 78 to 88
process WriteInvalidFastqPaths {
output:
file("invalid_fastqs.txt") into ch_failed_fastqs_file

publishDir "${params.outdir}", mode: 'copy'

script:
"""
cat ${invalid_fastqs_ch.collect().join('\n')} > invalid_fastqs.txt
"""
}
Copy link
Member

Choose a reason for hiding this comment

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

I think we can do that outside a process with a collectFile operator

Copy link
Collaborator

Choose a reason for hiding this comment

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

Agreed, that's one way to do it, but I think it can just be native Nextflow.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the review guys! Very good point, I will switch to collectFile and test again.

@glichtenstein glichtenstein changed the base branch from master to dev January 9, 2024 16:06
@glichtenstein glichtenstein changed the title SDP-2057 debug nf-core/demultiplex line 125 skip over empty fastqs after demultiplex Jan 9, 2024
@glichtenstein glichtenstein marked this pull request as draft January 9, 2024 20:09
@glichtenstein
Copy link
Contributor Author

I will work on this more, I still need to do more tests. I'm considering making that behaviour for skipping emtpy fastqs optional. Should I close the pull request or can I leave it as a draft? Thanks for the reviews.

@Aratz
Copy link
Contributor

Aratz commented Jan 10, 2024

I'd leave it as draft, so that everybody can see what the status is with this issue and maybe not start something else from scratch.

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.

5 participants