do.edges.from.HPO.obo: Parse an HPO OBO file

Description Usage Arguments Details Value Examples

View source: R/IO.fun.R

Description

Read an HPO OBO file (HPO) and write the edges of the DAG on a plain text file. The format of the file is a sequence of rows and each row corresponds to an edge represented through a pair of vertices separated by blanks.

Usage

1
do.edges.from.HPO.obo(obofile = "hp.obo", file = "edge.file")

Arguments

obofile

an HPO OBO file. The extension of the obofile can be or plain format (".txt") or compressed (".gz").

file

name of the file of the edges to be written. The extension of the file can be or plain format (".txt") or compressed (".gz").

Details

a faster and more flexible parser to handle obo file can be found here.

Value

a text file representing the edges in the format: source destination (i.e. one row for each edge).

Examples

1
2
3
4
## Not run: 
hpobo <- "http://purl.obolibrary.org/obo/hp.obo";
do.edges.from.HPO.obo(obofile=hpobo, file="hp.edge");
## End(Not run)

gecko515/HEMDAG documentation built on Oct. 18, 2019, 6:34 a.m.