pred_powerest {PoweREST} | R Documentation |
This function provides the prediction from the Seurat object which could be used for visualization by 'plotly_powerest' and 'vis_powerest' or the power result for your proposal or research. And it is a modified version of the scam library code predict.scam.
pred_powerest(x,n.grid=30,xlim=NULL,ylim=NULL)
x |
A Seurat object. |
n.grid |
The grid note number within 'xlim' and 'ylim', default=30. |
xlim |
The range of the absolute value of log2FC used for prediction, default=NULL which means the original range. |
ylim |
The range of the avg_pct used for prediction, default=NULL which means the original range. |
The prediction values of the power.
Lan Shui lshui@mdanderson.org based partly on 'scam' by Natalya Pya
data(result_example)
b<-fit_powerest(result_example$power,result_example$avg_logFC,result_example$avg_PCT)
pred <- pred_powerest(b,xlim= c(0,6),ylim=c(0,1))