bin_pmol: Binned estimation of picomoles of DNA present in cfMeDIP...

View source: R/bin_pmol.R

bin_pmolR Documentation

Binned estimation of picomoles of DNA present in cfMeDIP assays

Description

Given the results of model_glm_pmol and predict_pmol, adjust the predictions to reflect picomoles of captured DNA overlapping a given bin in the genome.

Usage

bin_pmol(x)

Arguments

x

results from predict_pmol (a data.frame or GRanges)

Value

 the same object, but with a column `adjusted_pred_con`

See Also

model_glm_pmol

predict_pmol

Examples

data(spike, package="spiky")
data(spike_res, package="spiky")
data(genomic_res,package="spiky")
fit <- model_glm_pmol(covg_to_df(spike_res, spike=spike),spike=spike)
pred <- predict_pmol(fit, genomic_res, ret="df")
bin_pmol(pred)


trichelab/spiky documentation built on Sept. 17, 2022, 8:44 a.m.