GithubHelp home page GithubHelp logo

msk-age's Introduction

Msk-Age

A repository for the estimation of epigenetic age with MskAge

drawing

What is MskAge?

MskAge is an algorithm that can be used to predict the epigenetic age of cells/tissue samples. It theoretically works across all tissues and cell types but the model is optimised for accuracy within musculoskeletal tissues and cells.

How was MskAge developed?

MskAge was developed using > 1,000 genome-wide DNA methylation profiles of musculoskeletal tissue and cell types. To effectively search the high-dimensional feature space, I designed a penalised genetic algorithms islands model with a regularised regression learner function that minimised within tissue/cell type error while removing redundant CpGs. Full details of the algorithm can be found in the methods of the paper. The final selection of 3,365 CpGs were algebraically transformed into linear principal components and an Elastic Net regression model was built to predict an invertible function of chronological age.

What does MskAge predict?

Primarily, MskAge is a highly accurate predictor of the epigenetic age of musculoskeletal tissue or cell types. However, the readout, as with other epigenetic biomarkers, given by MskAge also appears to reflect biological ageing changes in the tissue/cell. Two common age-related purtubations are reprogramming of somatic cells to pluripotent states and continual passaging/in vitro expansion of primary cells in culture. MskAge is reset to approximately zero when primary fibroblasts are reprogrammed to iPSCs and MskAge shows a strong linear relationship with cumulative population doublings during normal expansion of primary fibroblasts in culture.

drawing

Which CpGs does MskAge use to make its predictions?

The full file of CpGs and their annotations can be found in the supplementary material of the publication. Below are the enriched GO & KEGG terms for the genes the CpGs are proximal to.

drawing

How can I use MskAge?

MskAge can be used for a large number of purposes, however given its applicability to in vitro and ex vivo culture systems, and the difficulty of obtaining musculoskeletal tissues from patients, we anticipate MskAge will be highly useful to study the effects of experimental perturbations.

I have some data, how do I calcuate the MskAge of my samples?

I put together a small tutorial using some mock data below.

library(tidyverse)
library(glmnet)

pheno <- read_csv("test_data/mock_pheno.csv")

mvals <- read_csv("test_data/mock_mvalues.csv") %>% 
              column_to_rownames(var = "...1") %>% 
                as.matrix()

load("pca_glm_object/pca_glm.RData")

mvals_pca <- predict(pcs_, t(mvals))

pheno$MskAge <- predict(musculoskeletal_clock_elas_pca, mvals_pca, s = cv_musculoskeletal_clock_elas_pca$lambda.min)[,1]
pheno$MskAge <- anti.trafo(pheno$MskAge)
pheno$Day <- factor(pheno$Day, levels = c(paste0("Day_", c(0,3,7,11,15,20,28,35,42,49)), "ESC", "iPSC"))

ggplot(pheno, aes(x = Day, y = MskAge, fill = Day)) + 
  geom_boxplot(size = 0.7) + 
  theme_light() + 
  theme(text = element_text(face = "bold"), 
               panel.grid = element_blank(),
        axis.text.x = element_text(angle = 45, hjust = 1)) +
  xlab("Days of Reprogramming")

ggsave("plots/msk_age_plot.png", dpi = 1000, width = 6, height = 4, units = "in")

drawing

msk-age's People

Contributors

daniel-c-green avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.