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

Uploaded Python 3

File details

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

File metadata

  • Download URL: homologyviz-0.1.54.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.54.tar.gz
Algorithm Hash digest
SHA256 8c19b35a9d67ae546a4cf4cc432b6fbf8fc0703663efc06fc4bcacc184014754
MD5 aafea85cc4997158ec289d13c5a8787a
BLAKE2b-256 d4f935a402a5ad2c4aead0ab62b72fa304511399acf1b52945f794489df389de

See more details on using hashes here.

File details

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

File metadata

  • Download URL: homologyviz-0.1.54-py3-none-any.whl
  • Upload date:
  • Size: 436.8 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.54-py3-none-any.whl
Algorithm Hash digest
SHA256 32b7383dbb2febc201a0ac7df899e633730d4c9ac665791693cf53dbe43be96b
MD5 7c3724b6bee112ae078e485716b13c39
BLAKE2b-256 2ed8b464f2fb28d29fe64f665f9e308b7f3b6f6e197deccad66911c2f53b5083

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.1.54 This release

2 files

0.1.53

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