Implement simple Streamlit app for DNA insertion site analysis #1
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR implements a complete Streamlit web application for finding and checking DNA insertion sites using PyDNA and BioPython, addressing the requirement for "a simple streamlit app".
Features
🧬 DNA Sequence Analysis: Users can input DNA sequences either by typing/pasting directly or uploading FASTA files
⚗️ Restriction Enzyme Mapping: Interactive selection of common restriction enzymes (EcoRI, BamHI, HindIII, XhoI, NotI, SalI, KpnI, XbaI) to find cutting sites
📊 Sequence Statistics: Real-time calculation and display of sequence length, GC content, and molecular weight
🔍 Insertion Site Detection: Identifies potential cloning insertion points with detailed position information
📈 Interactive Results: Results displayed in sortable, exportable tables with comprehensive analysis summaries
Implementation Details
The app is built with:
Key components:
app.py
: Main Streamlit application with modular analysis functionsrequirements.txt
: All necessary dependencies pinned to stable versionsREADME.md
with comprehensive usage instructions and examplesTesting
The application has been thoroughly tested with sample DNA sequences containing known restriction sites:
Successfully identifies:
The app includes built-in help documentation and robust error handling for invalid sequences and edge cases.
Usage
Perfect for molecular biology hackathons, cloning experiment planning, and educational purposes.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
checkip.amazonaws.com
/usr/bin/python /home/REDACTED/.local/bin/streamlit run app.py --server.port 8501 --server.headless true
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.