personal-genomics
Analyze raw DNA data from consumer genetics services (23andMe, AncestryDNA, etc.). Extract health markers, pharmacogenomics, traits, ancestry composition, ancient DNA comparisons, and generate comprehensive reports. Uses open-source bioinformatics tools locally โ no data leaves your machine.
What this skill does
# Personal Genomics Analysis ๐งฌ
> **โ ๏ธ IMPORTANT DISCLAIMERS**
>
> **This tool is for educational and research purposes only.**
>
> - **NOT a medical diagnostic tool** โ Results are not clinically validated
> - **Consult healthcare professionals** โ Do not make medical decisions based solely on these results
> - **Privacy responsibility** โ You are responsible for securing your genetic data
> - **No warranties** โ Results may contain errors; verify with clinical testing
> - **Genetic data is sensitive** โ Once exposed, it cannot be "unexposed"
Analyze your raw DNA data locally and privately. **No data is uploaded anywhere.**
## Security & Privacy
๐ **All analysis runs 100% locally on your machine**
- Zero network requests during analysis
- Your genetic data never leaves your computer
- Results stored only in your local filesystem
- No telemetry, no analytics, no external calls
- You control your data completely
**Recommendations:**
- Store DNA files in encrypted volumes
- Don't share raw genetic data publicly
- Be cautious about sharing detailed health results
- Consider implications for family members (shared genetics)
## Supported Input Formats
| Service | File Pattern | SNP Count |
|---------|--------------|-----------|
| **AncestryDNA** | `AncestryDNA.txt` | ~700K |
| **23andMe** | `genome_*.txt` | ~600K |
| **MyHeritage** | CSV export | ~700K |
| **FamilyTreeDNA** | CSV/TSV export | ~700K |
| **LivingDNA** | CSV export | ~600K |
## Quick Start
```bash
# Set your DNA file path
export DNA_FILE="/path/to/your/raw_data.txt"
# Run comprehensive analysis
python3 {baseDir}/analyze_dna.py "$DNA_FILE"
```
## Analysis Capabilities
### ๐ฅ Health Markers
- **Cardiovascular:** APOE, LPA, PCSK9, F5 (Factor V Leiden), 9p21
- **Cancer predisposition:** BRCA1/2 indicators, TP53, MLH1, APC
- **Metabolic:** MTHFR, HFE (hemochromatosis), TCF7L2 (diabetes)
- **Autoimmune:** HLA variants, celiac markers
- **Neurological:** APOE ฮต4 (Alzheimer's risk), Parkinson's markers
- **Eye health:** CFH, ARMS2 (macular degeneration)
### ๐ Pharmacogenomics
- **Drug metabolism:** CYP2D6, CYP2C19, CYP3A4, CYP2C9
- **Warfarin:** VKORC1 sensitivity, CYP2C9 variants
- **Statins:** SLCO1B1 myopathy risk
- **Opioids:** OPRM1 response variants
- **Antidepressants:** SLC6A4, HTR2A response
- **Caffeine:** CYP1A2 metabolism speed
### ๐งฌ Traits & Characteristics
- Eye/hair/skin color prediction
- Muscle fiber composition (ACTN3)
- Caffeine metabolism speed
- Lactose tolerance (MCM6)
- Circadian rhythm (CLOCK genes)
- Alcohol flush reaction (ALDH2)
- Bitter taste perception (TAS2R38)
### ๐ Ancestry & Ancient DNA
- Y-DNA haplogroup prediction
- mtDNA haplogroup prediction
- Ancient population comparisons (AADR database)
- Neanderthal variant analysis
- Population-specific markers
- Parental ancestry inference
### ๐ Advanced Data Science
- Polygenic risk score calculations
- Principal component analysis (PCA)
- Population clustering
- ROH (runs of homozygosity) analysis
- Rare variant identification
## Output
Reports are generated in `~/dna-analysis/reports/`:
| File | Contents |
|------|----------|
| `health_report.json` | Health marker analysis |
| `pharma_report.json` | Pharmacogenomics |
| `traits_report.json` | Physical traits |
| `ancestry_report.json` | Haplogroups & ancestry |
| `ancient_dna_report.json` | Ancient population matches |
| `supplement_protocol.md` | Personalized supplement suggestions |
| `full_report.md` | Human-readable comprehensive summary |
## Advanced Analysis Scripts
### Health & Pharmacogenomics
```bash
python3 {baseDir}/analyze_dna.py "$DNA_FILE" # Core analysis
python3 {baseDir}/extended_analysis.py "$DNA_FILE" # 600+ markers
python3 {baseDir}/advanced_analysis.py "$DNA_FILE" # PRS & clustering
```
### Ancestry & Ancient DNA
```bash
python3 {baseDir}/ethnicity_analysis.py "$DNA_FILE" # Population composition
python3 {baseDir}/ancient_dna.py "$DNA_FILE" # Ancient markers
python3 {baseDir}/ancient_comparison.py "$DNA_FILE" # AADR comparison
python3 {baseDir}/neanderthal_analysis.py "$DNA_FILE" # Archaic variants
python3 {baseDir}/parental_inference.py "$DNA_FILE" # Maternal/paternal split
```
### Utilities
```bash
python3 {baseDir}/convert_to_plink.py "$DNA_FILE" out # PLINK format
python3 {baseDir}/supplement_protocol.py "$DNA_FILE" # Supplement suggestions
```
## For AI Agents
### Structured Output for Agent Consumption
All JSON reports use consistent schemas for easy parsing:
```python
# Example: Reading health results
import json
with open("~/dna-analysis/reports/health_report.json") as f:
health = json.load(f)
# Access specific markers
apoe_status = health["alzheimers"]["apoe_status"]
cardiovascular_risk = health["cardiovascular"]["risk_level"]
```
### Agent-Actionable Insights
The reports include `actionable` fields:
- `priority`: high/medium/low
- `action_type`: monitor/discuss_with_doctor/lifestyle/supplement
- `evidence_level`: strong/moderate/preliminary
- `references`: PubMed IDs for verification
### Integration Example
```python
# Your agent can use this pattern:
if health["mthfr"]["status"] == "compound_heterozygous":
if health["mthfr"]["actionable"]["priority"] == "high":
suggest_supplement("methylfolate", "400-800mcg")
```
## Requirements
- Python 3.10+
- ~500MB disk space for analysis
- 4GB RAM recommended
- Optional: plink2 for advanced analysis
## Installation
```bash
# Via ClawHub
clawhub install personal-genomics
# Or manually
git clone https://github.com/wkyleg/personal-genomics
cd personal-genomics
pip install pandas numpy scipy rich scikit-learn
```
## Limitations
โ ๏ธ **Important limitations to understand:**
1. **Consumer chips miss rare variants** โ Only ~0.02% of genome covered
2. **Imputation has errors** โ Some reported variants are statistical guesses
3. **Population bias** โ Most research is on European populations
4. **Penetrance varies** โ Having a risk variant โ getting the condition
5. **Environment matters** โ Genetics is only part of health outcomes
6. **Science evolves** โ Today's understanding may change
## Ethical Considerations
- **Family implications:** Your DNA reveals information about relatives
- **Insurance:** Some jurisdictions allow genetic discrimination
- **Employment:** Consider privacy before sharing results
- **Law enforcement:** DNA databases have been used in investigations
- **Future unknowns:** We don't know all future uses of genetic data
## References
- [SNPedia](https://www.snpedia.com) โ SNP encyclopedia
- [ClinVar](https://www.ncbi.nlm.nih.gov/clinvar/) โ Clinical variants
- [PharmGKB](https://www.pharmgkb.org) โ Pharmacogenomics
- [AADR](https://reich.hms.harvard.edu/allen-ancient-dna-resource-aadr-downloadable-genotypes-present-day-and-ancient-dna-data) โ Ancient DNA
- [gnomAD](https://gnomad.broadinstitute.org/) โ Population frequencies
## License
MIT License โ Use freely, but **you accept all responsibility for how you use results**.
---
*Built for personal exploration of your own genetics. Use wisely.* ๐งฌ
Related in General
modeling-omnistudio-epc-catalog
IncludedSalesforce Industries CME EPC product-modeling skill for Product2-based catalog creation. Use when creating EPC products, configuring product attributes, building offer bundles with Product Child Items, or reviewing EPC DataPack JSON metadata for product catalog changes. TRIGGER when: user creates or updates Product2 EPC records, AttributeAssignment payloads, AttributeMetadata/AttributeDefaultValues, Offer bundles, or ProductChildItem relationships. DO NOT TRIGGER when: designing OmniScripts/FlexCards/Integration Procedures (use building-omnistudio-omniscript, building-omnistudio-flexcard, or building-omnistudio-integration-procedure), implementing Apex business logic (use generating-apex), or troubleshooting deployment pipelines (use deploying-metadata).
relationship-science-coach
IncludedUse this skill for direct, practical adult relationship coaching: couples conflict, repair, trust, marriage, dating, flirting, attachment patterns, emotional connection, sex, desire differences, eroticism, kink negotiation, affection, love languages, breakups, and long-term passion. Draw on Gottman, EFT and Hold Me Tight, attachment science, modern sex research, Perel, Nagoski, Kerner, Schnarch, Love and Stosny, and flexible love-language tools. Be concrete and low-hedge. Redirect only for imminent danger, abuse, coercive control, minors, non-consent, self-harm, stalking, or medical/legal/psychiatric decisions.
building-sf-integrations
IncludedSalesforce integration architecture and runtime plumbing with 120-point scoring. Use this skill to set up Named Credentials, External Credentials, External Services, REST/SOAP callout patterns, Platform Events, and Change Data Capture. TRIGGER when: user sets up Named Credentials, External Services, REST/SOAP callouts, Platform Events, CDC, or touches .namedCredential-meta.xml files. DO NOT TRIGGER when: Connected App/OAuth config (use configuring-connected-apps), Apex-only logic (use generating-apex), or data import/export (use handling-sf-data).
venue-templates
IncludedAccess comprehensive LaTeX templates, formatting requirements, and submission guidelines for major scientific publication venues (Nature, Science, PLOS, IEEE, ACM), academic conferences (NeurIPS, ICML, CVPR, CHI), research posters, and grant proposals (NSF, NIH, DOE, DARPA). This skill should be used when preparing manuscripts for journal submission, conference papers, research posters, or grant proposals and need venue-specific formatting requirements and templates.
let-fate-decide
IncludedDraws the 12 Houses of the Zodiac Tarot spread to inject entropy into planning when prompts are vague, ambiguous, or casually delegated. Interprets the spread to guide next steps. Use when the user says 'let fate decide', 'YOLO', 'whatever', 'idk', or other nonchalant phrases, makes Yu-Gi-Oh references, or when you are about to arbitrarily pick between multiple reasonable approaches. Prefer over ask-questions-if-underspecified when the user's tone is casual or playful rather than precision-seeking.
net-ops
IncludedCross-platform network troubleshooting (Windows, macOS, Linux) via local or remote shell. Use for: DNS broken, can't resolve hostnames, nslookup/dig works but apps fail, NRPT, WFP, scutil, /etc/resolver, systemd-resolved, /etc/resolv.conf, NetworkManager, VPN DNS leak residue (ProtonVPN/Mullvad/WireGuard/AnyConnect), AV/firewall blocking DNS or DoH, Tailscale DNS interaction, intermittent connectivity, remote diagnostics over SSH.