Build a Pathway object.

Description

This function creates a new object of type Pathway given a data frame describing its edges.

Usage

1
buildPathway(id, title, edges, species, database, identifier, timestamp=NULL)

Arguments

id

the pathway identifier.

title

the title of the pathway.

edges

a data.frame of pathway edges.

Must have the following columns: src, dest, direction and type.

Direction must be one of the two strings: "directed" or "undirected".

species

the species the pathway belongs to.

database

the name of the database the pathway derives from.

identifier

the type of identifier used to label the pathway nodes.

timestamp

when the pathway was annotated, by default the time buildPathway is called.

See Also

Pathway-class

Examples

1
2
edges <- data.frame(src="672", dest="7157", direction="undirected", type="binding")
pathway <- buildPathway("#1", "example", edges, "hsapiens", "database", "ENTREZID")