fit_marg_prior: Fit a marginal prior

Description Usage Arguments Examples

View source: R/prior_fitting.R

Description

Fit a marginal prior

Usage

1
2
3
4
5
6
7
8
9
fit_marg_prior(
  mpra_data,
  n_cores = 1,
  plot_rep_cutoff = TRUE,
  rep_cutoff = 0.15,
  sample_depths,
  well_represented,
  verbose = TRUE
)

Arguments

mpra_data

a data frame of mpra data

n_cores

number of cores to parallelize across

plot_rep_cutoff

logical indicating whether to plot the representation cutoff used

rep_cutoff

fraction indicating the depth-adjusted DNA count quantile to use as the cutoff

sample_depths

optional inputs to allow passing in sample_depths and well_represented objects

well_represented

optional inputs to allow passing in sample_depths and well_represented objects

verbose

logical indicating whether to print messages

Examples

1
2
3
4
marg_prior = fit_marg_prior(umpra_example,
 rep_cutoff = .15,
 plot_rep_cutoff = TRUE,
 n_cores = 1)

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