A static web application for DNA sequence alignment visualization with CRISPResso-style coloring.
Serve locally:
python -m http.server 8000Then navigate to http://localhost:8000
- CRISPResso-Style Visualization: Color-coded DNA bases (A=green, T=red, C=blue, G=orange)
- Insertion Detection: Bases opposite gaps are highlighted with red borders
- URL Sharing: Sequences are encoded in the URL for easy sharing
- Real-Time Updates: Visualization updates as you type
- No Dependencies: Pure JavaScript, no build step required
- Enter two DNA sequences in the text boxes
- Sequences are automatically:
- Normalized (uppercased, whitespace removed)
- Padded to equal length with
-(gaps) - Displayed in a stacked alignment view
- Share the URL to show others the same alignment
Try this URL:
http://localhost:8000/#seq1=ATCG-ATCG&seq2=ATCGGATCG
This shows:
- Sequence 1:
ATCG-ATCG - Sequence 2:
ATCGGATCG - The
Gin sequence 2 at position 4 will have a red border (insertion)
index.html- Main entry point with sequence inputsstyle.css- Styles including base colorsjs/dna-alignment.js- Visualization and URL encodingjs/main.js- Application initialization
See CLAUDE.md for detailed architecture and development guidance.