popnames | R Documentation |
This function shows the population names slot from a
DNAStringSet
or an AAStringSet
metadata
information.
popnames(seq)
seq |
|
population names from metadata
Kristian K Ullrich
addpop2string
## load example sequence data
data(iupac, package="MSA2dist")
iupac.aa <- iupac |> cds2aa(shorten = TRUE)
## create poplist
poplist <- list(FRA = grep("Mmd.FRA", names(iupac)),
GER = grep("Mmd.GER", names(iupac)),
IRA = grep("Mmd.IRA", names(iupac)),
AFG = grep("Mmm.AFG", names(iupac)))
iupac.aa <- iupac.aa |> addpop2string(poplist)
popnames(iupac.aa)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.