mll.custom | R Documentation |
This function will allow you to define custom multilocus lineages for your data set.
mll.custom(x, set = TRUE, value)
mll.custom(x, set = TRUE) <- value
mll.levels(x, set = TRUE, value)
mll.levels(x, set = TRUE) <- value
x |
a genclone or snpclone object. |
set |
logical. If |
value |
a vector that defines the multilocus lineages for your data. This can be a vector of ANYTHING that can be turned into a factor. |
an object of the same type as x
Zhian N. Kamvar
mll
mlg.table
data(partial_clone)
pc <- as.genclone(partial_clone)
mll.custom(pc) <- LETTERS[mll(pc)]
mll(pc)
# Let's say we had a mistake and the A mlg was actually B.
mll.levels(pc)[mll.levels(pc) == "A"] <- "B"
mll(pc)
# Set the MLL back to the original definition.
mll(pc) <- "original"
mll(pc)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.