complexviewer v2.2.1
ComplexViewer
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
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);
Pass this the MI-JSON object: myComplexViewer.readMijson(data);
Register a DIV to have a colour scheme key drawn into it var colorSchemeDiv = document.getElementById('myDiv'); myComplexViewer.addColorSchemeKey(colorSchemeDiv);
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
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);
1 year ago
1 year ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
4 years ago
4 years ago
6 years ago
7 years ago
7 years ago
7 years ago
8 years ago
8 years ago
8 years ago
8 years ago
8 years ago