methSplit: function that split methylation data into train and test

Description Usage Arguments Value Examples

View source: R/methSplit.R

Description

function that split methylation data into train and test

Usage

1
methSplit(rowNum, Beta_df, designInfo_df)

Arguments

rowNum

number of row of information_df

Beta_df

data frame that each row is a cpg probe, each col is a sample id, each cell is a M value, first column is the phenodata

designInfo_df

df create by function summaryInfo

Value

A list of two elements containing the train and test beta matrix

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
 data(Example_df)
 data(pfcInfo_df)
 data_ls <- methSplit(
   rowNum = 1,
   Beta_df = Example_df,
   designInfo_df = pfcInfo_df
 )

## End(Not run)

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