shearCorrection: Correct for DNA shearing

Description Usage Arguments Value

View source: R/ddPCRclust.R

Description

Longer DNA templates produce a lower droplet count due to DNA shearing. This function normalizes the ddPCRclust result based on a stable marker of different lengths to negate the effect of differences in the lengths of the actual markers of interest. (Work in progress)

Usage

1
shearCorrection(counts, lengthControl, stableControl)

Arguments

counts

The counts per marker as provided by calculateCPDs.

lengthControl

The name of the length Control. If the template name is for example CPT2, the name in the template should be CPT2-125, where 125 represents the number of basepairs.

stableControl

The name of the stable Control used as a reference for this experiment.

Value

A linear regression model fitting the length vs ln(ratio) (see lm for details on linear regression).


ddPCRclust documentation built on Nov. 8, 2020, 6:06 p.m.