pred_powerest {PoweREST}R Documentation

Power value prediction

Description

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.

Usage

pred_powerest(x,n.grid=30,xlim=NULL,ylim=NULL)

Arguments

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.

Value

The prediction values of the power.

Author(s)

Lan Shui lshui@mdanderson.org based partly on 'scam' by Natalya Pya

Examples

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))


[Package PoweREST version 0.1.0 Index]