getPC1: get PC1 of cpg list

Description Usage Arguments Value Examples

View source: R/getPC1.R

Description

given a beta matrix with list of cpgs, extract pc1 of each slot of the list and return the pc1 score data frame

Usage

1
getPC1(clust_ls, train_df, test_df)

Arguments

clust_ls

list of cpgs

train_df

beta or M value matrix with train samples

test_df

beta or M value matrix with test samples

Value

a list contains performance of predicition

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Not run: 
  data(aclust.listDemo)
  data(ExampleMvalue_train)
  data(ExampleMvalue_test)

   test <- getPC1(
   clust_ls = aclust.listDemo,
   train_df = ExampleMvalue_train[,-1],
   test_df = ExampleMvalue_test[,-1]
 )

## End(Not run)

lizhongliu1996/PredictMisc documentation built on Aug. 23, 2019, 5:55 a.m.