Description Usage Arguments Value Examples
Subset codonTable
object.
1 2 3 4 5 6 7 8 |
x |
A |
i |
indices specifying elements to extract or replace. Indices are
For When indexing arrays by An index value of |
subset |
A logical or character vector indicating which elements of
|
... |
further arguments to be passed to or from other methods. |
subsets of codonTable
object, keeping in each slot
only those elements that meet the criteria in subset
, if specified.
1 2 3 4 5 6 7 8 9 10 11 12 13 | # create codonTable
mat <- matrix(sample(1:10, 610, replace = TRUE), nrow = 10)
cT <- codonTable(mat) # produces informative warning
cT
cT[1]
cT[[1]]
subset(cT, c(rep(c(TRUE,FALSE), 5))) # subset odd sequences
cT <- setKO(cT, rep(c("K00001", "K00002"), 5))
subset(cT, "K00001")
cT <- setCOG(cT, rep(c("COG0001", "COG0002"), 5))
subset(cT, "COG0001")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.