All Projects → plotly → Dash Cytoscape

plotly / Dash Cytoscape

Licence: mit
Interactive network visualization in Python and Dash, powered by Cytoscape.js

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Dash Cytoscape

Dash
Analytical Web Apps for Python, R, Julia, and Jupyter. No JavaScript Required.
Stars: ✭ 15,592 (+4945.95%)
Mutual labels:  data-science, bioinformatics, plotly-dash, dash, plotly
Dash.jl
Dash for Julia - A Julia interface to the Dash ecosystem for creating analytic web applications in Julia. No JavaScript required.
Stars: ✭ 248 (-19.74%)
Mutual labels:  data-science, bioinformatics, plotly-dash, dash, plotly
Dash Table
A First-Class Interactive DataTable for Dash
Stars: ✭ 382 (+23.62%)
Mutual labels:  data-science, plotly-dash, dash, plotly
Dashr
Dash for R - An R interface to the Dash ecosystem for creating analytic web applications
Stars: ✭ 337 (+9.06%)
Mutual labels:  data-science, plotly-dash, dash, plotly
Dash Docs
📖 The Official Dash Userguide & Documentation
Stars: ✭ 338 (+9.39%)
Mutual labels:  data-science, plotly-dash, dash, plotly
Dash Sample Apps
Open-source demos hosted on Dash Gallery
Stars: ✭ 2,090 (+576.38%)
Mutual labels:  plotly-dash, dash, plotly
dash-redis-celery-periodic-updates
Demo apps now maintained in https://github.com/plotly/dash-enterprise-docs
Stars: ✭ 47 (-84.79%)
Mutual labels:  plotly, dash, plotly-dash
dash-admin
CLI tool for initiating dash boilerplate
Stars: ✭ 22 (-92.88%)
Mutual labels:  plotly, dash, plotly-dash
Slapdash
Boilerplate for bootstrapping scalable multi-page Dash applications
Stars: ✭ 225 (-27.18%)
Mutual labels:  plotly-dash, dash, plotly
dash-flexbox-grid
Wrapper around react-flexbox-grid for Plotly Dash
Stars: ✭ 19 (-93.85%)
Mutual labels:  plotly, dash, plotly-dash
Dash Oil And Gas Demo
Dash Demo App - New York Oil and Gas
Stars: ✭ 156 (-49.51%)
Mutual labels:  data-science, dash, plotly
Fitly
Self hosted web analytics for endurance athletes
Stars: ✭ 65 (-78.96%)
Mutual labels:  plotly-dash, dash, plotly
Hexapod Robot Simulator
A hexapod robot simulator built from first principles
Stars: ✭ 577 (+86.73%)
Mutual labels:  plotly-dash, dash, plotly
Crypto Whale Watching App
Python Dash app that tracks whale activity in cryptocurrency markets.
Stars: ✭ 389 (+25.89%)
Mutual labels:  plotly-dash, dash, plotly
2019-nCoV-dash
新型冠状病毒(2019-nCoV)肺炎(COVID-19)疫情展示
Stars: ✭ 13 (-95.79%)
Mutual labels:  plotly, dash, plotly-dash
Dash Stock Tickers Demo App
Dash Demo App - Stock Tickers
Stars: ✭ 108 (-65.05%)
Mutual labels:  data-science, dash, plotly
Deepgraph
Analyze Data with Pandas-based Networks. Documentation:
Stars: ✭ 232 (-24.92%)
Mutual labels:  graph-theory, data-science, network-visualization
dash-mantine-components
Plotly Dash components based on Mantine React Components
Stars: ✭ 263 (-14.89%)
Mutual labels:  plotly, dash, plotly-dash
dash-hello-world
The simplest dash app
Stars: ✭ 23 (-92.56%)
Mutual labels:  plotly, dash
bifrost
Connect gpus with your eyes.
Stars: ✭ 23 (-92.56%)
Mutual labels:  plotly, dash

Dash Cytoscape GitHub license PyPi Version

