Giter Site home page Giter Site logo

trellixvulnteam / neo4j-ipycytoscape_mlt7 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from sbl-sdsc/neo4j-ipycytoscape

0.0 0.0 0.0 57 KB

Demo of Neo4j graph visualization with the ipycytoscape Jupyter Lab extension

License: MIT License

Shell 2.23% Python 12.35% Jupyter Notebook 85.42%

neo4j-ipycytoscape_mlt7's Introduction

neo4j-ipycytoscape

This repo demonstrates how to use the ipycytoscape widget to visualize a Neo4j subgraph with cytoscape.js in JupyterLab and the Jupyter notebook.

Notebook Description
Neo4j_Example1 Creates a small Neo4j graph locally and demonstrates how to display a Neo4j subgraph
Neo4j_Example2 Accesses the COVID-19-Net Knowledge Graph server and demonstrates how to display a Neo4j subgraph

Run Jupyter Lab locally

Follow the steps below to setup and run the example notebooks on Mac, Linux, or Windows.


Prerequisites: Miniconda3 (light-weight, preferred) or Anaconda3 and Mamba

  • Install Miniconda3
  • Update an existing miniconda3 installation: conda update conda
  • Install Mamba: conda install mamba -n base -c conda-forge
  • Install Git (if not installed): conda install git -n base -c anaconda

1. Clone this Git repository

git clone https://github.com/sbl-sdsc/neo4j-ipycytoscape.git
cd neo4j-ipycytoscape

2. Create a Conda environment

The file environment.yml specifies the Python version and all packages required by the tutorial.

mamba env create -f environment.yml

Activate the conda environment

conda activate neo4j-ipycytoscape

3. Launch Jupyter Lab

jupyter lab

Navigate to the notebooks directory to run the example Jupyter Notebooks.

4. Deactivate the Conda environment

When you are finished, deactivate the conda environment or close the terminal window.

conda deactivate

To remove the Conda environment, run conda env remove -n neo4j-ipycytoscape


Run Jupyter Lab in your web browser using Pangeo Binder

NOTE: Authentication is required to launch binder! Sign into GitHub from your browser, then click on the launch binder badge below to launch Jupyter Lab.

Binder

Pangeo Binder is unsupported and may not always be available or slow. Launching Jupyter Lab may take a few minutes.

Run Jupyter Lab on SDSC Expanse


Prerequisites:


  1. Log into the Expanse Portal with your XSEDE credentials.

  2. Open a Terminal Window ("Shell Access") through the Expanse Portal

  3. Clone the Git repository neo4j-ipycytoscape

git clone https://github.com/sbl-sdsc/neo4j-ipycytoscape.git
  1. Launch Jupyter Lab using the Galyleo

    Fill in the your project account number in the command below.

    This script will generate a URL for your Jupyter Lab session.

galyleo launch --account <account_number> --partition shared --cpus 4 --memory 8 --time-limit 00:30:00 --conda-env neo4j-ipycytoscape --conda-yml "${HOME}/neo4j-ipycytoscape/environment.yml" --mamba
  1. Open a new tab in your web browser and paste the Jupyter Lab URL.

You should see the Satellite Reserver Proxy Servive page launch in your browser.

Wait until Jupyter Lab launches. This may take several minutes.
  1. Run the example notebooks

    Navigate to the notebooks directory to run the example Jupyter Notebooks.

  2. Shutdown Jupyter Lab

    From the file menu select Shutdown to terminate the process.

If you do not shutdown Jupyter Lab, the process will continue running and use up allocated resources.

Citation

Peter W. Rose, David Valentine, Ilya Zaslavsky, COVID-19-Net: Integrating Health, Pathogen and Environmental Data into a Knowledge Graph for Case Tracking, Analysis, and Forecasting. Available online: https://github.com/covid-19-net/covid-19-community (2020).

Funding

The Neo4j graph visualization for ipycytoscape is in part supported by the National Science Foundation under Award Numbers:

NSF Convergence Accelerator Phase I (RAISE): Knowledge Open Network Queries for Research (KONQUER) (1937136)

NSF RAPID: COVID-19-Net: Integrating Health, Pathogen and Environmental Data into a Knowledge Graph for Case Tracking, Analysis, and Forecasting (2028411)

neo4j-ipycytoscape_mlt7's People

Contributors

pwrose avatar marimeireles avatar trellixvulnteam avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.