Download test data
Download the test data from http://bioinfo.hpc.cam.ac.uk/downloads/bionetdb/bionetdb.dataset.tar.gz and extract the content of the archive executing:
Import genomic data
Before you query BioNetDB database, you have to populate it. Neo4j provides a mechanism to do batch imports of large amounts of data into a Neo4j database from CSV files. The importing mechanism has been integrated in the BioNetDB command line (bionetdb.sh import) that allows users, first, prepare your data by creating the Neo4j CSV files, and then, these files are loaded into the database.
Creating the Neo4j CSV files
In order to create the Neo4j CSV files you have to use the BioNetDB command line: bionetdb.sh import --create-csv. The following command line creates the Neo4j CSV files for the previously downloaded dataset.
The Neo4j CSV files are located in the output folder:
Load Neo4j CSV files
Once created the CSV files, they have to be loaded into the database by using the BioNetDB command line: bionetdb.sh import. This command line can only be used to load data into a previously unused database, so if you are using the default Neo4j database (located at $NEO4J_HOME/data/databases/graph.db), be sure that it is empty.
According to our example:
Accesing BioNetDB from Neo4j browser interface
You can access to your BioNetDB database from the Neo4j browser interface. Open your regular internet browser and type http://localhost:7474:
Below you have some Cypher queries:
Table of Contents:
- No labels