| iBAG_data | R Documentation |
R6 class to store and manage the iBAG data. This does not contain or manage model result data.
iBAG_data$new() iBAG_data$new()$get.data() iBAG_data$new()$get.mrna() iBAG_data$new()$get.outcome() iBAG_data$new()$get.n_data() iBAG_data$new()$get.n_patients() iBAG_data$new()$get.patients() iBAG_data$new()$get.n_genes() iBAG_data$new()$get.genes() iBAG_data$new()$get.data_names()
new()constructor
iBAG_data$new( mrna = iBAG::demo_mrna, outcome = iBAG::demo_outcome, data = list(cnv = iBAG::demo_cnv, meth = iBAG::demo_meth), DEBUG = FALSE, validate = TRUE, one_val_per_gene = TRUE, data.name.sep = "_", default.data.name = "data", ... )
mrna(iBAG::demo_mrna) dataframe of mrna data
outcome(iBAG::demo_outcome) dataframe of outcome data
data(list(cnv = iBAG::demo_cnv, meth = iBAG::demo_meth)) list of upstream data
DEBUG(FALSE) initialize object in DEBUG mode
validate(TRUE) to validate the data supplied. Will raise Error if data is not valid.
one_val_per_gene(TRUE) whether all the upstream data has 1 column per gene or not.
data.name.sep("_") the default character seperator for collisions in names
default.data.name("data") the default upstream dataset name. Only applied in get.data.names
...: ... get.data
get.data()get the dataset specified by user
iBAG_data$get.data(index = NULL)
index(NULL): index of the dataset to return. Can either be integer or string. if null, return list.
dataframe of the requested dataset or list of all dataframes
TODO: address not found/out of bounds conditions get.mrna
get.mrna()get the mrna dataset
iBAG_data$get.mrna()
dataframe get.outcome
get.outcome()get the outcome dataset
iBAG_data$get.outcome()
dataframe get.n_data
get.n_data()get the number of upstream datasets
iBAG_data$get.n_data()
numeric (integer) get.n_patients
get.n_patients()get the number of patients in dataset
iBAG_data$get.n_patients()
numeric (integer)
get.patients()get a vector of patients in dataset
iBAG_data$get.patients()
vector of numeric or strings get.n_genes
get.n_genes()get the number of genes in dataset
iBAG_data$get.n_genes()
numeric (integer) get.genes
get.genes()get a vector of genes in dataset
iBAG_data$get.genes()
vector of numeric or strings get.data_names
get.data_names()gets a list of datanames from data. Does some error handling.
iBAG_data$get.data_names()
vector of string refering to names
clone()The objects of this class are cloneable with this method.
iBAG_data$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.