malacoda_intervals: Plot a variant's posterior intervals

Description Usage Arguments Details See Also Examples

Description

Given a result object from the malacoda model, this function plots the posterior intervals for all the modeled parameters. The outer black bars represent the limits of the 95 bar represents the 80 posterior means.

Usage

1
2
3
4
5
malacoda_intervals(
  sampler_res,
  inner_probs = c(0.1, 0.9),
  outer_probs = c(0.025, 0.975)
)

Arguments

sampler_res

A stanfit object for one variant

inner_probs

quantiles of the posterior for the inner bar

outer_probs

quantiles of the posterior for the outer bar

Details

The sampler_res object for a given variant is saved into the out_dir argument of fit_mpra_model. The barcode concentrations (i.e. DNA means) are numbered in the same order in which they are given to fit_mpra_model, with poorly represented barcodes removed entirely.

See Also

fit_mpra_model get_well_represented

Examples

1

andrewGhazi/malacoda documentation built on Aug. 2, 2020, 12:54 a.m.