Learn R Programming

HEMDAG (version 2.6.1)

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

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

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").

Value

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

Details

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

Examples

Run this code
# NOT RUN {
hpobo <- "http://purl.obolibrary.org/obo/hp.obo";
do.edges.from.HPO.obo(obofile=hpobo, file="hp.edge");
# }

Run the code above in your browser using DataLab