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.51.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.51-py3-none-any.whl (436.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: homologyviz-0.1.51.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.51.tar.gz
Algorithm Hash digest
SHA256 328f93b86d7ad3ff3ebeec7df54af0d36d6895df5353697ef312545a0e606f30
MD5 1cead0545123858a0c8cc630bc05b33b
BLAKE2b-256 a92e5d11c4fe4319cbf6bc17164b7fe3f526b9a89c8015dd3b7f7cd98afbde2a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: homologyviz-0.1.51-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.51-py3-none-any.whl
Algorithm Hash digest
SHA256 8ddd5296f722cf05f6fade62dddbdd30ede34dbf876510943d8031c705074b30
MD5 6824123d700c12a39149e9abed62f786
BLAKE2b-256 2af95791176803f2b853185767dab4fe1099e5295229f6f0719e817d2c99ff48

See more details on using hashes here.

Release history Release notifications | RSS feed

0.1.54

2 files

0.1.53

2 files

This release

0.1.51 This release

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