Description Usage Arguments Value Examples
View source: R/summarizeCpGs.R
summarize function that choose cpgs based on different methods
1 | summarizeCpGs(clust_ls, train_df, test_df, selectMethod)
|
clust_ls |
list of cpgs, each slot contains few cpgs |
train_df |
data frame that each row is a train samples |
test_df |
data frame that each row is a test samples |
selectMethod |
what cpg selection method to use, use full cpgs fullCpGs within cluster or PC1 score getPC1 of cluster or maximum maxCpGs expression score, default set to fullcpgs, it is feasible to write new methods by adding a new function that take in train/test dataset and cpglist then return a list of train and test subset data. |
a list contains train data frame and test data frame and number of predictors
1 2 3 4 5 6 7 8 9 10 11 12 13 | ## Not run:
data(aclust.listDemo)
data(ExampleMvalue_train)
data(ExampleMvalue_test)
test <- summarizeCpGs(
clust_ls = aclust.listDemo,
train_df = ExampleMvalue_train[ , -1],
test_df = ExampleMvalue_test[ , -1],
selectMethod = fullCpGs
)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.