Description Usage Arguments Details Value References Examples
Calculate Genotype Frequency###
1 | GenotypeFreq(x,sep,expect=TRUE)
|
x |
a dataframe of genotype data with rownames of sample ID and column names of markers. |
sep |
allele separator in the imported genotype data. Note: when using the special character like "|", remember to protect it as "\|"(default). |
expect |
a logic variable. If expect is true, the function will calculate the expected genotype probabilities. If false, calculate the observed genotype frequencies. |
This function calculates the observed or expected genotype frequency from dataset and allele frequency.#####
a dataframe of genotype frequencies. Each row denotes each genotype; each column denotes each loci. The order of markers follows x; the genotypes are ordered from homozygous to heterozygous.
Chakraborty, R., Srinivasan, M. R., & Daiger, S. P. (1993, ISSN:0002-9297).
1 2 3 4 | require(mixIndependR)
x <- data.frame(SNP1=c("A|A","T|T","A|T","A|T"),
STR1=c("12|12","13|14","13|13","14|15"))
GenotypeFreq(x,"\\|",expect=TRUE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.