splitByAnnotation {Genominator} | R Documentation |
This function splits the data into a list of matrices, by annotation element.
splitByAnnotation(expData, annoData, what = "*", ignoreStrand = FALSE, expand = FALSE, addOverStrands = FALSE, verbose = getOption("verbose"))
expData |
An object of class |
annoData |
A data frame which must contain the columns |
what |
Vector of names of columns of |
ignoreStrand |
Logical indicating whether strand should be ignored. If |
expand |
Logical indicating whether positions with no data should be included in output. If |
addOverStrands |
Logical indicating whether data should be added across strands. Only applies when |
verbose |
Logical indicating whether details should be printed. |
This function retrieves the data contained in the regions of the
annoData
object. The return object may be significant in size.
Returns a list of length equal to the number of annotation entries split upon. Each list element
is either a matrix of data, or a list with data matrices for each strand included (if expand
is TRUE
and addOverStrands
is FALSE
).
James Bullard bullard@berkeley.edu, Kasper Daniel Hansen khansen@jhsph.edu
See Genominator
vignette for more information.
ed <- ExpData(system.file(package = "Genominator", "sample.db"), tablename = "raw") data("yeastAnno") splitByAnnotation(ed, yeastAnno[1:30,])