Skip to content

Source code and application note for ILC2 classifier developed in Jacquelot et al., 2021

Notifications You must be signed in to change notification settings

DavisLaboratory/Jacquelot_2021_reproducibility

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This repository contains data and source code used to train the ILC2 XGBoost classifier in the manuscript PD-1 blockade unleashes ILC2-dependent anti-tumor immunity in melanoma by Jacquelot et al. The XGBoost model is provided as a RData object for easy application. Install xgboost package from CRAN in R >= 3.6.3, then:

Load pre-trained XGBoost model

library(xgboost)
load("tonsils_ILC2_xgb_model.RData")

Access classifier feature (gene) names by

head(bst$feature_names)
nFeatures <- length(bst$feature_names)

Apply the model to new datasets

To use the model to obtain ILC2 prediction scores on new datasets, apply TMM-normalisation to your RNAseq count data (optional), compute log2-cpms and subset your dataset on genes in the classifier (Note feature names are Homo-sapiens gene symbols). Here testdata is a matrix of logCPM values with nFeatures columns and nSamples rows

preds <- predict(bst, testdata)

About

Source code and application note for ILC2 classifier developed in Jacquelot et al., 2021

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages