formatNetworkOutput: Format network

Description Usage Arguments Value Note Author(s) See Also Examples

Description

format a network or graph output from the database to the data frame format.

Usage

1

Arguments

graph

list of paths containing network information to be formatted

Value

list of network information with the following components:

nodes:

id = node neo4j id

gid = node grinn id

nodename = node name

nodelabel = node type

nodexref = node cross references

edges:

source, target = node neo4j id

type = relationship type

datasource = relationship resource

properties = relationship properties

Return empty list if error or found nothing.

Note

maximum no. of paths returned = 30000 paths

Author(s)

Kwanjeera W kwanich@ucdavis.edu

See Also

fetchNetwork, fetchHetNetwork, fetchNetworkByGID, fetchHetNetworkByGID, http://neo4j.com/docs/stable/rest-api-transactional.html

Examples

1
2
3
#cypher = "MATCH ptw = (from:Compound)-[:BIOCHEMICAL_REACTION]->(:Compound) WHERE ID(from) = 0 RETURN DISTINCT ptw LIMIT 2"
#nw = curlRequest.TRANSACTION(cypher)
#result = formatNetworkOutput.default(nw)

kwanjeeraw/metabox documentation built on May 20, 2019, 7:07 p.m.