splitData | R Documentation |
splitData
splits processed ChIP data into training and testing sets.
splitData(ChIPscore,dist = c(80,20), as.proportion = TRUE)
ChIPscore |
ChIPscore object as returned by |
dist |
If |
as.proportion |
Logical describing if values provided to |
Returns a named list of ChIPScore objects
* trainingSet = ChIPscore containing training set * testingSet = ChIPscore containing testing set.
Patrick C.N. Martin <pcnmartin@gmail.com
library(ChIPanalyser) data(ChIPanalyserData) # See GA vignette for usage test <- processingChIP(chip,top) usingDist <- splitData(test, dist = c(50,50),as.proportion = TRUE ) usingIndex <- splitData(test, dist = c(1,2,3,4),as.proportion = FALSE )
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.