Skip to content

dwgoon/nezzle

Repository files navigation

Drawing

Introduction

  • Nezzle is an interactive and programmable network visualization software.
  • Nezzle was initially developed to visualize biological networks such as signaling networks.
  • Nezzle repesents Net + Puzzle, because adjusting nodes and edges of a network for visualization is similar to doing a puzzle.
  • Find helpful tutorials in Nezzle's YouTube channel 📺

Features

  • Lightweight, programmable, detailed visualization of complex networks for high quality figures.
  • Highly customizable visualization of networks with user-defined source codes.
  • Easy and efficient plug-in development enabled by powerful Python ecosystem.
  • Manual curation of the positions of nodes and edges by adjusting the graphics in GUI.
  • Interactive programming to modify both data and graphics of networks in the GUI console.
  • The GUI depends on Python bindings for Qt such as PyQt (abstracted by QtPy in this project).

Installation

🐍 Anaconda is recommended to use and develop Nezzle.

⚠️ Apple M1 users are encouraged to use Rosetta Terminal.

Anaconda virtual environment

After installing anaconda, create a conda virtual environment for Nezzle. In the following command, you can change the Python version (e.g.,python=3.7 or python=3.9).

conda create -n nezzle python=3.8

Now, we can activate our virtual environment for Nezzle as follows.

conda activate nezzle

Install pip for installing the dependencies.

conda install pip

Dependency

Check packages and versions in requirements or requirements for conda.

We can install all the dependencies using pip with -r option.

pip install -r requirements.txt

We can also install the dependencies using conda with --file option.

conda install -y --file requirements_conda.txt

Install from PyPI

The simplest way to install Nezzle is using pip.

pip install nezzle

However, the installed package with pip do not contain the examples. To explore the examples, install from this GitHub repository.

Install from GitHub repository

First, clone the recent version of this repository.

git clone https://github.com/dwgoon/nezzle.git nezzle

Now, we need to install Nezzle as a module.

cd nezzle
pip install -r requirements.txt
python setup.py install

Execution

In a terminal, we can just type "nezzle" that is in the "Scripts" sub-directory of a Python environment.

nezzle

Alternatively, we can execute the program in the local repository as follows.

python nezzle.py

Examples

Drawing Drawing
Drawing Drawing
Drawing

Original network before messing up the layout

Drawing
Drawing

Principal component view of Iris dataset

Drawing

Adjusting network graphics through GUI

Drawing

Adjusting network graphics by programming with REPL

Drawing

Creating network graphics by running a code

Drawing


💻⌨️🖱️ More examples

Citation

D. Lee
Nezzle: an interactive and programmable visualization of biological networks in Python
Bioinformatics 38(12) 3310–3311 (2022).

About

Network Visualization using both GUI and Programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published