LDolanLDolan commited on
Commit Β·
c1e3097
1
Parent(s): 7711248
Add professional README with badges and documentation
Browse files123456789101112---title: Gene2Textemoji: πcolorFrom: graycolorTo: pinksdk: gradiosdk_version: 5.38.0app_file: app.pypinned: false---Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362\# 𧬠Gene2Text: Interpretable Codon-by-Codon Describer\[!\[Live Demo](https://img.shields.io/badge/π\_Live\_Demo-Gene2Text-blue?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)\[!\[Hugging Face Spaces](https://img.shields.io/badge/π€\_Hugging\_Face-Spaces-yellow?style=for-the-badge)](https://huggingface.co/spaces/LDolan/Gene2Text)\[!\[GitHub](https://img.shields.io/badge/GitHub-Repository-green?style=for-the-badge\&logo=github)](https://github.com/LDolan/gene2text)\[!\[Python](https://img.shields.io/badge/Python-3.8+-blue?style=for-the-badge\&logo=python)](https://www.python.org/)\[!\[Gradio](https://img.shields.io/badge/Gradio-Latest-orange?style=for-the-badge)](https://gradio.app/)\[!\[License: MIT](https://img.shields.io/badge/License-MIT-green?style=for-the-badge)](https://opensource.org/licenses/MIT)\*\*Transform DNA sequences into readable explanations with AI-powered biological insights!\*\*> π― \*\*Perfect for students, teachers, researchers, and anyone curious about how DNA codes for life\*\*\## π What It DoesGene2Text takes raw DNA sequences (like `ATGCGTAAA`) and explains each codon in plain English:```π Codon 1: ATG β Methionine π‘ The universal start codon - where protein synthesis beginsπ€ Codon 2: CGT β Arginine π‘ Positively charged amino acid - important for protein-DNA interactionsπ Codon 3: TAA β STOP π‘ Amber stop codon - signals end of protein synthesis```\## β¨ Key Features\- 𧬠\*\*Complete Genetic Code\*\*: All 64 codons with biological context\- π \*\*Educational Descriptions\*\*: Learn what each amino acid does\- π \*\*Multiple Reading Frames\*\*: Analyze DNA in all 3 possible reading frames\- π§ͺ \*\*Real Examples\*\*: Pre-loaded sequences from insulin, hemoglobin, and GFP\- π¨ \*\*Clean Interface\*\*: Simple, educational design perfect for classrooms\- β‘ \*\*Error Handling\*\*: Automatically cleans and validates input sequences\- π± \*\*Mobile Friendly\*\*: Works on any device\## π Try It Now!\*\*π \[Launch Gene2Text](https://huggingface.co/spaces/LDolan/Gene2Text) π\*\*\## π Perfect For| User Type | Use Case ||-----------|----------|| π \*\*Students\*\* | Learning molecular biology and genetics || π©βπ« \*\*Teachers\*\* | Explaining the genetic code in classrooms || π¬ \*\*Researchers\*\* | Quickly interpreting DNA sequences || π» \*\*Bioinformatics Beginners\*\* | Understanding sequence analysis || π€ \*\*Curious Minds\*\* | Discovering how DNA codes for proteins |\## π How to Use1\. \*\*Enter a DNA sequence\*\* or select an example2\. \*\*Choose a reading frame\*\* (0, 1, or 2)3\. \*\*Toggle detailed descriptions\*\* for more biological context4\. \*\*Click "Analyze Sequence"\*\* to see the results!\### Example Sequences Included\- \*\*Basic Example\*\*: `ATG GCT TAA` (start, alanine, stop)\- \*\*Insulin Gene\*\*: Partial sequence from human insulin\- \*\*Beta-globin\*\*: From hemoglobin protein\- \*\*Green Fluorescent Protein\*\*: From jellyfish GFP\## π οΈ Technology Stack\- \*\*Frontend\*\*: \[Gradio](https://gradio.app/) - Modern web interface\- \*\*Backend\*\*: Pure Python with complete genetic code\- \*\*Data\*\*: Standard genetic code table with biological annotations\- \*\*Deployment\*\*: \[Hugging Face Spaces](https://huggingface.co/spaces)\- \*\*Version Control\*\*: Git \& GitHub\## ποΈ Project Structure```gene2text/βββ app.py # Main Gradio interfaceβββ codon\_table.py # Complete genetic code + translation logicβββ requirements.txt # Python dependenciesβββ README.md # This file```\## 𧬠The Science Behind It\### Central Dogma: DNA β RNA β Protein1\. \*\*DNA\*\* stores genetic information in 4-letter code (A, T, G, C)2\. \*\*Codons\*\* are 3-letter "words" that specify amino acids3\. \*\*Proteins\*\* are built from chains of amino acids4\. \*\*Reading Frames\*\* matter - shifting by 1 nucleotide changes everything!\### Special Codons\- π \*\*Start Codon (ATG)\*\*: Methionine - where translation begins\- π \*\*Stop Codons (TAA, TAG, TGA)\*\*: Signal end of protein\- π€ \*\*Regular Codons\*\*: 61 codons coding for 20 amino acids\## π Run Locally```bash\# Clone the repositorygit clone https://github.com/LDolan/gene2text.gitcd gene2text\# Install dependenciespip install -r requirements.txt\# Run the apppython app.py```Then open `http://localhost:7860` in your browser.\## π¨ Customization IdeasWant to extend Gene2Text? Here are some ideas:\- π \*\*Reverse translation\*\*: Protein sequence β possible DNA sequences\- π \*\*Codon usage bias\*\*: Show organism-specific preferences\- π§ͺ \*\*Mutation analysis\*\*: Compare wild-type vs mutant sequences\- π \*\*Visualization\*\*: Generate codon wheel or amino acid property charts\- π \*\*Multiple organisms\*\*: Support mitochondrial or bacterial codes\## π Educational Applications\### In the Classroom\- \*\*Introductory Biology\*\*: Demonstrate genetic code basics\- \*\*Molecular Biology\*\*: Explore translation mechanisms\- \*\*Bioinformatics\*\*: Learn sequence analysis fundamentals\- \*\*Genetics\*\*: Understand mutation effects\### For Self-Learning\- Experiment with real gene sequences\- Compare sequences from different organisms\- Understand how mutations affect proteins\- Learn amino acid properties and functions\## π¬ Real-World ApplicationsUnderstanding DNA sequences is crucial for:\- \*\*Medical Genetics\*\*: Diagnosing genetic diseases\- \*\*Drug Development\*\*: Designing protein-based therapeutics\- \*\*Biotechnology\*\*: Engineering proteins for industry\- \*\*Evolution\*\*: Comparing species and tracking changes\- \*\*Forensics\*\*: DNA fingerprinting and identification\## π€ ContributingContributions welcome! Feel free to:\- π Report bugs or issues\- π‘ Suggest new features\- π Add new example sequences\- π¨ Improve the user interface\- π Enhance documentation\## π LicenseThis project is licensed under the MIT License - see the \[LICENSE](LICENSE) file for details.\## π Acknowledgments\- Built with \[Gradio](https://gradio.app) for the amazing web interface framework\- Deployed on \[Hugging Face Spaces](https://huggingface.co/spaces) for free hosting\- Inspired by the need for accessible bioinformatics education\- Genetic code based on the universal standard genetic code\## π Contact \& Support\- π \*\*Live Demo\*\*: \[Gene2Text on Hugging Face](https://huggingface.co/spaces/LDolan/Gene2Text)\- π§ \*\*GitHub Issues\*\*: \[Report bugs or request features](https://github.com/LDolan/gene2text/issues)\- π¬ \*\*Discussions\*\*: \[Join the conversation](https://github.com/LDolan/gene2text/discussions)---\*\*Made with β€οΈ for biology education\*\* | Helping make molecular biology accessible to everyone!!\[Gene2Text Demo](https://via.placeholder.com/800x400/1f2937/white?text=π§¬+Gene2Text+Demo+π§¬)
README.md+360-10