Skip to main content

Syntviz

Syntviz prepares genome comparisons locally and draws portable synteny figures: gene neighborhoods, protein links shaded by identity, repeat arms, chromosome comparisons, circular maps and metadata tracks. A session file holds the evidence and the figure state; the same session opens in a notebook, in the command line renderer and in the web viewer.

Install

pip install syntviz

The package needs Python 3.11 or later. The interactive notebook figure needs only Python; without Node.js the notebook skips its static SVG preview. Validation, edits and SVG, PNG or PDF export run the bundled renderer through Node.js 22.12 or later, which must be on PATH. Sequence searches (MMseqs2, minimap2) and gene calling (Pyrodigal) need those tools installed separately.

Use

Import a genome and show it in a notebook:

from pathlib import Path

from syntviz.importers import ImportFile, ImportSpec, import_genome
from syntviz.notebook import Figure

session = import_genome(
    ImportSpec(
        genome_id="phage",
        name="Phage A",
        files=[ImportFile(path=Path("phage.gbk"), role="genbank")],
        organism_context="virus",
    )
)
Figure(session)  # interactive viewer in the cell output, works offline

Load a saved session, check it and export a figure:

from pathlib import Path

from syntviz.models import Session
from syntviz.runtime import render, validate

session = Session.model_validate_json(Path("figure.syntviz.json").read_text())
validate(session)  # {"valid": True, "diagnostics": [...]}
render(session, Path("figure.svg"))

The syntviz command offers the same operations:

syntviz discover                                  # session and command schemas
syntviz edit figure.syntviz.json commands.json edited.syntviz.json
syntviz render edited.syntviz.json figure.pdf
syntviz view figure.syntviz.json                  # local viewer on loopback

commands.json holds a JSON array of commands such as setView, which takes a complete view; syntviz discover lists every command and its schema.

License

Lawrence Berkeley National Laboratory non-commercial use only license; see LICENSE. Questions about rights to use or distribute the software go to Berkeley Lab's Intellectual Property Office.

Metadata

Release files for syntviz 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for syntviz 0.2.0
File Size Uploaded Provenance Actions
syntviz-0.2.0.tar.gz 4.4 MB Without provenance Details for syntviz-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for syntviz 0.2.0
File Interpreter ABI Platform Actions
syntviz-0.2.0-py3-none-any.whl Python 3 none any Details for syntviz-0.2.0-py3-none-any.whl

Total release size: 7.5 MB

Release files / syntviz-0.2.0.tar.gz

Download URL syntviz-0.2.0.tar.gz
Size 4.4 MB
Tags Source
SHA-256 checksum
How to use checksums
06761d27cca2b2aeb6b27a20f763868768b250eabd79ff72418d9532b250da87
BLAKE2b-256 checksum
How to use checksums
235d499c3de7af61e414155a59e46008ed601697653836cb59a4e742ce809264
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.14

Release files / syntviz-0.2.0-py3-none-any.whl

Download URL syntviz-0.2.0-py3-none-any.whl
Size 3.1 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c714e1e5181271274732bf37b2f1c16fa49461151e3f139567b075af03f06693
BLAKE2b-256 checksum
How to use checksums
8778a5448df362ae0b8682e498df51e55b904f0769beeabd33fc6bc55ae4b4be
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.12.14

Security for syntviz 0.2.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page