xAggregate | R Documentation |
xAggregate
is supposed to aggregate data respecting number of
features. Per row, the aggregated is the sum of two items: the number
of features, and the sum of all but scaled into [0,0.9999999]
xAggregate(data, verbose = T)
data |
a data frame. The aggregation is done across columns per row. Each cell should contain positive values or NA; if infinite, it will be replaced with the maximum finite value |
verbose |
logical to indicate whether the messages will be displayed in the screen. By default, it sets to true for display |
a data frame with an appended column called 'Aggregate'
None
xAggregate
## Not run: # Load the library library(XGR) RData.location <- "http://galahad.well.ox.ac.uk/bigdata_dev" # HiC-gene pairs per cell types/states g <- xRDataLoader(RData.customised='ig.PCHiC', RData.location=RData.location) df <- do.call(cbind, igraph::edge_attr(g)) # aggregate over cell types/states data <- df data[data<5] <- NA res <- xAggregate(data) ## End(Not run)