jvivian / gene-outlier-detection

A Bayesian model for identifying gene expression outliers for individual single samples (N-of-1) when compared to a cohort of background datasets.
9 stars 3 forks source link

Vectorize model #76

Closed jvivian closed 4 years ago

jvivian commented 4 years ago

Model is built iteratively but may be faster with a vectorized implementation. The caveat is the $X_{d,g]$ priors will have to be informed from an observed X which will increase the total number of parameters.

jvivian commented 4 years ago

New model is a lot faster. For ~125 genes and 3 datasets:

I'll need to run some comparisons between versions to ensure things are consistent before opening a PR.

jvivian commented 4 years ago

Had to figure out how to carry over the normalization term otherwise the laplacian error was too high to call things outliers. New implementation recapitulates old model's p-values, but is now much faster.

Screen Shot 2020-05-11 at 10 09 07 AM