Skip to main content

HomologyViz

PyPI Version GitHub License Python Built with Dash + Plotly


🧬 Create visual representations of BLASTn alignments

HomologyViz is a Python-based web app for visualizing pairwise BLASTn alignments between DNA sequences with gene annotations and customizable color maps. It allows you to explore homologous regions and gene structures interactively, with publication-ready output.

HomologyViz reads GenBank files (.gb), uses the CDS features to plot genes as arrows, and performs local BLASTn alignments between sequences. Homology regions are colored by identity percentage using a flexible, user-selectable color scale.

You may optionally customize gene colors directly in the GenBank file by adding a /Color tag to a CDS feature. For example, /Color="#00ff00" will render that gene in green. You can also edit gene colors interactively using the web interface.

HomologyViz is ideal for researchers and students with little or no coding experience. It runs locally and requires no cloud deployment or server hosting.


🚀 Features

  • Interactive plots of aligned DNA sequences
  • Gene annotations rendered as directional arrows
  • Homology regions colored by % identity using customizable color scales
  • Click-to-select genes or regions and change their color
  • Exportable visualizations (SVG, PNG, PDF, HTML)
  • Built with Dash and Plotly

🖼 Example

HomologyViz


✅ Requirements

  • Python 3.11+
  • blastn (part of BLAST+) must be installed and available in your system PATH.

HomologyViz has been tested in Google Chrome on macOS, but should work across all modern browsers and platforms.


📦 Installation

You can install HomologyViz using pip:

pip install homologyviz

Or clone this repository:

git clone https://github.com/yourusername/homologyviz.git
cd homologyviz
pip install -e .

🧪 Usage

Once installed, launch the app by typing:

homologyviz

📚 Documentation

You can find the full documentation for HomologyViz at:

👉 https://homologyviz.readthedocs.io


👤 Author

Created by Iván Muñoz Gutiérrez, PhD
Montana State University
Department of Microbiology & Cell Biology
Github: @ivanmugu


🙏 Acknowledgments


📄 License

BSD 3-Clause License


📝 Notes

  • I am developing HomologyViz in my free time, so if you find a bug, it may take me some time to fix it. However, I will fix the problems as soon as possible.
  • If you have any suggestions, let me know, and I will try to implement them.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

homologyviz-0.1.53.tar.gz (486.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

homologyviz-0.1.53-py3-none-any.whl (436.7 kB view details)

Uploaded Python 3

File details

Details for the file homologyviz-0.1.53.tar.gz.

File metadata

  • Download URL: homologyviz-0.1.53.tar.gz
  • Upload date:
  • Size: 486.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for homologyviz-0.1.53.tar.gz
Algorithm Hash digest
SHA256 71a765ca11b19faf39e62df880a80c0dbaf3a5f99ac673c48247a658146987f4
MD5 ad8de8dd8189357a552f7019ef3b6625
BLAKE2b-256 a84210f0de4e5c201e844f3560eeb61d3ab042f31c14eab1dcc4e8f856048bc7

See more details on using hashes here.

File details

Details for the file homologyviz-0.1.53-py3-none-any.whl.

File metadata

  • Download URL: homologyviz-0.1.53-py3-none-any.whl
  • Upload date:
  • Size: 436.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.11.3

File hashes

Hashes for homologyviz-0.1.53-py3-none-any.whl
Algorithm Hash digest
SHA256 a3c0805a65a4de93695479e40468fed2b60142d18aa6d015947b0e223c514fc8
MD5 607e01e3b750716c09442c6360133e0f
BLAKE2b-256 460a64bf4c1222a37175558bee16dc4b5f5aa6c68736e13e9181d16171b00648

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.54

2 files

This release

0.1.53 This release

2 files

0.1.51

2 files

0.1.33

2 files

0.0.21

2 files

0.0.20

1 file

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