Skip to content

add skip_m6a param#135

Merged
ljwharbers merged 7 commits into
devfrom
methlyfix
Mar 12, 2026
Merged

add skip_m6a param#135
ljwharbers merged 7 commits into
devfrom
methlyfix

Conversation

@robert-a-forsyth
Copy link
Copy Markdown
Collaborator

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
  • 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).

Copilot AI review requested due to automatic review settings March 11, 2026 09:17
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Mar 11, 2026

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

Posted for pipeline commit c83118d

+| ✅ 178 tests passed       |+
#| ❔  21 tests were ignored |#
!| ❗  28 tests had warnings |!
Details

❗ Test warnings:

  • pipeline_todos - TODO string in README.md: Include a figure that guides the user through the major workflow steps. Many nf-core
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in lint_log.txt: Named file extensions MUST be emitted for ALL output channels
  • pipeline_todos - TODO string in lint_log.txt: List additional required output channels/values here
  • pipeline_todos - TODO string in nextflow.config: Specify your pipeline's command line flags
  • pipeline_todos - TODO string in nextflow.config: Update the field with the details of the contributors to your pipeline. New with Nextflow version 24.10.0
  • 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 nextflow.config: Specify any additional parameters here
  • pipeline_todos - TODO string in base.config: Check the defaults for all processes
  • pipeline_todos - TODO string in base.config: Customise requirements for specific processes.
  • pipeline_todos - TODO string in meta.yml: #Add a description of the module and list keywords
  • local_component_structure - tumor_only_happhase.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
  • local_component_structure - prepare_annotation.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
  • local_component_structure - tumor_normal_happhase.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
  • local_component_structure - prepare_reference_files.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure

❔ Tests ignored:

  • files_exist - File is ignored: CODE_OF_CONDUCT.md
  • files_exist - File is ignored: assets/nf-core-lrsomatic_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-lrsomatic_logo_light.png
  • files_exist - File is ignored: docs/images/nf-core-lrsomatic_logo_dark.png
  • files_exist - File is ignored: .github/ISSUE_TEMPLATE/config.yml
  • files_exist - File is ignored: .github/workflows/awstest.yml
  • files_exist - File is ignored: .github/workflows/awsfulltest.yml
  • nextflow_config - Config variable ignored: manifest.name
  • nextflow_config - Config variable ignored: manifest.homePage
  • files_unchanged - File ignored due to lint config: CODE_OF_CONDUCT.md
  • files_unchanged - File ignored due to lint config: .github/CONTRIBUTING.md
  • files_unchanged - File ignored due to lint config: .github/ISSUE_TEMPLATE/bug_report.yml
  • files_unchanged - File does not exist: .github/ISSUE_TEMPLATE/config.yml
  • files_unchanged - File ignored due to lint config: .github/PULL_REQUEST_TEMPLATE.md
  • files_unchanged - File ignored due to lint config: assets/email_template.txt
  • files_unchanged - File ignored due to lint config: assets/nf-core-lrsomatic_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-lrsomatic_logo_light.png
  • files_unchanged - File ignored due to lint config: docs/images/nf-core-lrsomatic_logo_dark.png
  • files_unchanged - File ignored due to lint config: docs/README.md
  • actions_awstest - 'awstest.yml' workflow not found: /home/runner/work/lrsomatic/lrsomatic/.github/workflows/awstest.yml
  • schema_params - schema_params

✅ Tests passed:

Run details

  • nf-core/tools version 3.5.2
  • Run at 2026-03-12 12:04:46

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new --skip_m6a parameter to optionally bypass the Fibertools m6A prediction step in the LRSOMATIC workflow, allowing runs to proceed without generating m6A-tagged BAMs.

Changes:

  • Add params.skip_m6a default to nextflow.config.
  • Gate FIBERTOOLSRS_PREDICTM6A execution behind --skip_m6a and ensure predicted_bams is still defined in both branches.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
workflows/lrsomatic.nf Adds conditional logic to optionally skip m6A prediction while still producing a unified predicted_bams channel.
nextflow.config Introduces a new pipeline parameter skip_m6a with default false.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment thread workflows/lrsomatic.nf Outdated
Comment on lines 272 to 273


Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

There appears to be an extra whitespace-only line here (blank line with indentation). This can trip whitespace/lint checks and makes diffs noisier; please remove trailing whitespace / keep blank lines empty.

Suggested change

Copilot uses AI. Check for mistakes.
Comment thread workflows/lrsomatic.nf Outdated
Comment on lines +258 to +270
if (!params.skip_m6a){
FIBERTOOLSRS_PREDICTM6A (
pacbio_bams.kinetics
)
pacbio_bams.noKinetics
.mix(FIBERTOOLSRS_PREDICTM6A.out.bam)
.set{predicted_bams}
}
else {
pacbio_bams.noKinetics
.mix(pacbio_bams.kinetics)
.set{predicted_bams}
}
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

This adds a new control-flow branch (--skip_m6a) that bypasses FIBERTOOLSRS_PREDICTM6A. The repo uses nf-test (tests/default.nf.test) but there’s no test case covering this new parameter; please add a second nf-test scenario that runs the pipeline with --skip_m6a to ensure the workflow still completes and produces expected outputs when m6A prediction is disabled.

Copilot uses AI. Check for mistakes.
Comment thread nextflow.config
skip_ascat = false
skip_wakhan = false
skip_fiber = false
skip_m6a = false
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

New params.skip_m6a is added here, but it isn’t represented in nextflow_schema.json under $defs.skip_options.properties (where the other skip_* params are defined). This means --help/schema validation and generated docs won’t expose the option; please add skip_m6a to the schema (and update usage docs if they’re generated from it).

Suggested change
skip_m6a = false

Copilot uses AI. Check for mistakes.
Comment thread workflows/lrsomatic.nf Outdated
FIBERTOOLSRS_PREDICTM6A (
pacbio_bams.kinetics
)
if (!params.skip_m6a){
Copy link

Copilot AI Mar 11, 2026

Choose a reason for hiding this comment

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

Spacing is inconsistent with the surrounding style (if (!params.skip_fiber) { etc.): if (!params.skip_m6a){ is missing a space before {. Please align formatting to the existing style to keep the workflow readable and reduce diff noise in future changes.

Suggested change
if (!params.skip_m6a){
if (!params.skip_m6a) {

Copilot uses AI. Check for mistakes.
@ljwharbers ljwharbers merged commit 36420fb into dev Mar 12, 2026
6 checks passed
@ljwharbers ljwharbers deleted the methlyfix branch March 12, 2026 12:03
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.

3 participants