Skip to content

🐛 allow editing using nf-core pipelines schema build by setting fa_icon - #590

Merged
enryH merged 10 commits into
devfrom
update_schema
Oct 28, 2025
Merged

enryH merged 10 commits into
devfrom
update_schema

Conversation

@enryH

@enryH enryH commented Oct 13, 2025 •

Copy link
Copy Markdown
Collaborator

Will play around with the schema file and see if further updates can be made.

Documentation:

PR checklist

  • This comment contains a description of changes (with reason).
  • Make sure your code lints (nf-core pipelines lint).
  • Ensure the test suite passes (nextflow run . -profile test_lfq,docker --outdir <OUTDIR>).
  • Check for unexpected warnings in debug mode (nextflow run . -profile debug,test_lfq,docker --outdir <OUTDIR>).

…icon

- webbrowser crashed. @mashehu gave the hint how to fix it, see conversation:
  https://nfcore.slack.com/archives/CE5LG7WMB/p1760360264830159

Will play around with the schema file and see if further updates can be made.
@coderabbitai

coderabbitai Bot commented Oct 13, 2025 •

Copy link
Copy Markdown
Contributor

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Note

Other AI code review bot(s) detected

CodeRabbit has detected other AI code review bot(s) in this pull request and will avoid duplicating their findings in the review comments. This may lead to a less comprehensive review.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch update_schema

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions

github-actions Bot commented Oct 13, 2025 •

Copy link
Copy Markdown

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

Posted for pipeline commit c3dc30e

+| ✅ 110 tests passed       |+
#| ❔  19 tests were ignored |#
!| ❗  37 tests had warnings |!
Details

❗ Test warnings:

  • pipeline_todos - TODO string in nextflow.config: Optionally, you can add a pipeline-specific nf-core config at https://github.com/nf-core/configs
  • 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 README.md: update the following command to include all required parameters for a minimal example
  • 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_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(CREATE_INPUT_CHANNEL.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(FILE_PREPARATION.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(GENERATE_DECOY_DATABASE.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(DDA_ID.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(TMT.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(LFQ.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/quantms.nf: _ ch_versions = ch_versions.mix(DIA.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/lfq.nf: _ ch_software_versions = ch_software_versions.mix(ID.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/lfq.nf: _ ch_software_versions = ch_software_versions.mix(PROTEOMICSLFQ.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/lfq.nf: _ ch_software_versions = ch_software_versions.mix(MSSTATS_LFQ.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(ID.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(FEATURE_MAPPER.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(FILE_MERGE.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(PROTEIN_INFERENCE.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(PROTEIN_QUANT.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/tmt.nf: _ ch_software_versions = ch_software_versions.mix(MSSTATS_TMT.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ .mix(GENERATE_CFG.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ .mix(PRELIMINARY_ANALYSIS.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ .mix(ASSEMBLE_EMPIRICAL_LIBRARY.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ .mix(INDIVIDUAL_ANALYSIS.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ FINAL_QUANTIFICATION.out.versions.ifEmpty(null)
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ .mix(CONVERT_RESULTS.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/workflows/dia.nf: _ MSSTATS_LFQ.out.versions.ifEmpty(null)
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/dda_id/main.nf: _ ch_software_versions = ch_software_versions.mix(PEPTIDE_DATABASE_SEARCH.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/dda_id/main.nf: _ ch_software_versions = ch_software_versions.mix(CONSENSUSID.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/dda_id/main.nf: _ ch_software_versions = ch_software_versions.mix(PSM_FDR_CONTROL.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/dda_id/main.nf: _ ch_software_versions = ch_software_versions.mix(PHOSPHO_SCORING.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(PEPTIDE_DATABASE_SEARCH.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(PSM_RESCORING.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(CONSENSUSID.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(PSM_FDR_CONTROL.out.versions.ifEmpty(null))
    _
  • pipeline_if_empty_null - ifEmpty(null) found in /home/runner/work/quantms/quantms/subworkflows/local/id/main.nf: _ ch_software_versions = ch_software_versions.mix(PHOSPHO_SCORING.out.versions.ifEmpty(null))
    _

❔ Tests ignored:

✅ Tests passed:

Run details

  • nf-core/tools version 3.4.1
  • Run at 2025-10-28 13:53:02

@enryH enryH mentioned this pull request Oct 22, 2025
2 of 5 tasks
ypriverol and others added 2 commits October 23, 2025 07:29
- the other way around is unfortunately not automatic (adding defaults set in schema back to nextflow.config)
@enryH

enryH commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator Author

Next up decide if set defaults in nextflow_schema.json should be written back to the config. This is a manual process.

For example the psm_re_scoring_general section in the schema will have several new default (all false) in the config:

  • skip_rescoring will be false per default
  • ms2rescore will be false per default
  • add_snr_feature_percolator will be false per default
  • force_model...
  • consider_modloss ...
    -psm_clean will be false per default

@ypriverol

Copy link
Copy Markdown
Contributor

@enryH would be good if we can get ready of the 37 warnings.

@enryH

enryH commented Oct 24, 2025

Copy link
Copy Markdown
Collaborator Author

Where do I see these? Is it using the validation tool?

@ypriverol

Copy link
Copy Markdown
Contributor

yes if you run locally:

nf-core pipelines lint you will see

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a web browser crash issue in the nf-core pipelines schema build command by adding missing fa_icon properties and default values to various parameters in the Nextflow schema. The changes ensure the schema builder can properly render all parameters without encountering undefined icon references.

Key Changes:

  • Added missing default values to boolean and numeric parameters
  • Corrected a false fa_icon value to a valid Font Awesome icon
  • Standardized numeric default values (removed unnecessary decimal points)

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

Comment thread nextflow_schema.json Resolved
Comment thread nextflow_schema.json
Comment on lines +1208 to +1209
"fa_icon": "fas fa-font",
"default": "pairwise"

Copilot AI Oct 26, 2025

Copy link

Choose a reason for hiding this comment

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

Adding a default value of 'pairwise' for the contrasts parameter may override user intent. The description indicates this parameter 'Overwrites [--ref_condition]', suggesting it should remain unset by default to allow ref_condition to take effect.

Suggested change
"fa_icon": "fas fa-font",
"default": "pairwise"
"fa_icon": "fas fa-font"

Copilot uses AI. Check for mistakes.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@ypriverol Is this suggestion relevant?

@jpfeuffer

Copy link
Copy Markdown
Collaborator

Next up decide if set defaults in nextflow_schema.json should be written back to the config. This is a manual process.

For example the psm_re_scoring_general section in the schema will have several new default (all false) in the config:

  • skip_rescoring will be false per default
  • ms2rescore will be false per default
  • add_snr_feature_percolator will be false per default
  • force_model...
  • consider_modloss ...
    -psm_clean will be false per default

Yes they should always be in sync, no? Are they currently not?

enryH and others added 5 commits October 27, 2025 16:36
- based on nextflow.config
- only true values are set in schema (convention?)
- a boolean which is preset to false, has no explicit schema value
- again a convention
- specify that the output folder should be a folder
@enryH

enryH commented Oct 28, 2025

Copy link
Copy Markdown
Collaborator Author

I do not get any more linting error when running nf-core pipelines schema lint. I would close this PR and start to address the more general linting warnings using nf-core pipelines lint.

@enryH
enryH marked this pull request as ready for review October 28, 2025 14:13
@enryH
enryH merged commit a454e2a into dev Oct 28, 2025
@enryH
enryH deleted the update_schema branch October 30, 2025 12:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

4 participants