asymmetry: calculates karyotype asymmetry A and A2.
asymmetryA2: calculates karyotype asymmetry A2
This functions read a data.frame with columns:
shortArmSize
and longArmSize
If several species present, use
column OTU
.
It returns a list with the A and A2 indices
$$A = \frac{\sum_{i=1}^{n} \frac{longArm_{i} - shortArm_{i}}{CL_{i}} }{n} $$
A: Watanabe et al. (1999) asymmetry of karyotype ranging from 0 (symmetric) to 1 (asymmetric) $$A_{2} = \frac{sCL}{xCL}$$
(s = std dev, CL = chr. length, x = mean) (Romero-Zarco 1986)
related to: $$CV_{CL} = A_{2} * 100$$
(CV = coeff. var.) (Paszko 2006)
asymmetry(dfChrSize, asDf = FALSE)
asymmetryA2(dfChrSize)
name of data.frame
boolean, return d.f. instead of list
list
Watanabe K, Yahara T, Denda T, Kosuge K. 1999. Chromosomal evolution in the genus Brachyscome (Asteraceae, Astereae): Statistical tests regarding correlation between changes in karyotype and habit using phylogenetic information. Journal of Plant Research 112: 145-161. 10.1007/PL00013869
A2: Romero-Zarco. 1986. A New Method for Estimating Karyotype Asymmetry. Taxon Vol. 35, No. 3 pp. 526-530
Paszko B. 2006. A critical review and a new proposal of karyotype asymmetry indices. Plant Syst Evol 258:39-48.
asymmetry(dfOfChrSize)
#> Calculating karyotype indexes A and A2
#> $A
#> 1
#> "0.20"
#>
#> $A2
#> 1
#> "0.43"
#>
myAlist <- asymmetry(bigdfOfChrSize)
#> Calculating karyotype indexes A and A2
as.data.frame(myAlist)
#> A A2
#> Species 1 0.20 0.21
#> Species 2 0.19 0.37
#> Species 3 0.11 0.44
#> Species 4 0.15 0.29
#> Species 5 0.19 0.37
#> Species 6 0.11 0.44
#> Species 7 0.02 0.01
#> Species 8 0.81 0.01
#> Species 9 0.74 0.64
asymmetryA2(dfOfChrSize)
#> Calculating karyotype index A2
#> $A2
#> 1
#> "0.43"
#>
as.data.frame(asymmetryA2(bigdfOfChrSize))
#> Calculating karyotype index A2
#> A2
#> Species 1 0.21
#> Species 2 0.37
#> Species 3 0.44
#> Species 4 0.29
#> Species 5 0.37
#> Species 6 0.44
#> Species 7 0.01
#> Species 8 0.01
#> Species 9 0.64
asymmetryA2(dfChrSizeHolo)
#> Calculating karyotype index A2
#> $A2
#> 1
#> "0.37"
#>
as.data.frame(asymmetryA2(bigdfChrSizeHolo))
#> Calculating karyotype index A2
#> A2
#> species one 0.03
#> species two 0.37
#> species three 0.72