LDolanLDolan commited on
Commit
7b472fc
·
1 Parent(s): c1e3097

Add README with Hugging Face configuration and professional documentation

Browse files
Files changed (1) hide show
  1. README.md +21 -329
README.md CHANGED
@@ -1,362 +1,54 @@
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
 
 
1
+ ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
 
3
+ title: Gene2Text
4
 
5
+ emoji: 🧬
6
 
7
+ colorFrom: blue
8
 
9
+ colorTo: green
10
 
11
+ sdk: gradio
12
 
13
+ sdk\_version: "4.0.0"
14
 
15
+ app\_file: app.py
16
 
17
+ pinned: false
18
 
19
+ ---
20
 
21
 
22
 
23
+ \# 🧬 Gene2Text: Interpretable Codon-by-Codon Describer
24
 
 
25
 
 
26
 
27
+ \[!\[Live Demo](https://img.shields.io/badge/🚀\_Live\_Demo-Gene2Text-blue?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)
28
 
29
+ \[!\[Hugging Face Spaces](https://img.shields.io/badge/🤗\_Hugging\_Face-Spaces-yellow?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)
30
 
31
+ \[!\[GitHub](https://img.shields.io/badge/GitHub-Repository-green?style=for-the-badge\&logo=github)](https://github.com/LDolanLDolan/gene2text)
32
 
33
+ \[!\[Python](https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge\&logo=python)](https://www.python.org/)
34
 
35
+ \[!\[Gradio](https://img.shields.io/badge/Gradio-Latest-orange?style=for-the-badge)](https://gradio.app/)
36
 
37
+ \[!\[License: MIT](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)](https://opensource.org/licenses/MIT)
38
 
 
39
 
 
40
 
41
+ \*\*Transform DNA sequences into readable explanations with AI-powered biological insights!\*\*
42
 
43
 
44
 
45
+ > 🎯 \*\*Perfect for students, teachers, researchers, and anyone curious about how DNA codes for life\*\*
46
 
47
 
48
 
49
+ \## 🌟 What It Does
50
 
51
 
52
 
53
+ Gene2Text takes raw DNA sequences (like `ATGCGTAAA`) and explains each codon in plain English:
54