View source: R/heteroplasmyShift.R
heteroplasmyShift | R Documentation |
A numerical transformation of the heteroplasmy samples in order to work with the
heteroplasmy shifts across diverse samples (e.g., due to time or different tissue samples). This
transformation is used for comparing a heteroplasmy observation h to a reference value
h0.
It corresponds to the formula:
\Delta
h =ln((h(h0 - 1))/(h0(h - 1)))
heteroplasmyShift(h, h0)
h |
The heteroplasmy observation. Can be either a single value or a vector of observations.
Every observation should be in |
h0 |
The reference heteroplasmy value. Should be in |
The Transformed heteroplasmy shift.
Kostas and Iain, us@example.com
readHeteroplasmyData
# size of the sample
n=50
#generate a random sample of size n from a normal distribution
data_ex=rnorm(n,0.5,0.1)
heteroplasmyShift(data_ex)
mouseData=readHeteroplasmyData("HB")
mouseData1 = mouseData[which(!is.na(mouseData[,1])),1]
heteroplasmyShift(mouseData1,nrep=10000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.