SubsetOmicsResponse | R Documentation |
OmicsReg
or OmicsReg
Object"Get" or "Set" the values of the response_num
or
response_fact
slots of an object of class OmicsReg
or
OmicsReg
, respectively.
getResponse(object, ...)
getResponse(object) <- value
## S4 method for signature 'OmicsPathway'
getResponse(object, ...)
## S4 replacement method for signature 'OmicsPathway'
getResponse(object) <- value
object |
An object of class |
... |
Dots for additional internal arguments (currently unused). |
value |
The replacement object to be assigned to the |
These functions can be useful to set or extract the response vector
from an object of class OmicsReg
or OmicsReg
. However, we
recommend that users simply create a new, valid object instead of
modifying an existing one. The validity of edited objects is checked with
their respective ValidOmicsCateg
or
ValidOmicsReg
function. Because both classes have a
response
slot, we set this method for the parent class,
OmicsPathway-class
.
The "get" functions return the objects in the slots specified:
getResponse
returns the response_num
vector from objects of
class OmicsReg
and the response_fact
vector from objects of
class OmicsCateg
. These functions can extract these values from
any valid object of those classes.
The "set" functions enable the user to edit or replace the object in the
response_num
slot for any OmicsReg
object or
response_fact
slot for any OmicsCateg
object, provided that
the new values do not violate the validity check of such an object. See
"Details" for more information.
CreateOmics
data("colonSurv_df")
data("colon_pathwayCollection")
colon_Omics <- CreateOmics(
assayData_df = colonSurv_df[, -(2:3)],
pathwayCollection_ls = colon_pathwayCollection,
response = colonSurv_df[, c(1, 2)],
respType = "reg"
)
getResponse(colon_Omics)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.