connect: Connecting to NEO4J Graph Database.

Description Usage Arguments Examples

View source: R/setCypher.R

Description

'connect' sets params such as the REST API URL, port, db username and password, In the newer versions of neo4j default requires username and password. If this is the first time connecting to a new neo4jDB, please index the nodes else the queries will be very slow.

Usage

1
2
connect(url = "127.0.0.1", port = 7474, username = "neo4j",
  password = "neo4j", test = TRUE)

Arguments

url

url to running instance of neo4j

port

port

username

username

password

password

test

run test to show connection success or failure

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
## Not run: 
connect(url="127.0.0.1", port=7474, username="neo4j", password="neo4j")

If this is your first time connecting to omics DB please index the nodes, using `index`
else query speed will be very slow.

Sending test query: Searching for K00001
#A successful connection will give the following
Connection Successful

Found these indices:
  property_keys   label
1        contig contigs
2           bin contigs
3           cpd     cpd
4            ko      ko
5         taxid   Taxon

## End(Not run)

MetamapsDB documentation built on May 1, 2019, 9:23 p.m.