m_ratio: Approximate m-ratio

Description Usage Arguments

View source: R/m_ratio.R

Description

Calculate Garza-Williamson M ratio (bottleneck) statistic for microsatellite data. The function is based on mRatio() from the strataG package. However, instead of requiring the same repeat length for all alleles within a locus, it calculates the m-ratio by deviding the allele-range by the repeat lengths that is most common. Is is therefore an approximation but maximises the amount of information used for non-optimally scored microsatellite datasets.

Usage

1
m_ratio(gtypes_geno, rpt_size = 8:2)

Arguments

gtypes_geno

microsatellite genotypes formatted as gtypes object with strataG

rpt_size

The size of potential repetitive units in a microsatellite. Default is from 8 to 2.


mastoffel/sealABC documentation built on May 21, 2019, 12:43 p.m.