Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MSstats - relaxing default parameters. #437

Closed
wants to merge 4 commits into from
Closed

Conversation

ypriverol
Copy link
Member

@ypriverol ypriverol commented Nov 12, 2024

Description

Since the release of quantms, we have had multiple users complaining that with the current default parameters of MSstats, it always fails this step.

This is because default parameters remove poor features, like proteins with only one feature, features that are not across replicates, etc. The majority of the users and also the public data do not have too many replicates, and in some way, the data do not fill the requirements of MSstats for high-quality results. I have discussed this issue with @tonywu1999, and I think we should, by default, define more relaxed parameters, and users can then play with more stringent thresholds manually if they want to.

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

Copy link

coderabbitai bot commented Nov 12, 2024

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.

@ypriverol ypriverol changed the base branch from master to dev November 12, 2024 11:00
Copy link

github-actions bot commented Nov 12, 2024

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

Posted for pipeline commit 9bfbca5

+| ✅ 107 tests passed       |+
#| ❔  13 tests were ignored |#
!| ❗  11 tests had warnings |!

❗ 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-11-12 11:29:01

@jpfeuffer
Copy link
Collaborator

This will heavily inflate and distort quantities for good experiments.
If people have trash data, they should actively be reminded of this by having to set these parameters accordingly

Copy link
Collaborator

@jpfeuffer jpfeuffer left a comment

Choose a reason for hiding this comment

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

I am against this. See my comment.

@ypriverol
Copy link
Member Author

ypriverol commented Nov 12, 2024

This will heavily inflate and distort quantities for good experiments. If people have trash data, they should actively be reminded of this by having to set these parameters accordingly

I agree with you 100%. However, the aim of the workflow is not to judge the data but to give some results for the data provided. We are defining default parameters in two different ways:

  • By the most common and well-known definition of it, for example, 0.01 q-value at PSM level is the most well-established metric for this.
  • By the most frequent runs we see from our users and the present in public datasets. In this case, I have seen that the majority of the data is in the public domain, and it also looks like our users do not have a lot of technical/biological replicates. I suggest that we relax the default thresholds because what is happening now is that for the majority of the datasets, I can't run this step. Then, I have to download the data to my side and play with the thresholds, etc.

This is why Im advocating to relax the thresholds here, especially because the majority of users use other packages, such as limma and others and not MSstats. I want more people to use MSstats and quantms and not find from the very beginning errors, and I need to take this step quickly because it is too stringent for the data they have.

Can you jump here @tonywu1999 and give your opinion? Do you know how many people disable removeFewMeasurements in MSstats?

@daichengxin
Copy link
Collaborator

Or can we catch this error and throw a warning, then try the relax parameter to run.

@jpfeuffer
Copy link
Collaborator

This will heavily inflate and distort quantities for good experiments. If people have trash data, they should actively be reminded of this by having to set these parameters accordingly

I agree with you 100%. However, the aim of the workflow is not to judge the data but to give some results for the data provided. We are defining default parameters in two different ways:

  • By the most common and well-known definition of it, for example, 0.01 q-value at PSM level is the most well-established metric for this.
  • By the most frequent runs we see from our users and the present in public datasets. In this case, I have seen that the majority of the data is in the public domain, and it also looks like our users do not have a lot of technical/biological replicates. I suggest that we relax the default thresholds because what is happening now is that for the majority of the datasets, I can't run this step. Then, I have to download the data to my side and play with the thresholds, etc.

This is why Im advocating to relax the thresholds here, especially because the majority of users use other packages, such as limma and others and not MSstats. I want more people to use MSstats and quantms and not find from the very beginning errors, and I need to take this step quickly because it is too stringent for the data they have.

Can you jump here @tonywu1999 and give your opinion? Do you know how many people disable removeFewMeasurements in MSstats?

My point is, that once the pipeline finishes, 90% of the users will be happy and take the data as-is. This means, that people which have good data and could heavily benefit from outlier removal, will never try this and publish bad results with our pipeline (which will shed a bad light on it).
It is as if you would set no FDR control just to please users that cannot set modifications or tolerances correctly. They will never realize that something is actually wrong.

@jpfeuffer
Copy link
Collaborator

Or can we catch this error and throw a warning, then try the relax parameter to run.

Better, but 90% of the people will ignore the warning.

@jpfeuffer
Copy link
Collaborator

The only thing I would agree with, is falling back to less stringent parameters if MSstats is forced to fail with those parameters ( i.e. if the dataset has one replicate only?)
But I don't know enough about how MSstats exactly behaves.

@jpfeuffer
Copy link
Collaborator

Also if the dataset has one condition only we should completely disable MSstats if we are not doing that already.

But we should not relax settings in general in my opinion.

@timosachsenberg
Copy link

I am in favor of the stricter settings as default. I think one already accumulates a lot of wrong features (e.g. through MBR) in large studies, and we should have a mechanism to flag studies were less stringent setting had to be set.

@ypriverol
Copy link
Member Author

I will close this PR. I think we should document how when the parameters do not work, what could be happening.

@ypriverol ypriverol closed this Nov 14, 2024
@jpfeuffer
Copy link
Collaborator

I guess failing with good error messages would be sufficient.
I feel like MSstats could also improve the messages internally

@ypriverol
Copy link
Member Author

I discuss it with them, but it will take some time. @tonywu1999 you can learn from this.

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.

4 participants