calculateConc: Target copies estimation

Description Usage Arguments Value Examples

View source: R/calculateConc.R

Description

Mean target copies per partition (lambda) is derived using Poisson distribution as lambda = -ln(nneg / ntot). Target copies in sample is then calculated as conc = lambda * volSamp/(volDrp * 1000).

Usage

1
calculateConc(nneg, ntotal, volSamp, volDrp)

Arguments

nneg

numeric, negative droplet count

ntotal

numeric, total droplet count

volSamp

numeric, sample volume in microliter

volDrp

numeric, droplet (or partition) volume in nanoliter

Value

Returns a list with 2 named items lambda and conc

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
estimates <- calculateConc(5000, 20000, volSamp = 20, volDrp = 0.85)
estimates
#    Output:
#       $lambda
#          lambda     lower      upper
#       1.386294   1.362289   1.410299
#
#       $conc
#           conc      lower      upper
#       32618.69   32053.87   33183.51

popPCR documentation built on March 10, 2021, 1:08 a.m.