Skip to content

Support for DIANN 1.9.2, output all files. - #454

Merged
ypriverol merged 4 commits into
bigbio:devfrom
daichengxin:dev
Dec 4, 2024
Merged

ypriverol merged 4 commits into
bigbio:devfrom
daichengxin:dev

Conversation

@daichengxin

@daichengxin daichengxin commented Dec 4, 2024 •

Copy link
Copy Markdown
Collaborator

User description

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

PR Type

enhancement


Description

  • Enhanced the DIANNSUMMARY process by adding new output files: diann_report.parquet, diann_report.protein_description.tsv, and diann_report.stats.tsv.
  • Updated the condition logic in the EXTRACTPSMFEATURES process to include params.ms2rescore without requiring params.id_only.

Changes walkthrough 📝

Relevant files
Enhancement
main.nf
Enhance DIANNSUMMARY process with additional output files

modules/local/diannsummary/main.nf

  • Added new output files: diann_report.parquet,
    diann_report.protein_description.tsv, and diann_report.stats.tsv.
  • Marked diann_report.parquet and empirical_library.tsv as optional
    outputs.
  • +4/-0     
    main.nf
    Update EXTRACTPSMFEATURES condition logic                               

    modules/local/openms/extractpsmfeatures/main.nf

  • Modified condition to include params.ms2rescore without
    params.id_only.
  • +1/-1     

    💡 PR-Agent usage: Comment /help "your question" on any pull request to receive relevant information

    @coderabbitai

    coderabbitai Bot commented Dec 4, 2024

    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.


    Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

    ❤️ 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 resolve resolve all the CodeRabbit review comments.
    • @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.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity 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

    Logic Change
    Removing the params.id_only condition check could potentially affect the feature extraction behavior in unexpected ways. Need to verify this change is intentional and doesn't break existing functionality.

    Optional Outputs
    Several new output files are marked as optional. Need to verify the conditions under which these files may not be generated and ensure proper error handling.

    @qodo-code-review

    Copy link
    Copy Markdown
    Contributor

    PR-Agent was enabled for this repository. To continue using it, please link your git user with your CodiumAI identity here.

    PR Code Suggestions ✨

    Explore these optional code suggestions:

    CategorySuggestion                                                                                                                                    Score
    Possible issue
    Add file existence validation before processing to prevent runtime errors

    Add a check to ensure extra_feat file exists and is readable before using it in the
    awk command, as removing the params.id_only condition might lead to undefined
    behavior if the file is not present.

    modules/local/openms/extractpsmfeatures/main.nf [25-27]

    -if (params.ms2rescore) {
    +if (params.ms2rescore && file(extra_feat).exists()) {
         feature = "-extra \$(awk 'NR > 1 && \$1 !~ /psm_file/ {printf \"%s \", \$2}' ${extra_feat})"
     }
    • Apply this suggestion
    Suggestion importance[1-10]: 8

    Why: The suggestion addresses a potential runtime error by adding a critical file existence check. Since the PR removes the params.id_only condition, validating the extra_feat file's existence becomes more important to prevent script failures.

    8

    💡 Need additional feedback ? start a PR chat

    @ypriverol ypriverol changed the title include all diann output Support for DIANN 1.9.2, output all files. Dec 4, 2024
    @github-actions

    github-actions Bot commented Dec 4, 2024 •

    Copy link
    Copy Markdown

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

    Posted for pipeline commit c7d413d

    +| ✅ 108 tests passed       |+
    #| ❔  13 tests were ignored |#
    !| ❗  11 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 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 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.
    • 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 ci.yml: You can customise CI pipeline run tests as required
    • pipeline_todos - TODO string in ci.yml: You can customise CI pipeline run tests as required

    ❔ Tests ignored:

    ✅ Tests passed:

    Run details

    • nf-core/tools version 3.0.2
    • Run at 2024-12-04 15:35:15

    @ypriverol
    ypriverol self-requested a review December 4, 2024 15:48
    @ypriverol
    ypriverol merged commit 235dbba into bigbio:dev Dec 4, 2024
    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.

    2 participants