cogs: COG classes and colors

Description Usage Format Source Examples

Description

COG function classes and color scheme

Usage

1
data("cogs")

Format

A data frame with 26 observations on the following 3 variables.

code

code

name

function

clrs

color

Source

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

Examples

 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)

cstubben/trinotateR documentation built on May 14, 2019, 12:26 p.m.