Description Usage Arguments Details Value Author(s) See Also Examples
query networks of a relationship pattern that contains the given from
and/or to
nodes using grinn id (gid), see details.
1 | fetchHetNetworkByGID(from, to, pattern, returnas)
|
from |
a character vector of start nodes e.g. from = c('id1', 'id2'). Given |
to |
a character vector of end nodes e.g. to = c('id1', 'id2'). Given |
pattern |
a string specifying the relationship pattern. Providing a node as A relationship type is indicated by a pair of square brackets between the arrow e.g. |
returnas |
a string specifying output type. It can be one of dataframe, list, json. Default is dataframe. |
The function is used to query networks containing one or more relationship types (heterogeneous network). Use fetchNetworkByGID
to query networks containing one relationship type.
The database uses two id systems. The neo4j id is a numeric, internal id automatically generated by the database system. The grinn id (gid) is an id system of Grinn database that uses main ids of standard resources i.e. ENSEMBL for genes (e.g.ENSG00000139618), UniProt for proteins (e.g.P0C9J6), PubChem CID for compounds (e.g.5793), KEGG for pathways (e.g.hsa00010).
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.
Kwanjeera W kwanich@ucdavis.edu
For database structure see http://grinnhomepage
1 2 3 4 5 | # Query the network of (from:Compound)-BIOCHEMICAL_REACTION->(to:Compound)<-ANNOTATION-(:Pathway)
#from = list('1060','284','760') #By default, PubChem ids can be used as grinn ids for compounds
#to = list('222656','107689','5950','71080') #By default, PubChem ids can be used as grinn ids for compounds
#pattern = "(from:Compound)-[:BIOCHEMICAL_REACTION]->(to:Compound)<-[:ANNOTATION]-(:Pathway)"
#result = fetchHetNetworkByGID(from=from, to=to, pattern=pattern)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.