Learn R Programming

eDNAfuns (version 0.1.0)

ng2nM: functions to translate mass into molarity and vice versa, given we are talking about double stranded DNA it requires two inputs, the mass (or molarity) and the length of the DNA fragment It works with the two most common concentrations used in Molecular Ecology labs ng/\(\mu\)l for mass nM for molarity

Description

functions to translate mass into molarity and vice versa, given we are talking about double stranded DNA it requires two inputs, the mass (or molarity) and the length of the DNA fragment It works with the two most common concentrations used in Molecular Ecology labs ng/\(\mu\)l for mass nM for molarity

Usage

ng2nM(ng, length_amplicon)

nM2ng(nM, length_amplicon)

Value

Numeric. The equivalent concentration in nmoles per litre

Numeric. The equivalent concentration in ng per \(\mu\)L

Arguments

ng

Numeric. the concentration in ng per \(\mu\)L

length_amplicon

Integer. The length of the DNA fragment in base pairs.

nM

Numeric. The concentration in nmoles per litre

Examples

Run this code

data("molarity.data")
ng2nM(ng=molarity.data$mass, length_amplicon = molarity.data$Amp_len)


data("molarity.data")
nM2ng(nM=molarity.data$Molarity, length_amplicon = molarity.data$Amp_len)


Run the code above in your browser using DataLab