Skip to content

Update porechop/abi to patched version to not result in duplicated reads#854

Merged
jfy133 merged 3 commits intodevfrom
porechop-update
Sep 3, 2025
Merged

Update porechop/abi to patched version to not result in duplicated reads#854
jfy133 merged 3 commits intodevfrom
porechop-update

Conversation

@jfy133
Copy link
Copy Markdown
Member

@jfy133 jfy133 commented Aug 25, 2025

nf-core/mag pull request

To close #840

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/mag branch on the nf-core/test-datasets repository.
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,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
Copy Markdown

github-actions Bot commented Aug 25, 2025

nf-core pipelines lint overall result: Passed ✅ ⚠️

Posted for pipeline commit 266f271

+| ✅ 363 tests passed       |+
#| ❔   1 tests were ignored |#
!| ❗   6 tests had warnings |!
Details

❗ Test warnings:

  • pipeline_todos - TODO string in main.nf: Remove this line if you don't need a FASTA file [TODO: try and test using for --host_fasta and --host_genome]
  • pipeline_todos - TODO string in nextflow.config: Specify any additional parameters here
  • 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 main.nf: Optionally add in-text citation tools to this list.
  • pipeline_todos - TODO string in main.nf: Optionally add bibliographic entries to this list.
  • pipeline_todos - TODO string in main.nf: Only uncomment below if logic in toolCitationText/toolBibliographyText has been filled!

❔ Tests ignored:

  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md

✅ Tests passed:

Run details

  • nf-core/tools version 3.3.2
  • Run at 2025-09-03 10:17:21

Copy link
Copy Markdown
Member

@dialvarezs dialvarezs left a comment

Choose a reason for hiding this comment

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

LGTM!

Comment on lines +121 to +123
if (!(val_skip_qc && !(params.host_fasta || params.host_genome))) {
if (!(params.skip_adapter_trimming && params.skip_longread_filtering && params.keep_lambda && !(params.host_fasta || params.host_genome))) {
NANOPLOT_FILTERED(
Copy link
Copy Markdown
Member

@dialvarezs dialvarezs Aug 25, 2025

Choose a reason for hiding this comment

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

[non-blocking] Looking at this a second time, I feel a bit more unconfortable with this nested negation. Can we try to simplify it? I know the logic is described in the comment, but the code should be easy to follow too.

Maybe we can define some auxiliary variables to make it easier to read:

def _has_host_data = params.host_fasta || params.host_genome
def _skip_all_processing = params.skip_adapter_trimming && params.skip_longread_filtering && params.keep_lambda

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I like the idea! Maybe youcan make an issue for a future release?

@dialvarezs dialvarezs mentioned this pull request Aug 26, 2025
11 tasks
Comment thread CHANGELOG.md Outdated
@jfy133 jfy133 merged commit a8087b6 into dev Sep 3, 2025
13 checks passed
@dialvarezs dialvarezs deleted the porechop-update branch November 21, 2025 11:36
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