3.30.4 • Published 27 days ago

cytoscape v3.30.4

Weekly downloads
58,587
License
MIT
Repository
github
Last release
27 days ago

GitHub repo Ask a question with Phind News and tutorials License npm DOI npm installs Automated tests Extensions Cloudflare

Created at the University of Toronto and published in Oxford Bioinformatics (2016, 2023). Authored by: Max Franz, Christian Lopes, Dylan Fong, Mike Kucera, ..., Gary Bader

Cytoscape.js

Graph theory (network) library for visualisation and analysis : https://js.cytoscape.org

Description

Cytoscape.js is a fully featured graph theory library. Do you need to model and/or visualise relational data, like biological data or social networks? If so, Cytoscape.js is just what you need.

Cytoscape.js contains a graph theory model and an optional renderer to display interactive graphs. This library was designed to make it as easy as possible for programmers and scientists to use graph theory in their apps, whether it's for server-side analysis in a Node.js app or for a rich user interface.

You can get started with Cytoscape.js with one line:

var cy = cytoscape({ elements: myElements, container: myDiv });

Learn more about the features of Cytoscape.js by reading its documentation.

Example

The Tokyo railway stations network can be visualised with Cytoscape:

A live demo and source code are available for the Tokyo railway stations graph. More demos are available in the documentation.

Documentation

You can find the documentation and downloads on the project website.

Roadmap

Future versions of Cytoscape.js are planned in the milestones of the Github issue tracker. You can use the milestones to see what's currently planned for future releases.

Contributing to Cytoscape.js

Would you like to become a Cytoscape.js contributor? You can contribute in technical roles (e.g. features, testing) or non-technical roles (e.g. documentation, outreach), depending on your interests. Get in touch with us by posting a GitHub discussion.

For the mechanics of contributing a pull request, refer to CONTRIBUTING.md.

Feature releases are made monthly, while patch releases are made weekly. This allows for rapid releases of first- and third-party contributions.

Citation

To cite Cytoscape.js in a paper, please cite the Oxford Bioinformatics issue:

Cytoscape.js: a graph theory library for visualisation and analysis

Franz M, Lopes CT, Huck G, Dong Y, Sumer O, Bader GD

Bioinformatics (2016) 32 (2): 309-311 first published online September 28, 2015 doi:10.1093/bioinformatics/btv557 (PDF)

Build dependencies

Install node and npm. Run npm install before using npm run.

Build instructions

Run npm run <target> in the console. The main targets are:

