Description Usage Arguments Details Value Examples
random.data
returns a data frame of random numeric values
1 | random.data(data, back_data = NULL, n = 50, random.seed = NULL)
|
data |
data frame of time course of substrates, each substrate is a row |
back_data |
data frame of numeric values that can to be used as background data, if not provided a values are drawn from a uniform distribution between minimum and maximum of input data |
n |
numeric specifying how many rows should be contained in the resulting data frame |
random.seed |
numeric used as seed |
The function random.data returns a data frame of random numeric values with the same number of columns as the input data and with n-nrow(data) rows. By default the values are drawn from a uniform distribution of values between the minimum and the maximum of the input data. Values can be drawn from background data instead if included.
data frame of random numeric values with n-nrow(data) rows and same number of columns as input data
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | data(phosphonetworkdf)
data(datakin)
# only need what is present in data
phosphonetwork_data <- phosphonetwork_df[
phosphonetwork_df[,"SUB_IDENT"] %in% data_kin[,"SUB_IDENT"]
,]
fam <- list(akt = c("P31749", "P31751"))
kin_data_fam_exc <- KSR.list(phosphonetwork_data[, c("SUB_IDENT", "KIN_ACC_ID")],
kinasefamilies = fam,
exclusive = TRUE)
# only do for Akt and Mtor (P31749, P42345)
substrate_profiles <- lapply(kin_data_fam_exc[c("P31749", "P42345")],
function(x){data_kin[match(x, data_kin[,"SUB_IDENT"]),1:9]})
substrate_profiles_random <- lapply(substrate_profiles,
function(x){rbind(x, random.data(x, random.seed = 123))})
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.