Code Monkey home page Code Monkey logo

epn_classifier's Introduction

EPNClassifier

EPNClassifier assigns ependymal tumors profiled by bulk transcriptomics (RNA-seq or microarrays) into molecular subgroups from Pajtler K.W. et al., Cancer Cell 27 (2015) and Pajtler K.W. et al., Acta Neuropathol 136 (2018). It is based on gene set enrichment analysis of pre-determined gene signatures. Significant p-values can be used to classify EPN tumors into their most-likely molecular subgroup. PFA tumors can be further classified into subtypes (PFA_1 and PFA_2). The training error of EPNClassifier is 1.4% and its test error across platforms is estimated to be <7%. More information abot EPNClassifier can be found in:

  • Aubin R.*, Troisi E. C.*, Alghalith A. N., Nasrallah M. P., Santi M., and Camara P. G., "Cell Ecosystem and Signaling Pathways of Primary and Metastatic Pediatric Posterior Fossa Ependymoma". Submitted.

To cite this code: DOI

Installation

devtools::install_github("CamaraLab/EPN_Classifier")
library(EPNClassifier)

Tutorial

Example data for 209 EPN tumors profiled by DNA microarrays in Pajtler K.W. et al., Cancer Cell 27 (2015) and can be downloaded here

Classify EPN into their molecular subgroups

Calculate the overall running sum statistics and p-vlaues for each EPN tumor.

classification <- ClassifyEPN(bulk = data, permutations = 10000)

#Assign each sample to a single molecular subgroup
molec_gps <- Classify(classification, min_pvalue = 0.35)

Plot the running sum statistic (ie. enrichment score ES) over a ranked list of genes for a specific EPN sample.

ES <- EnrichmentScore_EPN(bulk_sample = data[,1,drop=F])

par(mfrow=c(3,3))
for (i in 1:8){
  plot(x = ES[[i]]$x, y = ES[[i]]$y, xlab = "Rank List of Genes", ylab = "Running Sum Statistic", 
  main = paste0(names(ES)[i]," Enrichment Score"), cex=.1, ylim = c(-1,1) , panel.first = c(lines(x = ES[[i]]$x, 
  y = ES[[i]]$y, col = "red"),abline(h = 0)))
}

Classify PF_A tumors into their subtypes (PFA_1 and PFA_2)

Calculate the overall running sum statistics and p-vlaues for each PF_A tumor.

#Restrict to PFA tumors
pfa_data <- data[,names(molec_gps)[molec_gps %in% "PF_EPN_A"]]

classification_pf <- ClassifyPFA(bulk = pfa_data, permutations = 100000)

#Assign each sample to a single PFA subtype
pf_gps <- Classify(classification_pf, min_pvalue = 0.35)

Plot the running sum statistic (ie. enrichment score ES) over a ranked list of genes for a specific PF_A sample.

ES <- EnrichmentScore_PFA(bulk_sample = pfa_data[,1,drop=F])

par(mfrow=c(1,2))
plot(x = ES$PFA_1$x, y = ES$PFA_1$y, xlab = "Rank List of Genes", ylab = "Running Sum Statistic", 
  main = "PFA_1 Enrichment Score", cex=.1, ylim = c(-1,1) , panel.first = c(lines(x = ES$PFA_1$x, 
  y = ES$PFA_1$y, col = "red"),abline(h = 0)))
plot(x = ES$PFA_2$x, y = ES$PFA_2$y, xlab = "Rank List of Genes", ylab = "Running Sum Statistic", 
  main = "PFA_2 Enrichment Score", cex=.1, ylim = c(-1,1) , panel.first = c(lines(x = ES$PFA_2$x, 
  y = ES$PFA_2$y, col = "red"),abline(h = 0)))  

epn_classifier's People

Contributors

pcamara avatar rach226a avatar

Watchers

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