g.class | R Documentation |
define possible allele switching classes
g.class(x, y)
x |
vector of allele codes from dataset X |
y |
vector of allele codes from dataset Y, same length as x |
character vector of allele switching classes
Chris Wallace
alleles.X <- c(snp1="A/G",snp2="A/G",snp3="A/G",snp4="A/G",snp5="A/T",snp6="A/T")
alleles.Y <- c(snp1="A/G",snp2="G/A",snp3="T/C",snp4="C/T",snp5="A/T",snp6="T/A")
classes <- g.class(x=alleles.X,y=alleles.Y)
cbind(alleles.X,alleles.Y,classes)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.