Learn R Programming

baySeq (version 2.6.0)

summarisePosteriors: Summarises expected number of genomic events given the calculated posterior likelihoods of a countData object.

Description

Given posterior likelihoods for each model, we can calculate the expected number of genomic events corresponding to each model (and to each ordering within each model) by summing the posterior likelihoods.

Usage

summarisePosteriors(cD, orderings = TRUE)

Arguments

cD
A countData object.
orderings
Indicates whether models should be split by orderings of the data under the model (defaults to TRUE).

Value

Numeric vector of expected number of genomic events belonging to each model (optionally, split by orderings).

See Also

topCounts, selectTop

Examples

Run this code

# We load in a `countData' object containing the estimated posterior
# likelihoods of expression (see `getLikelihoods').

data(CDPost)

# summarise the expected number of genomic events in each category
summarisePosteriors(CDPost)

Run the code above in your browser using DataLab