A lightweight Python application for DNA sequence analysis, supporting real-time transcription, translation, and visualization. Designed for students, researchers, and developers exploring bioinformatics fundamentals.
- Converts raw DNA sequences into RNA in real time
- Handles uppercase/lowercase input, invalid base filtering, and edge-case sequence validation
- Implements codon-to-amino-acid mapping
- Supports full-chain amino acid output (including stop codons)
- Permits partial-codon handling for live input
- Uses OpenCV to detect nucleotide-colored markers in live video feed
- Matches detected color regions to corresponding nucleotides (A, T, C, G)
- Allows hands-free DNA input via visual cues
- Efficient string parsing for large sequences
- Clean modular structure (transcription, translation, visualization separated)
- Python 3
- OpenCV for real-time color detection
- NumPy (optional)
- Custom codon tables and parsing logic
/dna-seq │── transcription.py │── translation.py │── vision_input.py │── utils.py │── README.md
- Install dependencies:
pip install opencv-python numpy
python dna_seq.py