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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
-
title: Gene2Text
|
| 3 |
-
emoji: π
|
| 4 |
-
colorFrom: gray
|
| 5 |
-
colorTo: pink
|
| 6 |
-
sdk: gradio
|
| 7 |
-
sdk_version: 5.38.0
|
| 8 |
-
app_file: app.py
|
| 9 |
-
pinned: false
|
| 10 |
-
---
|
| 11 |
|
| 12 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
\# 𧬠Gene2Text: Interpretable Codon-by-Codon Describer
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
|
| 5 |
+
\[!\[Live Demo](https://img.shields.io/badge/π\_Live\_Demo-Gene2Text-blue?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)
|
| 6 |
+
|
| 7 |
+
\[!\[Hugging Face Spaces](https://img.shields.io/badge/π€\_Hugging\_Face-Spaces-yellow?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)
|
| 8 |
+
|
| 9 |
+
\[!\[GitHub](https://img.shields.io/badge/GitHub-Repository-green?style=for-the-badge\&logo=github)](https://github.com/LDolan/gene2text)
|
| 10 |
+
|
| 11 |
+
\[!\[Python](https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge\&logo=python)](https://www.python.org/)
|
| 12 |
+
|
| 13 |
+
\[!\[Gradio](https://img.shields.io/badge/Gradio-Latest-orange?style=for-the-badge)](https://gradio.app/)
|
| 14 |
+
|
| 15 |
+
\[!\[License: MIT](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)](https://opensource.org/licenses/MIT)
|
| 16 |
+
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
\*\*Transform DNA sequences into readable explanations with AI-powered biological insights!\*\*
|
| 20 |
+
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
> π― \*\*Perfect for students, teachers, researchers, and anyone curious about how DNA codes for life\*\*
|
| 24 |
+
|
| 25 |
+
|
| 26 |
+
|
| 27 |
+
\## π What It Does
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
|
| 31 |
+
Gene2Text takes raw DNA sequences (like `ATGCGTAAA`) and explains each codon in plain English:
|
| 32 |
+
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
π Codon 1: ATG β Methionine
|
| 38 |
+
|
| 39 |
+
π‘ The universal start codon - where protein synthesis begins
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
|
| 43 |
+
π€ Codon 2: CGT β Arginine
|
| 44 |
+
|
| 45 |
+
π‘ Positively charged amino acid - important for protein-DNA interactions
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
|
| 49 |
+
π Codon 3: TAA β STOP
|
| 50 |
+
|
| 51 |
+
π‘ Amber stop codon - signals end of protein synthesis
|
| 52 |
+
|
| 53 |
+
```
|
| 54 |
+
|
| 55 |
+
|
| 56 |
+
|
| 57 |
+
\## β¨ Key Features
|
| 58 |
+
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
\- 𧬠\*\*Complete Genetic Code\*\*: All 64 codons with biological context
|
| 62 |
+
|
| 63 |
+
\- π \*\*Educational Descriptions\*\*: Learn what each amino acid does
|
| 64 |
+
|
| 65 |
+
\- π \*\*Multiple Reading Frames\*\*: Analyze DNA in all 3 possible reading frames
|
| 66 |
+
|
| 67 |
+
\- π§ͺ \*\*Real Examples\*\*: Pre-loaded sequences from insulin, hemoglobin, and GFP
|
| 68 |
+
|
| 69 |
+
\- π¨ \*\*Clean Interface\*\*: Simple, educational design perfect for classrooms
|
| 70 |
+
|
| 71 |
+
\- β‘ \*\*Error Handling\*\*: Automatically cleans and validates input sequences
|
| 72 |
+
|
| 73 |
+
\- π± \*\*Mobile Friendly\*\*: Works on any device
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
\## π Try It Now!
|
| 78 |
+
|
| 79 |
+
|
| 80 |
+
|
| 81 |
+
\*\*π \[Launch Gene2Text](https://huggingface.co/spaces/LDolan/Gene2Text) π\*\*
|
| 82 |
+
|
| 83 |
+
|
| 84 |
+
|
| 85 |
+
\## π Perfect For
|
| 86 |
+
|
| 87 |
+
|
| 88 |
+
|
| 89 |
+
| User Type | Use Case |
|
| 90 |
+
|
| 91 |
+
|-----------|----------|
|
| 92 |
+
|
| 93 |
+
| π \*\*Students\*\* | Learning molecular biology and genetics |
|
| 94 |
+
|
| 95 |
+
| π©βπ« \*\*Teachers\*\* | Explaining the genetic code in classrooms |
|
| 96 |
+
|
| 97 |
+
| π¬ \*\*Researchers\*\* | Quickly interpreting DNA sequences |
|
| 98 |
+
|
| 99 |
+
| π» \*\*Bioinformatics Beginners\*\* | Understanding sequence analysis |
|
| 100 |
+
|
| 101 |
+
| π€ \*\*Curious Minds\*\* | Discovering how DNA codes for proteins |
|
| 102 |
+
|
| 103 |
+
|
| 104 |
+
|
| 105 |
+
\## π How to Use
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
|
| 109 |
+
1\. \*\*Enter a DNA sequence\*\* or select an example
|
| 110 |
+
|
| 111 |
+
2\. \*\*Choose a reading frame\*\* (0, 1, or 2)
|
| 112 |
+
|
| 113 |
+
3\. \*\*Toggle detailed descriptions\*\* for more biological context
|
| 114 |
+
|
| 115 |
+
4\. \*\*Click "Analyze Sequence"\*\* to see the results!
|
| 116 |
+
|
| 117 |
+
|
| 118 |
+
|
| 119 |
+
\### Example Sequences Included
|
| 120 |
+
|
| 121 |
+
|
| 122 |
+
|
| 123 |
+
\- \*\*Basic Example\*\*: `ATG GCT TAA` (start, alanine, stop)
|
| 124 |
+
|
| 125 |
+
\- \*\*Insulin Gene\*\*: Partial sequence from human insulin
|
| 126 |
+
|
| 127 |
+
\- \*\*Beta-globin\*\*: From hemoglobin protein
|
| 128 |
+
|
| 129 |
+
\- \*\*Green Fluorescent Protein\*\*: From jellyfish GFP
|
| 130 |
+
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
\## π οΈ Technology Stack
|
| 134 |
+
|
| 135 |
+
|
| 136 |
+
|
| 137 |
+
\- \*\*Frontend\*\*: \[Gradio](https://gradio.app/) - Modern web interface
|
| 138 |
+
|
| 139 |
+
\- \*\*Backend\*\*: Pure Python with complete genetic code
|
| 140 |
+
|
| 141 |
+
\- \*\*Data\*\*: Standard genetic code table with biological annotations
|
| 142 |
+
|
| 143 |
+
\- \*\*Deployment\*\*: \[Hugging Face Spaces](https://huggingface.co/spaces)
|
| 144 |
+
|
| 145 |
+
\- \*\*Version Control\*\*: Git \& GitHub
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
|
| 149 |
+
\## ποΈ Project Structure
|
| 150 |
+
|
| 151 |
+
|
| 152 |
+
|
| 153 |
+
```
|
| 154 |
+
|
| 155 |
+
gene2text/
|
| 156 |
+
|
| 157 |
+
βββ app.py # Main Gradio interface
|
| 158 |
+
|
| 159 |
+
βββ codon\_table.py # Complete genetic code + translation logic
|
| 160 |
+
|
| 161 |
+
βββ requirements.txt # Python dependencies
|
| 162 |
+
|
| 163 |
+
βββ README.md # This file
|
| 164 |
+
|
| 165 |
+
```
|
| 166 |
+
|
| 167 |
+
|
| 168 |
+
|
| 169 |
+
\## 𧬠The Science Behind It
|
| 170 |
+
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
\### Central Dogma: DNA β RNA β Protein
|
| 174 |
+
|
| 175 |
+
|
| 176 |
+
|
| 177 |
+
1\. \*\*DNA\*\* stores genetic information in 4-letter code (A, T, G, C)
|
| 178 |
+
|
| 179 |
+
2\. \*\*Codons\*\* are 3-letter "words" that specify amino acids
|
| 180 |
+
|
| 181 |
+
3\. \*\*Proteins\*\* are built from chains of amino acids
|
| 182 |
+
|
| 183 |
+
4\. \*\*Reading Frames\*\* matter - shifting by 1 nucleotide changes everything!
|
| 184 |
+
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
\### Special Codons
|
| 188 |
+
|
| 189 |
+
|
| 190 |
+
|
| 191 |
+
\- π \*\*Start Codon (ATG)\*\*: Methionine - where translation begins
|
| 192 |
+
|
| 193 |
+
\- π \*\*Stop Codons (TAA, TAG, TGA)\*\*: Signal end of protein
|
| 194 |
+
|
| 195 |
+
\- π€ \*\*Regular Codons\*\*: 61 codons coding for 20 amino acids
|
| 196 |
+
|
| 197 |
+
|
| 198 |
+
|
| 199 |
+
\## π Run Locally
|
| 200 |
+
|
| 201 |
+
|
| 202 |
+
|
| 203 |
+
```bash
|
| 204 |
+
|
| 205 |
+
\# Clone the repository
|
| 206 |
+
|
| 207 |
+
git clone https://github.com/LDolan/gene2text.git
|
| 208 |
+
|
| 209 |
+
cd gene2text
|
| 210 |
+
|
| 211 |
+
|
| 212 |
+
|
| 213 |
+
\# Install dependencies
|
| 214 |
+
|
| 215 |
+
pip install -r requirements.txt
|
| 216 |
+
|
| 217 |
+
|
| 218 |
+
|
| 219 |
+
\# Run the app
|
| 220 |
+
|
| 221 |
+
python app.py
|
| 222 |
+
|
| 223 |
+
```
|
| 224 |
+
|
| 225 |
+
|
| 226 |
+
|
| 227 |
+
Then open `http://localhost:7860` in your browser.
|
| 228 |
+
|
| 229 |
+
|
| 230 |
+
|
| 231 |
+
\## π¨ Customization Ideas
|
| 232 |
+
|
| 233 |
+
|
| 234 |
+
|
| 235 |
+
Want to extend Gene2Text? Here are some ideas:
|
| 236 |
+
|
| 237 |
+
|
| 238 |
+
|
| 239 |
+
\- π \*\*Reverse translation\*\*: Protein sequence β possible DNA sequences
|
| 240 |
+
|
| 241 |
+
\- π \*\*Codon usage bias\*\*: Show organism-specific preferences
|
| 242 |
+
|
| 243 |
+
\- π§ͺ \*\*Mutation analysis\*\*: Compare wild-type vs mutant sequences
|
| 244 |
+
|
| 245 |
+
\- π \*\*Visualization\*\*: Generate codon wheel or amino acid property charts
|
| 246 |
+
|
| 247 |
+
\- π \*\*Multiple organisms\*\*: Support mitochondrial or bacterial codes
|
| 248 |
+
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
\## π Educational Applications
|
| 252 |
+
|
| 253 |
+
|
| 254 |
+
|
| 255 |
+
\### In the Classroom
|
| 256 |
+
|
| 257 |
+
\- \*\*Introductory Biology\*\*: Demonstrate genetic code basics
|
| 258 |
+
|
| 259 |
+
\- \*\*Molecular Biology\*\*: Explore translation mechanisms
|
| 260 |
+
|
| 261 |
+
\- \*\*Bioinformatics\*\*: Learn sequence analysis fundamentals
|
| 262 |
+
|
| 263 |
+
\- \*\*Genetics\*\*: Understand mutation effects
|
| 264 |
+
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
\### For Self-Learning
|
| 268 |
+
|
| 269 |
+
\- Experiment with real gene sequences
|
| 270 |
+
|
| 271 |
+
\- Compare sequences from different organisms
|
| 272 |
+
|
| 273 |
+
\- Understand how mutations affect proteins
|
| 274 |
+
|
| 275 |
+
\- Learn amino acid properties and functions
|
| 276 |
+
|
| 277 |
+
|
| 278 |
+
|
| 279 |
+
\## π¬ Real-World Applications
|
| 280 |
+
|
| 281 |
+
|
| 282 |
+
|
| 283 |
+
Understanding DNA sequences is crucial for:
|
| 284 |
+
|
| 285 |
+
|
| 286 |
+
|
| 287 |
+
\- \*\*Medical Genetics\*\*: Diagnosing genetic diseases
|
| 288 |
+
|
| 289 |
+
\- \*\*Drug Development\*\*: Designing protein-based therapeutics
|
| 290 |
+
|
| 291 |
+
\- \*\*Biotechnology\*\*: Engineering proteins for industry
|
| 292 |
+
|
| 293 |
+
\- \*\*Evolution\*\*: Comparing species and tracking changes
|
| 294 |
+
|
| 295 |
+
\- \*\*Forensics\*\*: DNA fingerprinting and identification
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
|
| 299 |
+
\## π€ Contributing
|
| 300 |
+
|
| 301 |
+
|
| 302 |
+
|
| 303 |
+
Contributions welcome! Feel free to:
|
| 304 |
+
|
| 305 |
+
|
| 306 |
+
|
| 307 |
+
\- π Report bugs or issues
|
| 308 |
+
|
| 309 |
+
\- π‘ Suggest new features
|
| 310 |
+
|
| 311 |
+
\- π Add new example sequences
|
| 312 |
+
|
| 313 |
+
\- π¨ Improve the user interface
|
| 314 |
+
|
| 315 |
+
\- π Enhance documentation
|
| 316 |
+
|
| 317 |
+
|
| 318 |
+
|
| 319 |
+
\## π License
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
|
| 323 |
+
This project is licensed under the MIT License - see the \[LICENSE](LICENSE) file for details.
|
| 324 |
+
|
| 325 |
+
|
| 326 |
+
|
| 327 |
+
\## π Acknowledgments
|
| 328 |
+
|
| 329 |
+
|
| 330 |
+
|
| 331 |
+
\- Built with \[Gradio](https://gradio.app) for the amazing web interface framework
|
| 332 |
+
|
| 333 |
+
\- Deployed on \[Hugging Face Spaces](https://huggingface.co/spaces) for free hosting
|
| 334 |
+
|
| 335 |
+
\- Inspired by the need for accessible bioinformatics education
|
| 336 |
+
|
| 337 |
+
\- Genetic code based on the universal standard genetic code
|
| 338 |
+
|
| 339 |
+
|
| 340 |
+
|
| 341 |
+
\## π Contact \& Support
|
| 342 |
+
|
| 343 |
+
|
| 344 |
+
|
| 345 |
+
\- π \*\*Live Demo\*\*: \[Gene2Text on Hugging Face](https://huggingface.co/spaces/LDolan/Gene2Text)
|
| 346 |
+
|
| 347 |
+
\- π§ \*\*GitHub Issues\*\*: \[Report bugs or request features](https://github.com/LDolan/gene2text/issues)
|
| 348 |
+
|
| 349 |
+
\- π¬ \*\*Discussions\*\*: \[Join the conversation](https://github.com/LDolan/gene2text/discussions)
|
| 350 |
+
|
| 351 |
+
|
| 352 |
+
|
| 353 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 354 |
|
| 355 |
+
|
| 356 |
+
|
| 357 |
+
\*\*Made with β€οΈ for biology education\*\* | Helping make molecular biology accessible to everyone!
|
| 358 |
+
|
| 359 |
+
|
| 360 |
+
|
| 361 |
+
!\[Gene2Text Demo](https://via.placeholder.com/800x400/1f2937/white?text=π§¬+Gene2Text+Demo+π§¬)
|
| 362 |
+
|