Skip to content

dump parameters of pipeline - #502

Merged
ypriverol merged 5 commits into
bigbio:devfrom
enryH:pipeline_params_dump
Mar 28, 2025
Merged

ypriverol merged 5 commits into
bigbio:devfrom
enryH:pipeline_params_dump

Conversation

@enryH

@enryH enryH commented Mar 25, 2025 •

Copy link
Copy Markdown
Collaborator

User description

  • dumps a json with all pipeline parameters set for run

use workflow from nf-core/tools to dump all set parameters to pipeline_info results folder

workflow UTILS_NEXTFLOW_PIPELINE {
take:
print_version // boolean: print version
dump_parameters // boolean: dump parameters
outdir // path: base directory used to publish pipeline results
check_conda_channels // boolean: check conda channels
main:
//
// Print workflow version and exit on --version
//
if (print_version) {
log.info("${workflow.manifest.name} ${getWorkflowVersion()}")
System.exit(0)
}
//
// Dump pipeline parameters to a JSON file
//
if (dump_parameters && outdir) {
dumpParametersToJSON(outdir)
}
//
// When running with Conda, warn if channels have not been set-up appropriately
//
if (check_conda_channels) {
checkCondaChannels()
}
emit:
dummy_emit = true
}

Needed e.g. for ProteoBench:

https://proteobench.readthedocs.io/en/stable/available-modules/2-quant-lfq-ion-dda/#quantms-work-in-progress


PR Type

Enhancement, Documentation, Configuration changes, Tests, Other


Description

  • Refactored multiple subworkflows and modules for improved maintainability, readability, and performance.

  • Updated repository references and branding from nf-core/quantms to bigbio/quantms across workflows, configurations, and documentation.

  • Introduced new functionality for parameter dumping and enhanced version handling in workflows.

  • Added RO-Crate metadata for improved pipeline documentation and compliance.

  • Enhanced CI workflows with extended testing, matrix configurations, and artifact uploads.

  • Updated Nextflow configurations and schemas to reflect new parameters, resource management, and repository changes.

  • Improved usage documentation with examples, reproducibility guidance, and updated formatting.

  • Added and updated tests for workflows, modules, and utility functions.

  • Introduced new configurations for SLURM, DIA-NN, and other testing scenarios.

  • Removed unused files, modules, and workflows to streamline the repository.


Changes walkthrough 📝

Relevant files
Enhancement
27 files
email_template.html
Update email template branding to `bigbio/quantms`.           

