mergeWithAnnotation {Genominator} | R Documentation |
This function creates a data frame containing the data and the corresponding annotation information for each data row included in the annotation.
mergeWithAnnotation(expData, annoData, what = "*", ignoreStrand = FALSE, splitBy = NULL, verbose = getOption("verbose"))
expData |
An object of class |
annoData |
A data frame which must contain the columns |
what |
Which columns of |
ignoreStrand |
Logical indicating whether strand should be ignored. If |
splitBy |
Field on which merged data frame should be split before returning. |
verbose |
Logical indicating whether details should be printed. |
Generally this function is good for creating a list of data split by some annotation feature, which can then be applied across.
If splitBy
is NULL
, returns a data frame containing the data from expData
that fall into regions defined by annoData
, and which includes the annotation information, with columns
as specified by what
. If splitBy
is non-NULL
, returns a list of data frames with an element for each
unique value of splitBy
field.
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") mergeWithAnnotation(ed, yeastAnno[1:5,])