Skip to content

Commit 56a2e54

Browse files
authored
Merge pull request #30 from DeepPhe/v0.2.0
V0.2.0
2 parents 56252f3 + 6f00223 commit 56a2e54

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

README.md

+20-14
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ The DeepPhe NLP extracts information from the patient cancer reports and stores
66

77
- [Installation](#installation)
88
* [Configuration](#configuration)
9-
* [Starting the Neo4J Database Server](#starting-the-neo4j-database-server)
10-
* [Launching The Viz Server](#launching-the-viz-server)
9+
* [Starting The Neo4J Database Server](#starting-the-neo4j-database-server)
10+
* [Launching The DeepPhe-Viz HTTP Server](#launching-the-deepphe-viz-http-server)
1111
- [Usage And Workflow Instructions](#usage-and-workflow-instructions)
1212
* [Cohort Analysis](#cohort-analysis)
1313
* [Individual Patient Profile](#individual-patient-profile)
@@ -17,10 +17,10 @@ The DeepPhe NLP extracts information from the patient cancer reports and stores
1717

1818
You must have the following tools installed:
1919

20-
- [Nodejs 8.12.0 (includes npm 6.4.1)](https://nodejs.org/en/download/) - which the DeepPhe-Viz tool is built upon
20+
- [Nodejs 10.13.0 (includes npm 6.4.1) or the latest LTS version](https://nodejs.org/en/download/) - which the DeepPhe-Viz tool is built upon
2121
- [Neo4j 3.2.x Server](https://neo4j.com/download-center/#releases) - is used to store the graph output from DeepPhe NLP
2222

23-
Currently, we have been successfully using the [nvm](https://github.com/creationix/nvm) tool to configure and manage our NodeJS environment; nvm enables a user to associate a paritcular NodeJS and NPM version with their Unix shell, allowing for each switching between NodeJS versions across different projects.
23+
if you need to manage multiple versions of NodeJS, we have been successfully using the [nvm](https://github.com/creationix/nvm) tool to configure and manage our NodeJS environment; nvm enables a user to associate a paritcular NodeJS and NPM version with their Unix shell, allowing for each switching between NodeJS versions across different projects.
2424

2525
For neo4j server installation, we have tested the "Neo4j Community Edition 3.2.13" with this DeepPhe release, and you can download it from the [Neo4j Releases page](https://neo4j.com/download-center/#releases) by choosing the correct download for your platform. Then follow their [installation instructions](https://neo4j.com/docs/operations-manual/current/installation/) to configure and start the server.
2626

@@ -37,41 +37,47 @@ npm install
3737
There are two configuration files under the `configs/` directory:
3838

3939
- `neo4j.josn` is where you specify the neo4j database connection username and password
40-
- `server.json` is where you can define the Viz HTTP server host and port number
40+
- `server.json` is where you can define the DeepPhe-Viz HTTP server host and port number
4141

42-
### Starting the Neo4J Database Server
42+
### Starting The Neo4J Database Server
4343

44-
After building the [DeepPhe system](https://github.com/DeepPhe/DeepPhe-Release/blob/master/README.md), you will have a `deepphe.db` folder generated in the output folder named `output_graph`. Put the generated `deepphe.db` under your `NEO4J_ROOT/data/databases/` and configure the `NEO4J_ROOT/conf/neo4j.conf` to point to this database.
44+
NOTE: the top level directory is referred to as `NEO4J_HOME`, where you see the `bin` and `plugins`.
45+
46+
After building the [DeepPhe system](https://github.com/DeepPhe/DeepPhe-Release/blob/master/README.md), you will have a `deepphe.db` folder generated in the output folder named `output_graph`. Put the generated `deepphe.db` under your `<NEO4J_HOME>/data/databases/` and configure the `<NEO4J_HOME>/conf/neo4j.conf` to point to this database.
4547

4648
````
4749
dbms.active_database=deepphe.db
4850
````
4951

50-
You'll also have a file named `deepphe-viz-0.2.0-plugin.zip` in the directory `deepphe-viz-neo4j/target`. This compressed file contains a directory named `plugins`. The contents of the `plugins` directory must be copied to your Neo4j 3.2.x plugins directory. Neo4j 3.2.x uses these libraries in `NEO4J_ROOT/plugins` for the Viz tool to interact with the customized DeepPhe system database.
52+
You'll also have a file named `deepphe-viz-0.2.0-plugin.zip` in the directory `deepphe-viz-neo4j/target` after building the [DeepPhe system](https://github.com/DeepPhe/DeepPhe-Release/blob/master/README.md). This compressed file contains a directory named `plugins`. All the jar files of the `plugins` directory must be copied to `<NEO4J_HOME>/plugins` directory. The DeepPhe-Viz uses these libraries to interact with the customized DeepPhe system database.
53+
54+
To run Neo4j as a console application, use:
55+
`./<NEO4J_HOME>/bin/neo4j console`
5156

52-
Then go to the `NEO4J_ROOT/bin` and start the database server by using `./neo4j start` command.
57+
To run Neo4j in a background process, use:
58+
`./<NEO4J_HOME>/bin/neo4j start`
5359

54-
NOTE: we use `NEO4J_ROOT` to indicate the neo4j directory where you see the `bin` and `plugins`.
60+
Once you create a new password for the 'neo4j' user upon visiting the Neo4j Browser at http://localhost:7474 the first time, you'll have full access to the Neo4j database. The same username and password will also need to be configured in the DeepPhe-Viz configuration file: `configs/neo4j.json` so the DeepPhe-Viz can talk to the neo4j server.
5561

56-
### Launching The Viz Server
62+
### Launching The DeepPhe-Viz HTTP Server
5763

58-
Now you can start the node server with
64+
Now you can start the DeepPhe-Viz HTTP server with
5965

6066
````
6167
node server.js
6268
````
6369

6470
This will start the web server on port 8383 by default. You can go to http://localhost:8383/cohortAnalysis to see the result. We'll describe the usage and workflow later.
6571

66-
Note: you can type `lsof -i :8383` to see if port 8383 is being used.
72+
Note: you can type `lsof -i :8383` to see if port 8383 is being used. If you need to use a different port for running the DeepPhe-Viz HTTP server, specify the port number in the DeepPhe-Viz configuration file: `configs/server.json` then restart the DeepPhe-Viz HTTP server.
6773

6874
## Usage And Workflow Instructions
6975

7076
The Viz tool consists of two major components&mdash;cohort analysis and individual patient profiles. Please note that the DeepPhe NLP may extract multiple cancers of the same patient if present. Currently the Viz tool can render multi-cancer patient in the individual patient profile to show all the cancers and tumors summaries. However, the cohort analysis page doesn't take this into consideration at this point. We are working on a comprehensive solution to the multi-cancer cases.
7177

7278
### Cohort Analysis
7379

74-
When we first load the Viz tool, you'll see a cohort analysis page. The system queries Neo4j to get all the patients of all cancer stages, and the results are represented in a series of charts.
80+
When we first load the DeepPhe-Viz in the web browser, you'll see a cohort analysis page. The system queries Neo4j to get all the patients of all cancer stages, and the results are represented in a series of charts.
7581

7682
![Cohort Analysis](cohort_analysis.png "Cohort Analysis")
7783

0 commit comments

Comments
 (0)