Description Usage Arguments Details Value Examples
Test heterozygosity at each locus
1 | Heterozygous(x,sep)
|
x |
a dataset of genotypes 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). |
This function test the heterozygosity of each individuals at each locus.Output a table and Usually followed by write.csv(as.data.frame(y),file = "~/*.csv") to export the results.
a dataframe of heterozygosity.0 is homozygous;1 is heterozygous. Each row denotes each individual; Each column denotes each locus.
1 2 3 | x <- data.frame(STR1=c("12|12","13|14","13|13","14|15"),
SNP1=c("A|A","T|T","A|T","A|T"))
Heterozygous(x,"\\|")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.