2.0.22 • Published 3 years ago

visbol v2.0.22

Weekly downloads
64
License
BSD-2-Clause
Repository
github
Last release
3 years ago

visbol-js

SBOLv rendering in JavaScript

For Developers Adding Glyphs

There are four steps for adding normal DNA glyphs
1) Add name to var title in browser.js
2) Add SO term in lib/soToGlyph.js
3) Add name to font/sbolv/main.js
4) Add file to font/sbolv with renderGlyph implemented

For Developers Adding Complex Glyphs

Based on the spec there are 4 types of Complex glyphs. Currently the code is able to detect the correct type of rendering for a complex if it is part of an interaction. If interactions is not detected, the default rendering will be the SBGN complex glyph.
Completed:
1)Generic (SBGN rectangle)
2)Small molecule and protein
Missing:
1)Complex formed by 2 proteins
2)Complex formed by RNA and protein

1) Add file to font/sbolv with renderGlyph implemented
2) Add name to font/sbolv/main.js
3) Make sure name in font/sbolv/main.js matches the name in complexType object in /lib/complexInfomation.js

Interactions

5 types of interactions (inhibition, genetic production, simulation, degradation, non-covelant binding) can be rendered. If there are multiple interactions in the same circuit, each interaction is rendered in separate segment.

Displaylist is updated in displaylist tab with of all interactions.
Currently, if one of the participants is a part in a circuit, that participant's role is always engineered-region which does not provide accurate information about which part in the circuit the interaction is occurring. The temporary solution right now is to parse for the protein/molecule name and map that to the part on the circuit. If a name cannot be mapped, the interaction defaults to the first glyph in the circuit.

How to Test

Global install of browserify
$ npm install -g browserify

Install dependencies
$ npm install

Create bundle.js
$ browserify -o bundle.js browser.js $ browserify index.js -t babelify -o bundle.js

Make sure you have visbol-site cloned, then copy bundle.js to the the visbol-site directory and open up index.html in a browser

Copy and paste any SBOL file into SBOL tab to see rendering SBOL testing files can be created with SBOL Designer

Useful links

SBOL Glyphs
SBOL Visual Specification

1.4.35

3 years ago

1.4.34

3 years ago

1.4.37

3 years ago

1.4.36

3 years ago

2.0.19

3 years ago

2.0.18

3 years ago

2.0.22

3 years ago

2.0.21

3 years ago

2.0.17

3 years ago

2.0.16

4 years ago

2.0.15

4 years ago

2.0.14

4 years ago

2.0.13

4 years ago

2.0.12

4 years ago

2.0.11

4 years ago

2.0.9

4 years ago

2.0.10

4 years ago

2.0.8

4 years ago

2.0.7

4 years ago

2.0.6

4 years ago

1.4.33

4 years ago

2.0.5

4 years ago

2.0.4

4 years ago

2.0.3

4 years ago

1.4.32

4 years ago

2.0.2

4 years ago

1.4.31

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.4.30

4 years ago

1.4.29

4 years ago

1.4.28

5 years ago

1.4.27

5 years ago

1.5.0

5 years ago

1.4.26

5 years ago

1.4.25

5 years ago

1.4.24

5 years ago

1.4.23

6 years ago

1.4.22

6 years ago

1.4.21

6 years ago

1.4.20

6 years ago

1.4.19

6 years ago

1.4.18

6 years ago

1.4.17

6 years ago

1.4.16

6 years ago

1.4.15

6 years ago

1.4.14

6 years ago

1.4.13

6 years ago

1.4.12

6 years ago

1.4.11

6 years ago

1.4.10

6 years ago

1.4.9

7 years ago

1.4.8

7 years ago

1.4.7

7 years ago

1.4.6

7 years ago

1.4.5

7 years ago

1.4.4

7 years ago

1.4.3

7 years ago

1.4.2

7 years ago

1.4.1

7 years ago

1.4.0

7 years ago

1.3.7

7 years ago

1.3.6

7 years ago

1.3.5

7 years ago

1.3.4

7 years ago

1.3.3

7 years ago

1.3.2

7 years ago

1.3.1

8 years ago

1.2.7

8 years ago

1.2.6

8 years ago

1.2.5

8 years ago

1.2.4

8 years ago

1.2.3

8 years ago

1.2.2

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago