Skip to content

How can one use MSstats to handle confounding factor such as gender? #144

Open

Description

@shimin-chen

Dear MSstats team,

Thank you all for the great tool!

I have a question about using MSstats to handle confounding factors. If the samples are collected from patients with different characteristics such as gender, race, etc., how can one use MSstats to handle the potential differences contributed by those characteristics beyond just the disease status? Is it possible to have a model like ~ Gender + Race + Disease.Status ? The tutorial I found only discuss simple grouping like control vs treatment. The sample annotation file only allows one grouping factor at a time.

Thank you in advance.

Activity

  1. tonywu1999 commented on Nov 18, 2024

    @tonywu1999
    Contributor

    Hi,

    Yes, you can have a model that handles all of these characteristics.

    In the Condition column of your annotation file, you would define your conditions as something like [gender]_[race]_[disease]. Then, in the groupComparison function, you can create a contrast matrix where you can do more complex comparisons (you can see examples below various contrasts):

    Screenshot 2024-11-18 at 9 57 26 PM

    This approach will also reduce the estimated standard errors and increase the sensitivity. But keep in mind that if the number of replicates in each combination of gender/race/disease is relatively small, this will introduce the risk of overfitting (and false positives).

  2. shimin-chen commented on Nov 19, 2024

    @shimin-chen
    Author

    Hi,

    Thank you for your response! I gave that a try and it works well.

    A follow-up question- can I include a continuous variable such as age in MSstats statistical modelling?

    Thank you.

  3. tonywu1999 commented on Nov 26, 2024

    @tonywu1999
    Contributor

    At the moment, I don't think this is supported. Our models only support using discrete variables (e.g. old vs young) for defining conditions and covariates.

  4. shimin-chen commented on Nov 27, 2024

    @shimin-chen
    Author

    Thank you for your response!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions