This repository contains a Tandem Repeat Visualization Tool that serves as the companion tool to TandemTwister. The tool processes Variant Call Format (VCF) files generated by TandemTwister and visualize tandem repeats in an intuitive, interactive format. Users can explore motifs, compare alleles to the reference sequence, and gain insights into the structure of tandem repeats, enhancing their ability to interpret genomic variation.
TRs are complex: alleles can differ by motif composition, length, and interrupted blocks. ProleTRact visulize TR regions with color-coded motifs, highlights interruptions, and provides intuitive navigation across regions and samples, enabling quick insight into potentially pathogenic expansions or atypical structures.
pathogenic_TRs.bed provides context for known loci (disease, gene, thresholds).Requirements: Python 3.9, 3.10, 3.11, or 3.12 (Python 3.13+ may require building dependencies from source)
Install from PyPI:
pip install proletract
proletract --install-deps # launches the web application
The launcher starts both the backend API server (port 8502) and frontend web server (port 3000). The application will open in your browser automatically. On headless machines, access the frontend at http://localhost:3000 after starting the application.
Note: If you encounter build errors (e.g., with Python 3.13+), ensure you're using Python 3.9–3.12, or install system dependencies: liblzma-dev (Ubuntu/Debian) or xz-devel (RHEL/CentOS/Fedora).
proletracthttp://localhost:3000 (the URL will be shown in the terminal if you're running headless)..vcf.gz with .tbi):
chr1:1000-2000.chr1:1000-2000.chr1:1000-2000..vcf.gz files generated by TandemTwister is required for cohort mode.Example screenshots and short walkthrough GIFs will be added here. For now, you can open example.svg for a preview:
Contributions are welcome! Please open an issue to discuss changes.
This project is licensed under the BSD 3-Clause Non-Commercial License — see LICENSE for details. Commercial use is prohibited. This software is intended for academic research, educational purposes, and personal/private use only. For commercial licensing inquiries, please contact the author.
If you use ProleTRact in your work, please cite this repository. A formal citation entry will be added once available.