Description Usage Format Source Examples
COG function classes and color scheme
1 | data("cogs")
|
A data frame with 26 observations on the following 3 variables.
code
code
name
function
clrs
color
COG function names at ftp://ftp.ncbi.nih.gov/pub/COG/COG2014/data/fun2003-2014.tab and colors at ftp://ftp.ncbi.nih.gov/pub/COG/COG2014/static/lists/homeCOGs.html
1 2 3 4 5 6 7 8 9 10 11 | data(cogs)
## Not run:
## Code to create this table
cogs <- read.delim("ftp://ftp.ncbi.nih.gov/pub/COG/COG2014/data/fun2003-2014.tab", stringsAsFactors = FALSE, comment="")
names(cogs) <- c("code", "name")
library(XML)
doc <- htmlParse(readLines("ftp://ftp.ncbi.nih.gov/pub/COG/COG2014/static/lists/homeCOGs.html", n=44))
cogs$clrs <- xpathSApply(doc, "//table[@border='0']/tr/td", xmlGetAttr, "bgcolor")
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.