Building:

  • build: do all builds of the library (umd, min, umd, esm)
  • build:min : do the unminified build with bundled dependencies (for simple html pages, good for novices)
  • build:umd : do the umd (cjs/amd/globals) build
  • build:esm : do the esm (ES 2015 modules) build
  • clean : clean the build directory
  • docs : build the docs into documentation
  • release : build all release artifacts
  • watch : automatically build lib for debugging (with sourcemap, no babel, very quick)
    • good for general testing on debug/index.html
    • served on http://localhost:8080 or the first available port thereafter, with livereload on debug/index.html
  • watch:babel : automatically build lib for debugging (with sourcemap, with babel, a bit slower)
    • good for testing performance or for testing out of date browsers
    • served on http://localhost:8080 or the first available port thereafter, with livereload on debug/index.html
  • watch:umd : automatically build prod umd bundle (no sourcemap, with babel)
    • good for testing cytoscape in another project (with a "cytoscape": "file:./path/to/cytoscape" reference in your project's package.json)
    • no http server
  • dist : update the distribution js for npm etc.

Testing:

The default test scripts run directly against the source code. Tests can alternatively be run on a built bundle. The library can be built on node>=6, but the library's bundle can be tested on node>=0.10.

  • test : run all testing & linting
  • test:js : run the mocha tests on the public API of the lib (directly on source files)
    • npm run test:js -- -g "my test name" runs tests on only the matching test cases
  • test:build : run the mocha tests on the public API of the lib (on a built bundle)
    • npm run build should be run beforehand on a recent version of node
    • npm run test:build -- -g "my test name" runs build tests on only the matching test cases
  • test:modules : run unit tests on private, internal API
    • npm run test:modules -- -g "my test name" runs modules tests on only the matching test cases
  • lint : lint the js sources via eslint
  • benchmark : run all benchmarks
  • benchmark:single : run benchmarks only for the suite specified in benchmark/single

Release instructions

Background

  • Ensure that a milestone exists for the release you want to make, with all the issues for that release assigned in the milestone.
  • Bug fixes should be applied to both the master and unstable branches. PRs can go on either branch, with the patch applied to the other branch after merging.
  • When a patch release is made concurrently with a feature release, the patch release should be made first. Wait 5 minutes after the patch release completes before starting the feature release -- otherwise Zenodo doesn't pick up releases properly.

Patch version

  1. Go to Actions > Feature release
  2. Go to the 'Run workflow' dropdown
  3. Optional The 'master' branch should be preselected for you
  4. Press the green 'Run workflow' button
  5. Close the milestone for the release

Feature version

  1. Go to Actions > Feature release
  2. Go to the 'Run workflow' dropdown
  3. Optional The 'unstable' branch should be preselected for you
  4. Press the green 'Run workflow' button
  5. Close the milestone for the release
  6. Make the release announcement on the blog

Notes on GitHub Actions UI

  • 'Use workflow from' in the GitHub UI selects the branch from which the workflow YML file is selected. Since the workflow files should usually be the same on the master and unstable branches, it shouldn't matter what's selected.
  • 'Branch to run the action on' in the GitHub UI is preselected for you. You don't need to change it.

Tests

Mocha tests are found in the test directory. The tests can be run in the browser or they can be run via Node.js (npm run test:js).

3.30.4

27 days ago

3.30.3

2 months ago

3.30.2

5 months ago

3.29.3

6 months ago

3.30.0

6 months ago

3.30.1

5 months ago

3.29.2

8 months ago

3.29.1

8 months ago

3.29.0

8 months ago

3.28.1

1 year ago

3.27.2

1 year ago

3.28.0

1 year ago

3.26.2

1 year ago

3.27.1

1 year ago

3.24.2

1 year ago

3.25.1

1 year ago

3.25.2

1 year ago

3.26.0

1 year ago

3.26.1

1 year ago

3.27.0

1 year ago

3.24.1

2 years ago

3.25.0

2 years ago

3.23.1

2 years ago

3.24.0

2 years ago

3.23.0

2 years ago

3.22.0

2 years ago

3.22.1

2 years ago

3.20.3

3 years ago

3.21.3

2 years ago

3.21.2

3 years ago

3.20.2

3 years ago

3.21.1

3 years ago

3.20.1

3 years ago

3.21.0

3 years ago

3.20.0

3 years ago

3.19.1

3 years ago

3.18.3

3 years ago

3.19.0

4 years ago

3.17.4

4 years ago

3.18.2

4 years ago

3.17.3

4 years ago

3.18.1

4 years ago

3.17.2

4 years ago

3.18.0

4 years ago

3.17.1

4 years ago

3.16.5

4 years ago

3.17.0

4 years ago

3.15.5

4 years ago

3.16.4

4 years ago

3.15.4

4 years ago

3.16.3

4 years ago

3.16.2

4 years ago

3.16.1

4 years ago

3.16.0

4 years ago

3.15.3

4 years ago

3.15.2

4 years ago

3.14.4

4 years ago

3.14.3

5 years ago

3.15.1

5 years ago

3.15.0

5 years ago

3.14.2

5 years ago

3.13.3

5 years ago

3.13.2

5 years ago

3.14.1

5 years ago

3.13.1

5 years ago

3.14.0

5 years ago

3.12.3

5 years ago

3.13.0

5 years ago

3.12.2

5 years ago

3.11.2

5 years ago

3.12.1

5 years ago

3.11.1

5 years ago

3.12.0

5 years ago

3.11.0

5 years ago

3.10.2

5 years ago

3.9.4

5 years ago

3.9.3

5 years ago

3.10.1

5 years ago

3.10.0

5 years ago

3.9.2

5 years ago

3.8.5

5 years ago

3.9.1

5 years ago

3.8.4

5 years ago

3.9.0

5 years ago

3.8.3

5 years ago

3.7.6

5 years ago

3.8.2

5 years ago

3.7.5

5 years ago

3.8.1

5 years ago

3.7.4

5 years ago

3.8.0

5 years ago

3.7.3

6 years ago

3.6.6

6 years ago

3.7.2

6 years ago

3.6.5

6 years ago

3.7.1

6 years ago

3.6.4

6 years ago

3.7.0

6 years ago

3.6.3

6 years ago

3.5.9

6 years ago

3.6.2

6 years ago

3.5.8

6 years ago

3.5.7

6 years ago

3.4.9

6 years ago

3.6.1

6 years ago

3.6.0

6 years ago

3.5.6

6 years ago

3.4.8

6 years ago

3.5.5

6 years ago

3.4.7

6 years ago

3.5.4

6 years ago

3.4.6

6 years ago

3.5.3

6 years ago

3.4.5

6 years ago

3.5.2

6 years ago

3.5.1

6 years ago

3.4.4

6 years ago

3.5.0

6 years ago

3.4.3

6 years ago

3.3.6

6 years ago

3.4.2

6 years ago

3.3.5

6 years ago

3.4.1

6 years ago

3.3.4

6 years ago

3.4.0

6 years ago

3.3.3

6 years ago

3.3.2

6 years ago

3.3.1

6 years ago

3.3.0

6 years ago

3.2.22

6 years ago

3.2.21

6 years ago

3.2.20

6 years ago

3.2.19

6 years ago

3.2.18

6 years ago

3.2.17

6 years ago

3.2.16

6 years ago

3.2.15

6 years ago

3.2.14

6 years ago

3.2.13

7 years ago

3.2.12

7 years ago

3.2.11

7 years ago

2.7.29

7 years ago

3.2.10

7 years ago

2.7.28

7 years ago

3.2.9

7 years ago

2.7.27

7 years ago

3.2.8

7 years ago

3.2.7

7 years ago

3.2.6

7 years ago

2.7.26

7 years ago

3.2.5

7 years ago

3.2.4

7 years ago

3.2.3

7 years ago

2.7.25

7 years ago

3.2.2

7 years ago

2.7.24

7 years ago

3.2.1

7 years ago

2.7.23

7 years ago

3.2.0

7 years ago

3.1.5

7 years ago

2.7.22

7 years ago

3.1.4

7 years ago

3.1.3

7 years ago

2.7.21

7 years ago

3.1.2

8 years ago

2.7.20

8 years ago

3.1.1

8 years ago

2.7.19

8 years ago

3.1.0

8 years ago

2.7.18

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.7.17

8 years ago

2.7.16

8 years ago

2.7.15

8 years ago

2.7.14

8 years ago

2.7.13

8 years ago

2.7.12

8 years ago

2.7.11

8 years ago

2.7.10

8 years ago

2.7.9

8 years ago

2.7.8

8 years ago

2.7.7

8 years ago

2.7.6

8 years ago

2.7.5

8 years ago

2.7.4

8 years ago

2.7.3

9 years ago

2.7.2

9 years ago

2.7.1

9 years ago

2.7.0

9 years ago

2.6.12

9 years ago

2.6.11

9 years ago

2.6.10

9 years ago

2.6.9

9 years ago

2.6.8

9 years ago

2.6.7

9 years ago

2.6.6

9 years ago

2.6.5

9 years ago

2.6.4

9 years ago

2.6.3

9 years ago

2.6.2

9 years ago

2.6.1

9 years ago

2.6.0

9 years ago

2.5.5

9 years ago

2.5.4

9 years ago

2.5.3

9 years ago

2.5.2

9 years ago

2.5.1

9 years ago

2.5.0

9 years ago

2.4.9

9 years ago

2.4.8

9 years ago

2.4.7

9 years ago

2.4.6

9 years ago

2.4.5

9 years ago

2.4.4

9 years ago

2.4.3

9 years ago

2.4.2

10 years ago

2.4.1

10 years ago

2.4.0

10 years ago

2.3.16

10 years ago

2.3.15

10 years ago

2.3.14

10 years ago

2.3.13

10 years ago

2.3.12

10 years ago

2.3.11

10 years ago

2.3.10

10 years ago

2.3.9

10 years ago

2.3.8

10 years ago

2.3.7

10 years ago

2.3.6

10 years ago

2.3.5

10 years ago

2.3.4

10 years ago

2.3.3

10 years ago

2.3.1

10 years ago

2.3.0

10 years ago

2.2.14

10 years ago

2.2.13

10 years ago

2.2.12

10 years ago

2.2.11

10 years ago

2.2.10

11 years ago

2.2.9

11 years ago

2.2.8

11 years ago

2.2.7

11 years ago

2.2.6

11 years ago

2.2.5

11 years ago

2.2.4

11 years ago

2.2.3

11 years ago

2.2.2

11 years ago

2.2.1

11 years ago

2.2.0

11 years ago

2.1.1

11 years ago

2.1.0

11 years ago

2.0.0-beta1

11 years ago

2.0.5

11 years ago

2.0.3

11 years ago

2.0.0beta1

12 years ago