knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(Celmod)
This workflow briefly outlines the main steps in using Celmod to create and apply a model for estimating cell type proportions from bulk data
bdat_initial[1:5,1:5] classprops_initial[,1:5]
model1=train_model(bdat_initial,classprops_initial,numgenevec=3:10,crossval_times=5,seedval=1,method_type ="pearson",quantileval=0.9)
Note that for an actual run, the training, test, and holdout sets would be non-overlapping as far as possible
out1=predict_estimates(model1,bdat_initial)
out1$proportions[[6]][,1:5]
plot(classprops_initial[1,],out1$proportions[[6]][1,],pch=19,xlab="Actual proportion",ylab="Predicted proportion")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.