R/ResultSet-tableHist.R

#' @aliases tableHits
#' @rdname tableHits-methods
setMethod(
    f = "tableHits",
    signature = "ResultSet",
    definition = function(object, th=0.05) {
        data.frame(
            exposure=names(object),
            hits=sapply(names(object), function(expo) {
                tt <- MultiDataSet::getAssociation(object, rid=expo, fNames=NULL)
                sum(tt$P.Value < th)
            }),
            stringsAsFactors = FALSE
        )
    }
)

Try the omicRexposome package in your browser

Any scripts or data that you put into this service are public.

omicRexposome documentation built on Jan. 24, 2021, 2:03 a.m.