Description Usage Arguments Value Author(s) Examples
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.
1 |
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
1 2 3 4 5 6 7 8 9 10 11 12 | 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.