Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

complexviewer

Package Overview
Dependencies
Maintainers
0
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

complexviewer

A network visualisation that displays molecular interaction data, including detailed residue-level information such as binding sites. Used in EBI's Complex Portal and elsewhere.

  • 2.2.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
127
increased by39.56%
Maintainers
0
Weekly downloads
 
Created
Source

ComplexViewer

Colin W Combe, Marine (Dumousseau) Sivade, Henning Hermjakob, Joshua Heimbach, Birgit H M Meldal, Gos Micklem, Sandra Orchard, Juri Rappsilber; ComplexViewer: visualization of curated macromolecular complexes, Bioinformatics, Volume 33, Issue 22, 15 November 2017, Pages 3673–3675, https://doi.org/10.1093/bioinformatics/btx497

Input data

The 'MI-JSON' data format consumed by the viewer is generated by the JAMI framework. https://github.com/MICommunity/psi-jami

JAMI is capable of converting between various MI data formats, it can convert the PSI-MI XML standard into the MI-JSON format.

Building on localhost

First install dependencies:

npm install

To create a production build:

npm run build-prod

To create a development build:

npm run build-dev

Usage

  1. Construct a new instance of the conplexviewer.App object, passing the target DIV as a parameter to the constructor:

            var targetDiv = document.getElementById('myDiv');
            var myComplexViewer = new complexviewer.App(targetDiv);
    
  2. Pass this the MI-JSON object:

            myComplexViewer.readMijson(data);
    
  3. Register a DIV to have a colour scheme key drawn into it

            var colorSchemeDiv = document.getElementById('myDiv');
            myComplexViewer.addColorSchemeKey(colorSchemeDiv);
    
  4. Choose how to annotate proteins (this will prob, because of https://github.com/MICommunity/ComplexViewer/issues/80):

            // todo doc - see index.html for example, old way of doing should still be working
    
  5. To change dataset without creating a new instance of the app, call the clear function, then call the readMijson() function with the new data:

            myComplexViewer.clear();
            myComplexViewer.readMijson(data2);
    

Keywords

FAQs

Package last updated on 14 Aug 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc