Model coefficient stability analysis #31
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The goal of this analysis was to use the model coefficients of our mutation prediction classifiers to evaluate similarity between models. Since we're using elastic net logistic regression (which zeroes out coefficients for most genes), we can compare the nonzero coefficients between models, and if they are similar we say the models are similar.
The idea was to eventually use this to define similarities for the same gene across different cancer types (e.g. if we noticed that our KRAS mutation predictor selects similar genes in thyroid cancer and colon cancer, we would hypothesize that KRAS mutations have similar effects on gene expression in those cancer types, which could be interesting biologically).
Unfortunately, this doesn't work as well as we thought it would - even for models on different cross-validation folds of the same gene and cancer type, we see considerable variation in the nonzero coefficients. This is probably due to the large amount of multicollinearity in gene expression data: in many cases there are multiple predictors/genes in the dataset conveying essentially the same information, so the model can pick one or a few of them essentially arbitrarily.
This is a fairly well-documented characteristic of feature selection in linear models on datasets with collinear features, so it isn't too surprising.