Database Models

PathMe-Viewer database models.

PathMe models.

class pathme_viewer.models.Pathway(**kwargs)[source]

Represents a pathway network in BEL format harmonized by ComPath

A simple constructor that allows initialization from kwargs.

Sets attributes on the constructed instance using the names and values in kwargs.

Only keys that are present as attributes of the instance’s class are allowed. These could be, for example, any mapped columns or relationships.

name

Pathway name

resource_name

Database of origin

pathway_id

Pathway identifier in database of origin

number_of_nodes

Number of nodes

number_of_edges

Number of edges

version

Version of the BEL file

authors

Authors of the underlying BEL file

contact

Contact email from the underlying pathway

description

Descriptive text from the pathway

pybel_version

Version of PyBEL

blob

A pickled version of this pathway

property display_name

Return pathway name.

property pathway_tuple

Return pathway name.

as_bel()[source]

Get this network and loads it into a BELGraph.

Return type

pybel.BELGraph