Help

SBGN Layout draws SBGN maps automatically: process description (PD), entity relationship (ER) and activity flow (AF). You upload an SBGN-ML file, the server runs a constraint-based layout pipeline made for that language (built on VANTED with SBGN-ED and the Adaptagrams libraries), shows the result in the browser and gives you the drawing as SVG and the map as laid-out SBGN-ML. The service is free for academic and non-commercial use; the software is open source under the GPL-3.0 (see licence).

On this page: a quick tour · sample data · how to read the results · result links, privacy and cookies · limits · troubleshooting · licence and citation. Scripts and batch jobs use the HTTP API.

Quick tour

  1. Load a map. Click Upload a map on the start page or Upload SBGN-ML in the sidebar, drop a file anywhere on the page, or pick one of the examples on the start page. Accepted are SBGN-ML files (.sbgn, .sbgnml or .xml) up to 40 MB. The SBGN language is read from the map; Map language in the sidebar overrides it.
  2. Lay out again if you need to. Compartment frames distort the layout, so they are removed and the map is laid out as a whole. Lay out again runs the map once more; after a change of the map language the button reads Lay out with new settings.
  3. Watch the run. The card shows the upload, the position in the queue and the progress of the layout. Your layouts in the sidebar lists the maps you laid out in this browser, including the ones still running. The address bar now carries the job id (/?job=…): bookmark it or use the link button next to the file name to come back later, see result links. You may also close the tab; the server finishes the layout anyway.
  4. Explore the drawing. Zoom with the wheel or +/−, pan by dragging, 0 fits the drawing to the window. The button with the half-filled circle shows the drawing on a dark sheet.
  5. Inspect the result in advanced mode: the details panel on the right holds Statistics, Conflicts and Log, explained under reading the results.
  6. Download. Download in the top bar gives the final drawing as SVG; the arrow next to it offers the laid-out SBGN-ML, the PNG, in advanced mode the JSON report, and a ZIP with everything.

Press ? in the app for the list of keyboard shortcuts.

Try it with sample data

The bundled maps below are also the examples on the start page. Open laid out loads the map and runs the layout right away, so you see a real, interactive result exactly as for your own upload (most maps take seconds, the large Reactome maps one to three minutes). Download gives the unchanged input file, which also shows the expected file format. The smaller maps are the example maps distributed with SBGN and SBGN-ED; the maps named “Reactome” are Homo sapiens pathways from Reactome, exported as SBGN-ML.

Process description

MapGlyphs, arcs
Arabinoxylan, Beta-Glucan, Cellulose biosynthesis32, 25 Open laid out Download
Class A1 rhodopsin-like receptors (Reactome 373076)726, 579 Open laid out Download
Deubiquitination (Reactome 5688426)353, 338 Open laid out Download
Glycolysis, Gluconeogenesis175, 183 Open laid out Download
Phase I functionalization of compounds (Reactome 211945)808, 721 Open laid out Download
Sphingolipid metabolism (Reactome 428157)457, 425 Open laid out Download
Sucrose breakdown pathway (dicots)71, 72 Open laid out Download
Sugar metabolism57, 55 Open laid out Download
TCA cycle60, 54 Open laid out Download
UDP sugars95, 96 Open laid out Download
Activated STAT1α induction of the IRF1 gene27, 11 Open laid out Download
Glycolysis44, 44 Open laid out Download
Insulin-like growth factor signaling53, 32 Open laid out Download
MAPK cascade35, 27 Open laid out Download
Neuronal muscle signalling52, 38 Open laid out Download

Entity relationship

MapGlyphs, arcs
Principle of the PCR20, 15 Open laid out Download
Regulation of calcium calmoduline kinase II effect on synaptic plasticity46, 32 Open laid out Download

Activity flow

MapGlyphs, arcs
Epidermal growth factor receptor pathway52, 65 Open laid out Download
Regulation of TGF-β-induced metastasis7, 7 Open laid out Download
The role voltage-gated sodium channel plays in action potential generation12, 5 Open laid out Download
Transforming growth factor beta signaling pathway27, 24 Open laid out Download

Reading the results

The drawing

The result keeps every glyph of your map except the compartment frames and changes only positions and the course of the arcs. What a good result looks like depends on the language:

The pipeline section of the API page lists every step of the three pipelines.

The three tabs below appear in advanced mode: switch on Advanced in the top bar, and the details panel opens next to the drawing.

Statistics tab

Conflicts tab

The pipelines generate constraints from templates (process stars, straight relationships, the flow hierarchy). In a dense map some of them contradict each other, for example when separations and alignments would close a cycle, or two nodes would have to occupy the same point. Such contradictions are found before the solver runs; the contradicting constraint is removed and listed as a dropped conflict. The drawing is still correct, but that one rule is not enforced: the nodes it names may not be aligned or ordered as the template intended. Unsatisfied means the solver accepted the rule but could not meet it exactly, for example because keeping nodes from overlapping took priority. Every entry names the step that added the rule, the kind of rule, the reason, and the nodes involved; the crosshair rings those nodes in the result so you can judge the spot yourself. A handful of conflicts in a large map is normal and needs no action; a map with many conflicts is usually very densely connected, and splitting the map can help.

Log tab

The engine's own log, line by line, with a filter and a copy button. It is useful when a layout fails or looks wrong: copy it into a bug report together with the job id from the Statistics tab.

Output files

Result links, privacy and cookies

Result links. As soon as a job is created, the address bar shows /?job=<id>. Bookmark it or copy it with Copy link in the top bar; opening it later shows the job's status (queued, running, done) and then the result. Results are kept for 7 days (under sustained heavy load the oldest finished jobs can go earlier). Your layouts in the sidebar lists them as well. A link opens only in the browser that started the job: jobs are tied to the cookie described below, so nobody else can open your result, not even with the link. To give a result to someone else, send them the downloaded files.

Privacy. Uploaded maps and results stay on this server and are processed by a local layout engine; they are not sent to any third party, not used for anything but your job, and are deleted after 7 days. Other visitors cannot list or open your jobs; a foreign job id answers like an unknown one. Jobs can also be deleted earlier through the API. The site uses no analytics and no accounts, and never asks for an e-mail address. Traffic passes through Cloudflare, which provides the domain's TLS and DNS.

Cookies and local storage. The site sets one first-party cookie, sbgn_owner: a random token (HttpOnly, 30 days) that marks your jobs as yours. It is strictly functional; there are no tracking and no third-party cookies. Your browser's local storage keeps the colour theme, the panel state, advanced mode, your settings, the list of your layouts and whether you have dismissed the cookie notice; nothing of this leaves the browser. API clients hold the same cookie in a cookie jar.

Limits

Troubleshooting

Licence and citation

The service is free for academic and non-commercial use. Its software — this web application, the Constraint SBGN Layout add-on and the headless layout runner — is open source under the GNU General Public License v3.0 (GPL-3.0). It builds on VANTED and SBGN-ED (GPL), the Adaptagrams libraries libcola and libavoid (LGPL) and Next.js (MIT). The sample maps keep the licences of their sources (SBGN examples; Reactome, CC BY 4.0).

A manuscript describing the service is in preparation. Until it is published, please cite this website, https://sbgn-layout.org, when you use results in a publication.