Wrapper to results produced by SAINTexpress
Source:R/ContrastSaintExpress.R
ContrastsSAINTexpress.RdWrapper to results produced by SAINTexpress
Wrapper to results produced by SAINTexpress
See also
summary_ROPECA_median_p.scaled
Other modelling:
ContrastsSAINTFacade
Super class
prolfqua::ContrastsInterface -> ContrastsSAINTexpress
Public fields
contrast_resultdata.frame with the contrast computation results
modelNamemodel name
subject_idsubject id defualt 'Prey'
Methods
Inherited methods
Method new()
initialize
Usage
ContrastsSAINTexpress$new(
contrastsdf,
subject_id = "Prey",
modelName = "ContrastSaint"
)Arguments
contrastsdfreturn value of
runSaintsubject_iddefault "Prey"
modelNamename of model
Method get_Plotter()
get ContrastsPlotter
Usage
ContrastsSAINTexpress$get_Plotter(
fc_threshold = 1,
SaintScore = 0.75,
bfdr_threshold = 0.1
)Arguments
fc_thresholdfold change threshold to show
SaintScoreSaintScore threshold to show in the heatmap.
bfdr_thresholdBFDR threshold
Method to_wide()
convert to wide format
Usage
ContrastsSAINTexpress$to_wide(columns = c("SaintScore", "BFDR"))Method get_ora()
get SAINT ORA input table.
Examples
seout <- prolfqua::prolfqua_data("data_SAINTe_output")
cse <- ContrastsSAINTexpress$new(seout$list)
stopifnot(dim(cse$to_wide()) == c(64,13))
cse$get_contrast_sides()
#> contrast group_1 group_2
#> 1 b vs Control b Control
#> 2 c vs Control c Control
#> 3 d vs Control d Control
#> 4 e vs Control e Control
stopifnot(dim(cse$get_contrasts()) == c(236,7))
cse$get_linfct()
#> NULL
pl <- cse$get_Plotter()
stopifnot(c("gg", "ggplot") %in% class(pl$volcano()$FDR))