Description Usage Arguments Value Author(s) Examples
Return genotype data for specified loci in an object of class
'data.frame'
, optionally restricted to samples from specific
populations.
1 2 |
x |
An annotated data frame of class |
locus |
The names of one or more loci found in |
pop |
If supplied, return only data for samples from the specified populations |
... |
Additional arguments, currently ignored |
An object of class 'data.frame'
containing genotype data
from x
for loci specified in code
, optionally restricted
to samples from populations specified in pop
.
Douglas G. Scofield
1 2 3 4 5 6 7 | data(Qagr_pericarp_genotypes)
nm <- attr(Qagr_pericarp_genotypes, "locus.names")
# get the first locus
loc1 <- getLocus(Qagr_pericarp_genotypes, nm[1])
# get the second locus of the second population
po <- attr(Qagr_pericarp_genotypes, "pop.labels")
loc2.pop2 <- getLocus(Qagr_pericarp_genotypes, nm[2], po[2])
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.