read.obo: Read gene ontology obo 1.2 file

Description Usage Arguments Value See Also Examples

Description

Read gene ontology obo 1.2 file

Usage

1
read.obo(filename, colClasses = NULL)

Arguments

filename

Path to obo file.

colClasses

Character vector as used by read.table.

Value

Returns a data frame with one go term per row and the term-specific values of selected obo tags as columns.

See Also

read.table

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
library(genFun)

## Not run: 
cat("\
[Term]
id: GO:0000000
name: foobar
alt_id: GO:7654321
is_a: GO:1111111
is_a: GO:2222222
def: \"An imaginary go term.\"

[Term]
id: GO:3333333
name: bazqux
is_a: GO:4444444
def: \"Another imaginary go term.\"
", file = "foo.obo")
d <- read.obo("foo.obo")

## End(Not run)

cbaumbach/genFun documentation built on May 13, 2019, 1:47 p.m.