assets/email_template.html

  • Updated branding from nf-core/quantms to bigbio/quantms.
  • Adjusted titles, descriptions, and links to reflect the new repository
    name.
  • Modified success and failure messages to align with the new branding.
  • +7/-7     
    main.nf
    Refactor utility subworkflow for better maintainability and
    readability.

    subworkflows/nf-core/utils_nfcore_pipeline/main.nf

  • Replaced hardcoded strings with dynamic variables for better
    maintainability.
  • Removed unused functions and streamlined existing ones.
  • Improved logging and error handling for configuration checks.
  • Enhanced readability by reformatting and simplifying code.
  • +170/-197
    dda_id.nf
    Refactor DDA ID subworkflow for simplicity and efficiency.

    subworkflows/local/dda_id.nf

  • Removed unused modules and streamlined workflow logic.
  • Simplified rescoring logic by removing redundant conditions.
  • Improved handling of software versions and metadata.
  • Enhanced readability and maintainability of the workflow.
  • +100/-133
    psmrescoring.nf
    Simplify and optimize PSM rescoring subworkflow.                 

    subworkflows/local/psmrescoring.nf

  • Removed unused modules and redundant logic.
  • Simplified rescoring workflow for better clarity and performance.
  • Improved handling of software versions and metadata.
  • Enhanced maintainability by reducing complexity.
  • +90/-127
    input_check.nf
    Enhance input check subworkflow with version tracking.     

    subworkflows/local/input_check.nf

  • Added initialization for software versions channel.
  • Improved handling of input file type detection.
  • Enhanced maintainability by simplifying workflow logic.
  • +5/-1     
    main.nf
    Refactor and update subworkflow for pipeline initialization.

    subworkflows/local/utils_nfcore_quantms_pipeline/main.nf

  • Updated subworkflow references from nf-core/quantms to bigbio/quantms.
  • Adjusted parameter validation and schema handling.
  • Refactored methods for improved compatibility and readability.
  • +37/-36 
    main.nf
    Refactor utility subworkflow for parameter dumping and validation.

    subworkflows/nf-core/utils_nextflow_pipeline/main.nf

  • Refactored utility subworkflow for dumping parameters and version
    handling.
  • Improved conda channel validation logic.
  • +36/-36 
    quantms.nf
    Update main workflow for renamed repository and version handling.

    workflows/quantms.nf

  • Updated workflow references from nf-core/quantms to bigbio/quantms.
  • Refactored version handling and software version collation.
  • +18/-29 
    main.nf
    Update MS2Rescore process with new container and logic.   

    modules/local/ms2rescore/main.nf

  • Updated container references to quantms-rescoring.
  • Adjusted process logic for MS2Rescore.
  • +14/-25 
    file_preparation.nf
    Update file preparation subworkflow for version handling.

    subworkflows/local/file_preparation.nf

  • Updated version handling in file preparation subworkflow.
  • Adjusted logic for mzML indexing and file conversion.
  • +8/-8     
    dia.nf
    Update DIA workflow for version handling and analysis adjustments.

    workflows/dia.nf

  • Updated DIA workflow for version handling and new parameters.
  • Adjusted logic for DIA-NN analysis and summary.
  • +12/-12 
    main.nf
    Update DIANN summary process for new DIA-NN version.         

    modules/local/diannsummary/main.nf

  • Updated DIANN summary process for new parameters and outputs.
  • Adjusted container references and logic for DIA-NN 2.0.
  • +13/-6   
    create_input_channel.nf
    Update input channel creation subworkflow for new parameters.

    subworkflows/local/create_input_channel.nf

  • Updated input channel creation logic for new parameters.
  • Adjusted version handling in subworkflow.
  • +5/-8     
    main.nf
    Update DIANNCONVERT process with new parameters and versions.

    modules/local/diannconvert/main.nf

  • Updated conda and container versions for quantms-utils.
  • Added a new parameter enable_diann_mztab to control mzTab conversion.
  • Adjusted logging message to support DIA-NN version 2.0.*.
  • Changed emit label from version to versions.
  • +7/-5     
    main.nf
    Update ISOBARICANALYZER process with new versions and parameters.

    modules/local/openms/isobaricanalyzer/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • Adjusted dissociation method logic to use
    params.quant_activation_method.
  • +8/-8     
    main.nf
    Enhance MULTIQC process with new input parameters and updated
    container.

    modules/nf-core/multiqc/main.nf

  • Updated container version for multiqc.
  • Added new input parameters replace_names and sample_names.
  • Adjusted script to include new parameters for customization.
  • +12/-4   
    main.nf
    Update MZMLSTATISTICS process with new versions and feature detection.

    modules/local/mzmlstatistics/main.nf

  • Updated conda and container versions for quantms-utils.
  • Changed emit label from version to versions.
  • Added support for mzml_features parameter to control feature
    detection.
  • +10/-8   
    tmt.nf
    Update TMT workflow to use new versioning conventions.     

    workflows/tmt.nf

  • Changed emit label from version to versions across multiple
    subworkflows.
  • Updated workflow logic to align with new versioning conventions.
  • +6/-6     
    main.nf
    Rename main workflow and add parameter dumping functionality.

    main.nf

  • Renamed workflow from NFCORE_QUANTMS to BIGBIO_QUANTMS.
  • Added UTILS_NEXTFLOW_PIPELINE subworkflow for parameter dumping.
  • Adjusted workflow logic to include parameter dumping before main
    execution.
  • +17/-11 
    main.nf
    Update SEARCHENGINECOMET process with new versions and script fixes.

    modules/local/openms/thirdparty/searchenginecomet/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • Adjusted script to fix Comet version extraction logic.
  • +5/-5     
    main.nf
    Update EXTRACTPSMFEATURES process with new versions and cleanup.

    modules/local/openms/extractpsmfeatures/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Removed unused feature parameter from script.
  • Changed emit label from version to versions.
  • +5/-11   
    main.nf
    Update SEARCHENGINEMSGF process with new versions and parameters.

    modules/local/openms/thirdparty/searchenginemsgf/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • Added fragment_method parameter to script.
  • +5/-4     
    main.nf
    Update ASSEMBLE_EMPIRICAL_LIBRARY process with simplified container
    logic.

    modules/local/assemble_empirical_library/main.nf

  • Adjusted container logic to remove conditional for diann_version.
  • Changed emit label from version to versions.
  • Updated output file naming for empirical library.
  • +4/-7     
    main.nf
    Update PROTEININFERENCE process with new versions and parameters.

    modules/local/openms/proteininference/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • Added score_type parameter to script.
  • +5/-4     
    main.nf
    Update MSGFDBINDEXING process with new versions and dependencies.

    modules/local/openms/thirdparty/msgfdb_indexing/main.nf

  • Updated conda and container versions to use msgf_plus.
  • Changed emit label from version to versions.
  • +4/-5     
    main.nf
    Update IDRIPPER process with new versions.                             

    modules/local/openms/idripper/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • +4/-4     
    main.nf
    Update PROTEINQUANTIFIER process with new versions.           

    modules/local/openms/proteinquantifier/main.nf

  • Updated conda and container versions for openms-thirdparty.
  • Changed emit label from version to versions.
  • +4/-4     
    Documentation
    7 files
    ro-crate-metadata.json
    Introduce RO-Crate metadata for pipeline documentation.   

    ro-crate-metadata.json

  • Added a new metadata file for RO-Crate compliance.
  • Included detailed descriptions of pipeline components and
    dependencies.
  • Defined contributors, license, and workflow details.
  • +335/-0 
    usage.md
    Revise usage documentation for `bigbio/quantms`.                 

    docs/usage.md

  • Updated documentation to reflect the new repository name
    bigbio/quantms.
  • Added examples for using parameter files in YAML/JSON format.
  • Improved guidance on reproducibility and versioning.
  • Enhanced clarity and formatting of usage instructions.
  • +36/-15 
    README.md
    Update README to reflect repository rename and version changes.

    README.md

  • Updated references from nf-core/quantms to bigbio/quantms.
  • Updated Nextflow version badge to 24.10.5.
  • Adjusted links and descriptions to reflect the repository name change.
  • Updated example commands and documentation references.
  • +17/-15 
    CONTRIBUTING.md
    Update contributing guidelines for repository rename.       

    .github/CONTRIBUTING.md

  • Updated repository references from nf-core/quantms to bigbio/quantms.
  • Adjusted contribution workflow and guidelines to reflect repository
    changes.
  • +18/-18 
    CHANGELOG.md
    Update changelog with new features and repository rename.

    CHANGELOG.md

  • Updated changelog entries to reflect repository rename.
  • Added new features, changes, and fixes for the latest release.
  • Documented new parameters and dependencies.
  • +44/-11 
    meta.yml
    Update MultiQC module metadata for clarity.                           

    modules/nf-core/multiqc/meta.yml

  • Updated metadata for MultiQC module.
  • Adjusted input and output descriptions for clarity.
  • +49/-29 
    methods_description_template.yml
    Update methods description template for renamed repository.

    assets/methods_description_template.yml

  • Updated methods description template for renamed repository.
  • Adjusted references and links.
  • +4/-4     
    Configuration changes
    21 files
    nextflow.config
    Update Nextflow configuration for `bigbio/quantms` pipeline.

    nextflow.config

  • Updated pipeline name and repository references to bigbio/quantms.
  • Removed unused parameters and streamlined configuration options.
  • Added new parameters for enhanced functionality and flexibility.
  • Improved resource management and validation settings.
  • +119/-113
    nextflow_schema.json
    Revise Nextflow schema for updated pipeline parameters.   

    nextflow_schema.json

  • Updated schema to reflect changes in pipeline parameters.
  • Removed deprecated parameters and added new ones for enhanced
    functionality.
  • Improved descriptions and validation rules for parameters.
  • Updated schema metadata to align with the new repository name.
  • +60/-131
    extended_ci.yml
    Add extended CI workflow for comprehensive testing.           

    .github/workflows/extended_ci.yml

  • Added a new extended CI workflow for testing with Docker, Singularity,
    and Conda.
  • Introduced matrix testing for multiple Nextflow versions and profiles.
  • Configured artifact uploads for logs and results.
  • +272/-0 
    download_pipeline.yml
    Update pipeline download workflow for renamed repository.

    .github/workflows/download_pipeline.yml

  • Updated workflow to test pipeline download using nf-core pipelines
    download.
  • Added steps to inspect and count container images for offline
    compatibility.
  • +70/-22 
    ci.yml
    Update CI workflow for renamed repository and new profiles.

    .github/workflows/ci.yml

  • Updated CI workflow to reflect repository rename.
  • Adjusted profiles and Nextflow version for testing.
  • +26/-54 
    base.config
    Update base configuration for process resource adjustments.

    conf/base.config

  • Updated default process resource requirements.
  • Adjusted labels and memory configurations for processes.
  • +31/-31 
    modules.config
    Update module configurations for renamed repository.         

    conf/modules.config

  • Updated process names to reflect repository rename.
  • Adjusted configurations for specific modules and processes.
  • +21/-43 
    linting.yml
    Update linting workflow for renamed repository.                   

    .github/workflows/linting.yml

  • Updated linting workflow to reflect repository rename.
  • Adjusted dependencies and linting commands.
  • +24/-9   
    branch.yml
    Update branch protection workflow for renamed repository.

    .github/workflows/branch.yml

  • Updated branch protection workflow to reflect repository rename.
  • Adjusted logic for PR checks.
  • +12/-10 
    diann_private.yml
    Add private workflow for DIA-NN testing.                                 

    .github/workflows/diann_private.yml

  • Added a private workflow for testing test_latest_dia profile.
  • Configured workflow for Docker execution.
  • +86/-0   
    pride_codon_slurm.config
    Add SLURM configuration for EMBL-EBI Codon cluster.           

    conf/pride_codon_slurm.config

  • Added SLURM configuration for EMBL-EBI Codon cluster.
  • Configured process resources and singularity settings.
  • +67/-0   
    test_latest_dia.config
    Add test configuration for latest DIA-NN version.               

    conf/test_latest_dia.config

  • Added test configuration for latest DIA-NN version.
  • Configured input files and parameters for testing.
  • +18/-10 
    fix-linting.yml
    Update fix-linting workflow for renamed repository.           

    .github/workflows/fix-linting.yml

  • Updated fix-linting workflow to reflect repository rename.
  • Adjusted dependencies and logic.
  • +4/-4     
    test_dia.config
    Update test configuration for DIA with new resource limits and URLs.

    conf/test_dia.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +11/-9   
    test_dda_id.config
    Update test configuration for DDA ID with new resource limits and
    URLs.

    conf/test_dda_id.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +13/-9   
    template_version_comment.yml
    Add GitHub Actions workflow for nf-core template version checks.

    .github/workflows/template_version_comment.yml

  • Added a new GitHub Actions workflow to check and comment on nf-core
    template version.
  • Includes steps for reading template version, installing nf-core, and
    posting comments.
  • +46/-0   
    test_lfq.config
    Update test configuration for LFQ with new resource limits and URLs.

    conf/test_lfq.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +12/-10 
    test_localize.config
    Update test configuration for localization with new resource limits
    and URLs.

    conf/test_localize.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +11/-8   
    test_tmt_corr.config
    Update test configuration for TMT correction with new resource limits
    and URLs.

    conf/test_tmt_corr.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +11/-9   
    test_tmt.config
    Update test configuration for TMT with new resource limits and URLs.

    conf/test_tmt.config

  • Updated input and database URLs to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +11/-9   
    test_full_dia.config
    Update full DIA test configuration with new resource limits and URLs.

    conf/test_full_dia.config

  • Updated database URL to point to bigbio repository.
  • Added process.resourceLimits for better resource management.
  • Removed redundant resource limit parameters.
  • +10/-7   
    Tests
    3 files
    main.nf.test
    Add tests for schema validation subworkflow.                         

    subworkflows/nf-core/utils_nfschema_plugin/tests/main.nf.test

  • Added tests for UTILS_NFSCHEMA_PLUGIN subworkflow.
  • Configured validation scenarios for parameters.
  • +117/-0 
    nextflow.config
    Add test configuration for MultiQC module.                             

    modules/nf-core/multiqc/tests/nextflow.config

  • Added test configuration for MultiQC module.
  • Configured process-specific settings.
  • +5/-0     
    main.function.nf.test
    Revamp tests for utility functions in nf-core pipeline.   

    subworkflows/nf-core/utils_nfcore_pipeline/tests/main.function.nf.test

  • Removed tests for workflowCitation and nfCoreLogo.
  • Added new tests for logColours and getSingleReport with single and
    multiple files.
  • Adjusted test logic to match new functionality.
  • +19/-27 
    Dependencies
    1 files
    modules.json
    Update modules metadata for repository migration and new additions.

    modules.json

  • Updated repository name and homepage URL to bigbio/quantms.
  • Added new module fastqc with its branch and SHA details.
  • Updated SHA values for existing modules.
  • +12/-7   
    Additional files
    90 files
    .editorconfig +4/-0     
    bug_report.yml +1/-9     
    config.yml +1/-1     
    feature_request.yml +1/-1     
    PULL_REQUEST_TEMPLATE.md +6/-6     
    linting_comment.yml +1/-1     
    .gitpod.yml +2/-12   
    .nf-core.yml +15/-3   
    .pre-commit-config.yaml +1/-1     
    .prettierignore +1/-2     
    settings.json +3/-0     
    CITATIONS.md +1/-1     
    LICENSE +1/-1     
    adaptivecard.json +1/-1     
    email_template.txt +4/-12   
    multiqc_config.yml +2/-2     
    schema_input.json +3/-3     
    sendmail_template.txt +3/-3     
    slackreport.json +1/-1     
    big-nodes.config +0/-56   
    dev.config +3/-3     
    igenomes_ignored.config +9/-0     
    test_full_lfq.config +9/-7     
    test_full_tmt.config +9/-7     
    test_lfq_sage.config +11/-9   
    README.md +2/-2     
    output.md +1/-1     
    main.nf +0/-30   
    meta.yml +0/-39   
    main.nf +1/-1     
    main.nf +2/-5     
    main.nf +4/-4     
    main.nf +3/-3     
    main.nf +5/-5     
    main.nf +2/-5     
    meta.yml +0/-4     
    main.nf +1/-1     
    main.nf +1/-1     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +0/-37   
    meta.yml +0/-38   
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +4/-4     
    main.nf +0/-2     
    preprocess_expdesign.nf +4/-4     
    samplesheet_check.nf +5/-5     
    main.nf +5/-5     
    main.nf +2/-5     
    main.nf +4/-4     
    main.nf +1/-1     
    main.nf +4/-4     
    environment.yml +0/-1     
    main.nf [link]   
    meta.yml [link]   
    main.nf.test [link]   
    environment.yml +1/-3     
    main.nf.test +8/-0     
    databasesearchengines.nf +5/-4     
    featuremapper.nf +3/-3     
    id.nf +4/-5     
    phosphoscoring.nf +3/-3     
    proteininference.nf +4/-4     
    proteinquant.nf +4/-5     
    psmfdrcontrol.nf +5/-5     
    main.workflow.nf.test +6/-4     
    nextflow.config +1/-1     
    main.nf +46/-0   
    meta.yml +35/-0   
    nextflow.config +8/-0     
    nextflow_schema.json +4/-4     
    main.nf +0/-62   
    meta.yml +0/-44   
    main.nf.test +0/-200 
    tags.yml +0/-2     
    lfq.nf +3/-3     

    Need help?
  • Type /help how to ... in the comments thread for any questions about Qodo Merge usage.
  • Check out the documentation for more information.
  • - dumps a json with all pipeline parameters set for run
    @coderabbitai

    coderabbitai Bot commented Mar 25, 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.


    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
    🪧 Tips

    Chat

    There are 3 ways to chat with CodeRabbit:

    • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
      • I pushed a fix in commit <commit_id>, please review it.
      • Generate unit testing code for this file.
      • Open a follow-up GitHub issue for this discussion.
    • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
      • @coderabbitai generate unit testing code for this file.
      • @coderabbitai modularize this function.
    • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
      • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
      • @coderabbitai read src/utils.ts and generate unit testing code.
      • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
      • @coderabbitai help me debug CodeRabbit configuration file.

    Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

    CodeRabbit Commands (Invoked using PR comments)

    • @coderabbitai pause to pause the reviews on a PR.
    • @coderabbitai resume to resume the paused reviews.
    • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
    • @coderabbitai full review to do a full review from scratch and review all the files again.
    • @coderabbitai summary to regenerate the summary of the PR.
    • @coderabbitai generate docstrings to generate docstrings for this PR.
    • @coderabbitai resolve resolve all the CodeRabbit review comments.
    • @coderabbitai plan to trigger planning for file edits and PR creation.
    • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
    • @coderabbitai help to get help.

    Other keywords and placeholders

    • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
    • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
    • Add @coderabbitai anywhere in the PR title to generate the title automatically.

    CodeRabbit Configuration File (.coderabbit.yaml)

    • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
    • Please see the configuration documentation for more information.
    • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

    Documentation and Community

    • Visit our Documentation for detailed information on how to use CodeRabbit.
    • Join our Discord Community to get help, request features, and share feedback.
    • Follow us on X/Twitter for updates and announcements.

    @enryH
    enryH changed the base branch from master to dev March 25, 2025 13:07
    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here.

    PR Reviewer Guide 🔍

    Here are some key observations to aid the review process:

    ⏱️ Estimated effort to review: 2 🔵🔵⚪⚪⚪
    🧪 No relevant tests
    🔒 No security concerns identified
    ⚡ Recommended focus areas for review

    Variable Initialization

    Several variables are used before being properly initialized, which could lead to unexpected behavior. For example, valid_config, version_string, yaml, and versions are used before being defined.

    def valid_config = true as Boolean
    if (workflow.profile == 'standard' && workflow.configFiles.size() <= 1) {
        log.warn(
            "[${workflow.manifest.name}] You are attempting to run the pipeline without any custom configuration!\n\n" + "This will be dependent on your local compute environment but can be achieved via one or more of the following:\n" + "   (1) Using an existing pipeline profile e.g. `-profile docker` or `-profile singularity`\n" + "   (2) Using an existing nf-core/configs for your Institution e.g. `-profile crick` or `-profile uppmax`\n" + "   (3) Using your own local custom config e.g. `-c /path/to/your/custom.config`\n\n" + "Please refer to the quick start section and usage docs for the pipeline.\n "
        )
        valid_config = false
    }
    return valid_config
    
    Parameter Consistency

    The parameter naming has been changed in some places (e.g., from select_activation to quant_activation_method and from fragment_method to ms2_fragment_method), but there might be dependencies in other files that still use the old parameter names.

    reference_channel           = '126'
    min_precursor_intensity     = 1.0
    reporter_mass_shift         = 0.002
    quant_activation_method     = 'HCD'
    iso_normalization           = false
    

    @qodo-code-review

    qodo-code-review Bot commented Mar 25, 2025 •

    Copy link
    Copy Markdown
    Contributor

    Qodo Merge was enabled for this repository. To continue using it, please link your Git account with your Qodo account here.

    PR Code Suggestions ✨

    Explore these optional code suggestions:

    CategorySuggestion                                                                                                                                    Impact
    Possible issue
    Fix invalid method call

    The method getVal() doesn't exist for List objects in Groovy. This will cause a
    runtime error when the pipeline completes. You should use get() or simply pass
    the list directly.

    subworkflows/local/utils_nfcore_quantms_pipeline/main.nf [127-134]

     completionEmail(
         summary_params,
         email,
         email_on_fail,
         plaintext_email,
         outdir,
         monochrome_logs,
    -    multiqc_reports.getVal(),
    +    multiqc_reports,
     )

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 10

    __

    Why: This fixes a critical runtime error. The method getVal() doesn't exist for List objects in Groovy and would cause the pipeline to fail at completion. This is a high-priority fix for pipeline functionality.

    High
    Fix version channel name

    The output field name for versions has been standardized to 'versions' (plural)
    in the updated code, but this line still uses 'version' (singular). This
    inconsistency will cause a channel connection error.

    subworkflows/local/dda_id.nf [65]

    -ch_software_versions = ch_software_versions.mix(EXTRACTPSMFEATURES.out.version)
    +ch_software_versions = ch_software_versions.mix(EXTRACTPSMFEATURES.out.versions)

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 9

    __

    Why: This suggestion identifies a critical issue where the channel name 'version' (singular) is used instead of 'versions' (plural). This inconsistency would cause a channel connection error and break the pipeline execution.

    High
    Fix output channel name

    The output channel name should be 'versions' (plural) to be consistent with the
    standardized naming convention used throughout the updated code. This
    inconsistency will cause errors when this workflow is imported elsewhere.

    subworkflows/local/dda_id.nf [191]

    -version                 = ch_software_versions
    +versions                = ch_software_versions

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 9

    __

    Why: The suggestion correctly identifies that the output channel name should be 'versions' (plural) to match the standardized naming convention. This change is essential for proper workflow integration and prevents errors when imported elsewhere.

    High
    Fix channel reference mismatch

    The output channel from EXTRACTPSMFEATURES is incorrectly referenced as
    'id_files_feat' but in the updated code it should be 'id_files_feat'. This
    mismatch will cause a workflow execution error.

    subworkflows/local/psmrescoring.nf [37]

    -ch_id_files_branched.nosage.mix(EXTRACTPSMFEATURES.out.id_files_feat)
    +ch_id_files_branched.sage.mix(EXTRACTPSMFEATURES.out.id_files_feat)

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 9

    __

    Why: This is a critical bug fix. The code incorrectly references the output channel, which would cause a workflow execution error when running the pipeline. The fix ensures proper channel connection between processes.

    High
    Fix incorrect bash option

    The bash option "-C" (no clobber) is incorrect. The correct option for
    preventing output redirection from overwriting files is "-c". However, this
    option is not typically used in pipeline shell settings. Consider removing it or
    replacing with the correct option.

    nextflow.config [435-442]

     process.shell = [
         "bash",
    -    "-C",         // No clobber - prevent output redirection from overwriting files.
         "-e",         // Exit if a tool returns a non-zero status/exit code
         "-u",         // Treat unset variables and parameters as an error
         "-o",         // Returns the status of the last command to exit..
         "pipefail"    //   ..with a non-zero status or zero if all successfully execute
     ]

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 8

    __

    Why: The bash option "-C" is incorrect and not a valid bash option for preventing clobber. This could cause shell execution issues. Removing the incorrect option ensures the pipeline's shell commands will execute properly.

    Medium
    Remove unused parameter

    The empty list parameter is being passed but not used in the downstream code.
    This could cause unexpected behavior when the channel is consumed. Remove the
    empty list to match the return format used in the updated code.

    subworkflows/local/dda_id.nf [47]

     ch_id_files_branched.nosage: true
    -    return [meta, filename, []]
    +    return [meta, filename]

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 7

    __

    Why: The suggestion correctly identifies that the empty list parameter is being removed in the updated code. This change is important for consistency and prevents potential errors when the channel is consumed downstream.

    Medium
    General
    Fix profile name inconsistency

    The conda test is using 'micromamba' profile but the environment variable is set
    to 'EXEC_PROFILE: conda'. This inconsistency will cause the test to use the
    wrong profile name in the output directory, making it harder to track test
    results.

    .github/workflows/extended_ci.yml [235-238]

     - name: Run pipeline with test data in conda profile (master branch)
       if: github.event.pull_request.base.ref == 'master'
       run: |
    -    nextflow run ${GITHUB_WORKSPACE} -profile $TEST_PROFILE,micromamba --outdir ${TEST_PROFILE}_${EXEC_PROFILE}_results
    +    nextflow run ${GITHUB_WORKSPACE} -profile $TEST_PROFILE,micromamba --outdir ${TEST_PROFILE}_micromamba_results
    • Apply this suggestion
    Suggestion importance[1-10]: 7

    __

    Why: This suggestion fixes an inconsistency between the environment variable and the profile name used in the command, which would make test results harder to track and potentially confuse users reviewing test outputs.

    Medium
    Remove unnecessary boolean casting

    The explicit casting of a boolean literal to Boolean is unnecessary and can be
    simplified. Boolean literals like 'true' are already of type Boolean in Groovy.

    subworkflows/nf-core/utils_nfcore_pipeline/main.nf [33]

    -def valid_config = true as Boolean
    +def valid_config = true

    [To ensure code accuracy, apply this suggestion manually]

    Suggestion importance[1-10]: 3

    __

    Why: The explicit casting of a boolean literal to Boolean is unnecessary as boolean literals are already of type Boolean in Groovy. Removing it improves code clarity without changing functionality.

    Low
    • Update

    @jpfeuffer

    Copy link
    Copy Markdown
    Collaborator

    We didn't have this from the nf-core pipeline template?
    If not, great addition.

    @enryH

    enryH commented Mar 26, 2025

    Copy link
    Copy Markdown
    Collaborator Author

    We didn't have this from the nf-core pipeline template? If not, great addition.

    you had it from nf-core tools, but did not call it.

    @enryH

    enryH commented Mar 26, 2025

    Copy link
    Copy Markdown
    Collaborator Author

    Any idea where this error comes from? Is it related to my changes or rather due to OpenMS changes?

    Command error:
      Unknown option(s) '[-Algorithm:score_type]' given. Aborting!
      stty: standard input: Inappropriate ioctl for device
    

    @ypriverol

    Copy link
    Copy Markdown
    Contributor

    Any idea where this error comes from? Is it related to my changes or rather due to OpenMS changes?

    Command error:
      Unknown option(s) '[-Algorithm:score_type]' given. Aborting!
      stty: standard input: Inappropriate ioctl for device
    

    @enryH you have to use the dev config also like -profile docker,..,dev this is because we are using the containers dev of OpenMS in Dev until the release of OpenMS.

    @enryH

    enryH commented Mar 26, 2025

    Copy link
    Copy Markdown
    Collaborator Author

    but also in the GitHub Actions? Manually?

    @ypriverol

    Copy link
    Copy Markdown
    Contributor

    I think the issue is with GitHub. Let me check.

    @github-actions

    github-actions Bot commented Mar 26, 2025 •

    Copy link
    Copy Markdown

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

    Posted for pipeline commit ee611e6

    +| ✅ 105 tests passed       |+
    #| ❔  13 tests were ignored |#
    !| ❗  26 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 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 README.md: Add bibliography of tools and data used in your pipeline
    • pipeline_todos - TODO string in ro-crate-metadata.json: "description": "

      \n \n <source media="(prefers-color-scheme: dark)" srcset="docs/images/bigbio-quantms_logo_dark.png">\n <img alt="bigbio/quantms" src="docs/images/bigbio-quantms_logo_light.png">\n \n

      \n\nGitHub Actions CI Status\nGitHub Actions Linting StatusAWS CICite with Zenodo\nnf-test\n\nNextflow\nrun with conda\nrun with docker\nrun with singularity\nLaunch on Seqera Platform\n\nGet help on SlackFollow on TwitterFollow on MastodonWatch on YouTube\n\n## Introduction\n\nbigbio/quantms is a bioinformatics pipeline that ...\n\n TODO nf-core:\n Complete this sentence with a 2-3 sentence summary of what types of data the pipeline ingests, a brief overview of the\n major pipeline sections and the types of output it produces. You're giving an overview to someone new\n to nf-core here, in 15-20 seconds. For an example, see https://github.com/nf-core/rnaseq/blob/master/README.md#introduction\n\n\n Include a figure that guides the user through the major workflow steps. Many nf-core\n workflows use the "tube map" design for that. See https://nf-co.re/docs/contributing/design_guidelines#examples for examples. \n Fill in short bullet-pointed list of the default steps in the pipeline 1. Read QC (FastQC)2. Present QC for raw reads (MultiQC)\n\n## Usage\n\n> [!NOTE]\n> If you are new to Nextflow and nf-core, please refer to this page on how to set-up Nextflow. Make sure to test your setup with -profile test before running the workflow on actual data.\n\n Describe the minimum required steps to execute the pipeline, e.g. how to prepare samplesheets.\n Explain what rows and columns represent. For instance (please edit as appropriate):\n\nFirst, prepare a samplesheet with your input data that looks as follows:\n\nsamplesheet.csv:\n\ncsv\nsample,fastq_1,fastq_2\nCONTROL_REP1,AEG588A1_S1_L002_R1_001.fastq.gz,AEG588A1_S1_L002_R2_001.fastq.gz\n\n\nEach row represents a fastq file (single-end) or a pair of fastq files (paired end).\n\n\n\nNow, you can run the pipeline using:\n\n update the following command to include all required parameters for a minimal example \n\nbash\nnextflow run bigbio/quantms \\\n -profile <docker/singularity/.../institute> \\\n --input samplesheet.csv \\\n --outdir <OUTDIR>\n\n\n> [!WARNING]\n> Please provide pipeline parameters via the CLI or Nextflow -params-file option. Custom config files including those provided by the -c Nextflow option can be used to provide any configuration except for parameters; see docs.\n\nFor more details and further functionality, please refer to the usage documentation and the parameter documentation.\n\n## Pipeline output\n\nTo see the results of an example test run with a full size dataset refer to the results tab on the nf-core website pipeline page.\nFor more details about the output files and reports, please refer to the\noutput documentation.\n\n## Credits\n\nbigbio/quantms was originally written by Yasset Perez-Riverol.\n\nWe thank the following people for their extensive assistance in the development of this pipeline:\n\n If applicable, make list of people who have also contributed \n\n## Contributions and Support\n\nIf you would like to contribute to this pipeline, please see the contributing guidelines.\n\nFor further information or help, don't hesitate to get in touch on the Slack #quantms channel (you can join with this invite).\n\n## Citations\n\n Add citation for pipeline after first release. Uncomment lines below and update Zenodo doi and badge at the top of this file. \n If you use bigbio/quantms for your analysis, please cite it using the following doi: 10.5281/zenodo.XXXXXX \n\n Add bibliography of tools and data used in your pipeline \n\nAn extensive list of references for the tools used by the pipeline can be found in the CITATIONS.md file.\n\nYou can cite the nf-core publication as follows:\n\n> The nf-core framework for community-curated bioinformatics pipelines.\n>\n> Philip Ewels, Alexander Peltzer, Sven Fillinger, Harshil Patel, Johannes Alneberg, Andreas Wilm, Maxime Ulysse Garcia, Paolo Di Tommaso & Sven Nahnsen.\n>\n> Nat Biotechnol. 2020 Feb 13. doi: 10.1038/s41587-020-0439-x.\n",
    • 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!
    • 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.
    • local_component_structure - preprocess_expdesign.nf in modules/local should be moved to a TOOL/SUBTOOL/main.nf structure
    • local_component_structure - samplesheet_check.nf in modules/local should be moved to a TOOL/SUBTOOL/main.nf structure
    • local_component_structure - featuremapper.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - create_input_channel.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - proteininference.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - databasesearchengines.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - proteinquant.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - dda_id.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - phosphoscoring.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - file_preparation.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - psmrescoring.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - id.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - input_check.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure
    • local_component_structure - psmfdrcontrol.nf in subworkflows/local should be moved to a SUBWORKFLOW_NAME/main.nf structure

    ❔ Tests ignored:

    ✅ Tests passed:

    Run details

    • nf-core/tools version 3.2.0
    • Run at 2025-03-28 08:40:03

    @ypriverol ypriverol mentioned this pull request Mar 26, 2025
    11 tasks
    @ypriverol
    ypriverol merged commit a23bfbb into bigbio:dev Mar 28, 2025
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

    Development

    Successfully merging this pull request may close these issues.

    3 participants