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

Subsitute samtools/bam2fq with samtools/fastq #274

Merged
merged 8 commits into from
Apr 18, 2023

Conversation

sofstam
Copy link
Collaborator

@sofstam sofstam commented Mar 23, 2023

This PR closes #257

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/taxprofiler 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 Mar 23, 2023

nf-core lint overall result: Passed ✅ ⚠️

Posted for pipeline commit c47b9e5

+| ✅ 156 tests passed       |+
!| ❗   4 tests had warnings |!

❗ Test warnings:

  • pipeline_todos - TODO string in README.md: Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file.
  • pipeline_todos - TODO string in WorkflowMain.groovy: Add Zenodo DOI for pipeline after first release
  • pipeline_todos - TODO string in methods_description_template.yml: #Update the HTML below to your prefered methods description, e.g. add publication citation for this pipeline
  • schema_lint - Schema 'description' should be 'Taxonomic classification and profiling of shotgun metagenomic data'
    Found: 'Taxonomic profiling of shotgun metagenomic data'

✅ Tests passed:

Run details

  • nf-core/tools version 2.7.2
  • Run at 2023-04-04 16:03:28

@sofstam sofstam marked this pull request as ready for review March 29, 2023 13:39
@sofstam sofstam requested a review from a team March 30, 2023 10:16
Copy link
Collaborator

@Midnighter Midnighter left a comment

Choose a reason for hiding this comment

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

Great, thanks for making this change 🙂 Two small questions but they're not blockers.

modules.json Outdated Show resolved Hide resolved
modules/nf-core/samtools/fastq/main.nf Show resolved Hide resolved
Copy link
Member

@jfy133 jfy133 left a comment

Choose a reason for hiding this comment

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

One last suggestion of a change to the emitted files but otherwise LGTM

CHANGELOG.md Show resolved Hide resolved
@@ -54,7 +54,7 @@ workflow LONGREAD_HOSTREMOVAL {

emit:
stats = SAMTOOLS_STATS.out.stats //channel: [val(meta), [reads ] ]
reads = SAMTOOLS_BAM2FQ.out.reads // channel: [ val(meta), [ reads ] ]
reads = SAMTOOLS_FASTQ.out.other // channel: [ val(meta), [ reads ] ]
Copy link
Member

Choose a reason for hiding this comment

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

Not that we use these files anywhere else, I think it would be safer to mix all of teh outputs from FASTQ, not just other? This would have the same behavior as the old module - otherwise here you might lose of the other reads I think (depending on how samtools fastq interprets the input, no?)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Do you suggest that we have

reads = SAMTOOLS_FASTQ.out.fastq?

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 actually .out.fastq).mix(<module>.out.other)

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I see, that makes sense because samtools/bam2fq had one emit with all reads.
I will test and update the PR.

@jfy133 jfy133 linked an issue Apr 15, 2023 that may be closed by this pull request
@sofstam
Copy link
Collaborator Author

sofstam commented Apr 17, 2023

I will merge this PR.

@sofstam sofstam merged commit 255b492 into nf-core:dev Apr 18, 2023
@sofstam sofstam deleted the samtools_fastq branch April 18, 2023 14:28
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.

Replace samtools/bam2fq with samtools/fastq
3 participants