summarizeByAnnotation(expData, annoData, what = getColnames(expData, all = FALSE), fxs = c("TOTAL"), groupBy = NULL, splitBy = NULL, ignoreStrand = FALSE, bindAnno = FALSE, preserveColnames = TRUE, verbose = getOption("verbose"))ExpData.
chr, start, end and strand which specifies
annotation regions of interest.
annoData. Regions
will be aggregated over distinct values of this column. Setting this
argument will set bindAnno to TRUE. If splitBy
is set, meta.id will override.
annoData object on which to split results.
TRUE strand will be ignored.
splitBy is not specified, returns a data frame containing
results of aggregation functions performed on each region
defined in annoData. If splitBy is specified, returns a
list of data frames with one entry for each unique value of the
column which was split on.
splitByAnnotation to retrieve
a list with all the data and then use R to summarize over each element
of the list. It is (naturally) constrained to the use of operations
expressible in (SQLite) SQL. If meta.id is set to a column in annoData, all regions
with the same value of the meta.id will be joined together; a
standard use case is labelleing exons of a gene.
Genominator vignette for more information, as well as the ExpData-class.
ed <- ExpData(system.file(package = "Genominator", "sample.db"),
tablename = "raw")
data("yeastAnno")
summarizeByAnnotation(ed, yeastAnno[1:50,])
Run the code above in your browser using DataLab