CircleCI

A Dash component library for creating interactive and customizable networks in Python, wrapped around Cytoscape.js.

usage-stylesheet-demo

Getting Started in Python

Prerequisites

Make sure that dash and its dependent libraries are correctly installed:

pip install dash

If you want to install the latest versions, check out the Dash docs on installation.

Usage

Install the library using pip:

pip install dash-cytoscape

Create the following example inside an app.py file:

import dash
import dash_cytoscape as cyto
import dash_html_components as html

app = dash.Dash(__name__)
app.layout = html.Div([
    cyto.Cytoscape(
        id='cytoscape',
        elements=[
            {'data': {'id': 'one', 'label': 'Node 1'}, 'position': {'x': 50, 'y': 50}},
            {'data': {'id': 'two', 'label': 'Node 2'}, 'position': {'x': 200, 'y': 200}},
            {'data': {'source': 'one', 'target': 'two','label': 'Node 1 to 2'}}
        ],
        layout={'name': 'preset'}
    )
])

if __name__ == '__main__':
    app.run_server(debug=True)

basic-usage

External layouts

You can also add external layouts. Use the cyto.load_extra_layouts() function to get started:

import dash
import dash_cytoscape as cyto
import dash_html_components as html

cyto.load_extra_layouts()

app = dash.Dash(__name__)
app.layout = html.Div([
    cyto.Cytoscape(...)
])

Calling cyto.load_extra_layouts() also enables generating SVG images.

Getting Started in R

Prerequisites

install.packages(c("devtools", "dash"))

Usage

Install the library using devtools:

devtools::install_github("plotly/dash-cytoscape")

Create the following example inside an app.R file:

library(dash)
library(dashHtmlComponents)
library(dashCytoscape)

app <- Dash$new()

app$layout(
  htmlDiv(
    list(
      cytoCytoscape(
        id = 'cytoscape-two-nodes',
        layout = list('name' = 'preset'),
        style = list('width' = '100%', 'height' = '400px'),
        elements = list(
          list('data' = list('id' = 'one', 'label' = 'Node 1'), 'position' = list('x' = 75, 'y' = 75)),
          list('data' = list('id' = 'two', 'label' = 'Node 2'), 'position' = list('x' = 200, 'y' = 200)),
          list('data' = list('source' = 'one', 'target' = 'two'))
        )
      )
    )
  )
)

app$run_server()

Documentation

The Dash Cytoscape User Guide contains everything you need to know about the library. It contains useful examples, functioning code, and is fully interactive. You can also use the component reference for a complete and concise specification of the API.

To learn more about the core Dash components and how to use callbacks, view the Dash documentation.

For supplementary information about the underlying Javascript API, view the Cytoscape.js documentation.

Contributing

Make sure that you have read and understood our code of conduct, then head over to CONTRIBUTING to get started.

Testing

Instructions on how to run tests are given in CONTRIBUTING.md.

License

Dash, Cytoscape.js and Dash Cytoscape are licensed under MIT. Please view LICENSE for more details.

Contact and Support

See https://plotly.com/dash/support for ways to get in touch.

Acknowledgments

Huge thanks to the Cytoscape Consortium and the Cytoscape.js team for their contribution in making such a complete API for creating interactive networks. This library would not have been possible without their massive work!

The Pull Request and Issue Templates were inspired from the scikit-learn project.

Gallery

Dynamically expand elements

Code | Demo View usage-elements on Github

Interactively update stylesheet

Code | Demo View usage-stylesheet on Github

Automatically generate interactive phylogeny trees

Code | Demo View usage-phylogeny on Github

Create your own stylesheet

Code | Demo View usage-advanced on Github

Use event callbacks

Code | Demo View usage-events on Github

Use external layouts

Code View usage-elements-extra on Github

Use export graph as image

Code View usage-image-export on Github

Make graph responsive

Code View usage-responsive-graph on Github

For an extended gallery, visit the demos' readme.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].