Contents
Using Biographer
Creating SBGN visualisations
Manually
To create a SBGN visualization from scratch first select the SBGN language you want to use in the menu on the left. The options are- PD- Process Description
- ER- Entity Relation
- AF- Activity Flow
Creating Nodes
Click on one of the different node types in the left menu and click onto the canvas to create the node at that position. A window will appear where you can enter the node label and change other node properties.Creating Edges
You can draw Edges by using the edge tool . Click on the tool and then click on two nodes you want to connect with an edge. Once two nodes are clicked you can choose the edge type in the right menu.To add point on the edge use
ctrl + click
on a unselected edge. You can move to points on an edge to change the path of the edge.Removing points on an edge is currently not possible. We plan to implemented it with
ctrl + click
on the node that should be removedTo make edges curved select an edge and click the option "is spline". Now you will see edge handles that you can drag around.
Importing
Biographer can import SBGN graphs (with and without layout) from different sources. Use the import icon orctrl + i
or ctrl + o
to open up the import modal popup. There you can either upload your personal docuemtns in one of the following formats:
- jSBGN
Is Biographers native JSON based format (described here). It can contain only topological information or may also include proper layout information for all glyps in the graph. - SBGN-ML
Is an XML based format. Always contains layout information, though they may be set to arbitrary values that do not reflect a proper layout. - SBML
Only contains topological information, therefore you are required to layout the graph after importing it. The more MIRIAM annotations the document contains (especially: chEBI, PubChem, Uniprot) the better the import will work, since glyph types (nodes) can then be detected.
Layout
Selecting Nodes
You can select single nodes byclick
ing on them. To select multiple nodes use shift + click
or choose the tool and click + drag
a selection rectangle around several nodes.To select all nodes use the select all tool or
doubleclick
on a empty space on the canvas. To deselect all nodes you can use the tool or draw and empty selection rectagle. If you are in a compartment trying to draw a selection rectangle be carefult that you do not move the compartment while drawing the selection rectangle. You can prevent this by deselecting all nodes and then drawing a selection rectangle with
shift + drag
. Selected nodes have blue dashed borders.
Deleting Nodes
To delete nodes, select them and pressDel
on your keyboard or use the delete tool in the right menu.
Moving Nodes
To move a single node useclick + drag
. To move several nodes at once fist select the nodes and then move them clicking on one of them.
Automatic Layout
To help you laying out your SBGN graphs, biographer currtenly provides three automatic layout algorithms.- biographer.flow
Respects compartments - biographer.grid
Respects compartments (but the compartments have to be layed out manually)
If you click once only one iteration of optimization for each node is executed. For better results apply this layout multiple times. Once the layout is stuck in a local minmum you can manually move some nodes and apply the layout again. You will see that this greatly improves the layout.
Holding down thectrlkey while clicking the grid layout button will only place each node on the cosest empty grid space. This can be used to quickly create great looking layouts manually. - D3 force directed layout
Compartments are not supported
Uses the fantastic D3 library for a force based layout
Align and Distribute
The Align functions always align to the first selected node.Navigation
Zooming
Since ctrl + scroll is already taken by the default zoom function in many browsers (like FireFox and Opera) biographer usesalt + scroll
for zooming. If you are using a touch enabled device you can use the
pinch gesture
(move two fingers towards each other or away from each other) to zoom.You can also zoom by using the zoom buttons.
to zoom in
to zoom out
to get the original size
Panning
this tool can be used to pan the canvas usingclick + drag
. Additionally you can pan the canvas with your mouse scroll
vertically and hoizontally with shift + scroll
.
Exporting
Clicking on or pressingctrl + e
opens the export dialog. Exporting images is supported for several document formats:
- jSBGN
Biographer's native exchange format is jSBGN (described here). This format ideal for transmission in the web and does only require topological information. - SVG
Biographer natively renders the images in your browser in the SVG format. To export the SVG image click on "export current graph as SVG" - other formats
With the help of an external Java based library biographer is also able to export to- png
- tiff
Converting Document Formats
Try using our converter to convert between jSBGN, SBGN-ML and SBML using the libSBGN.js library. This is still under development and might not return what you expect.Keyboard Shortcuts
To see the keyboard shortcuts in the editor hold downctrl
for a bit longer.
ctrl + z |
undo last action |
ctrl + y |
redo last undone action |
ctrl + a |
select all |
ctrl + i
ctrl + o
|
open file / import |
ctrl + e |
export current graph |
ctrl + [1-3] |
activate a tool |
del |
remove selected nodes |
alt + scroll |
zoom in and out |
ctrl + a |
select all |
f4 |
toggle site menu, opera: ctrl + m |
click drag |
mode: select a node |
shift + click shift + drag |
mode: select multiple nodes |
SBGN Support
Biographer is missing some details of the SBGN specification. Missing are:PD
- Text on clone marker
- Cardinality flags on edges
- 3 way interaction circle
- Submap (use Enity and Tags)
- Auxiliary Units
System Requirements
Biographer currently works best with Chromium (Chrome) and Opera. While FireFox also works it is slower than the browsers mentioned before. Safari should also work. Internet Explorer and other browsers are not actively tested (Please do not use these browsers with biographer).Problems and Support
If you want to talk to us please contact us on our google group #biographer.For technical issues and discurssion you can follow our development group #biographer-dev.
To directly request features or report bugs please use our issue tracker at google code.
Installation From Source
Assuming you are using Linux or Mac OS, do the following:-
Create a local copy of the Biographer mercurial repository (http://code.google.com/p/biographer/source/checkout).
The shell command should be something like:
$ hg clone https://code.google.com/p/biographer/
or
$ hg clone https://my.googlename@code.google.com/p/biographer/
-
The editor uses the web2py framework (which includes a http server). Download the latest stable web2py source release from:
http://web2py.com/examples/default/download
Extract the archive anywhere you want to.
To start web2py comfortably create an alias in your .bashrc (or other rc file if you are using a different shell)
alias web2py='python /path/to/web2py/web2py/web2py.py -p 8000 -a shortpassword'
-
Now you can start web2py in the shell with:
$ web2py
Start it and check if you see the welcome page in you browser at:
http://127.0.0.1:8000
-
To make biographer work you need to create a softlink to the editor in the biographer applications directory.
$ ln -s /path/to/biographer/editor /path/to/web2py/applications/biographer
-
Biographer needs some additional files that we need to prepare. Go to you local copy of the Biographer mercurial repository and call make
$ cd /path/to/biographer/
$ make
This will take a long time since it will compile the biographer flow layout and pull the latest biomodels release and reactome information. But don't worry it will only take long in the first run.
! If "make" returns error messages, most of these are related to the flow layout and will not affect the rest of the software. Flow layout will not work if not compiled correctly. ! -
After make is finished try to visit biographer. If you created the softlink as described above you should be able to call:
http://127.0.0.1:8000/biographer
You will be asked to create a user account, you can enter anything you want to as long as you dont want to run biographer in the www.
$ touch /path/to/web2py/applications/biographer/views/default/biomodels_info_list.htmlTouch just creates an empty file.
Now you should be ready.
If you change the bui code (bui/ folder in your local hg repository) all you need to do, to try out the changes, is to call make
$ make