View source: R/constructFeatures.R
constructFeatures | R Documentation |
Helper function to make a data frame ready for training/validation/testing from a bsseq object that contains the CpG/DNA features for the model
constructFeatures(bs, sample = 1, minCov = 10, sampleAvg = TRUE, neighbMeth = TRUE, neighbDist = TRUE, featureBEDs = NULL)
bs |
a |
sample |
which sample to construct features for; default is 1, the first sample. |
minCov |
the minimum coverage, below which values will be set to NA. Default is 10. |
sampleAvg |
boolean of whether to not to include the sample average as a feature. Default is TRUE. |
neighbMeth |
boolean of whether or not to include nearest non-missing neighboring CpG methylation values. Default is TRUE. |
neighbDist |
boolean of whether or not to include nearest non-missing neighboring CpG distances. Default is TRUE. |
featureBEDs |
optional named list of paths to BED files to be included as features in the model. Names are used as the feature name; e.g. list(chromState = "chromatinStates.bed") |
a data.frame, each row is a CpG; first column is the actual beta value, subsequent columns are features
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.