locus | R Documentation |
This function creates an object of type locus
, a fundamental
type in the gstudio package. Therea re several kinds of loci that
can be created.
locus(x, type = "codom", phased = FALSE)
x |
The data to be turned into a |
type |
An indication of what kind of data it is. By default this parameter is missing and this will cause the function to assume that every element of x is an allele in the genotype.
|
phased |
A flag indicating the the alleles should are of known gametic phase (default=FALSE). |
Either a single or vector of objects of type locus
.
Rodney J. Dyer rjdyer@vcu.edu
AA <- locus( c("A","A") )
AB <- locus( c("A","B") )
BB <- locus( c("B","B") )
AC <- locus( c("A","C") )
AD <- locus( c("A","D") )
BC <- locus( c("B","C") )
BD <- locus( c("B","D") )
CC <- locus( c("C","C") )
CD <- locus( c("C","D") )
DD <- locus( c("D","D") )
loci <- c(AA,AB,AC,AD,BB,BC,BD,CC,CD,DD)
loci
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.