Analyze 23andMe v5 raw data files and generate health/trait reports with risk scoring.
python3 skills/genome-report/scripts/genome_report.py <genome_file.txt> [options]
| Flag | Values | Default | Description | ||||||
|---|---|---|---|---|---|---|---|---|---|
| ------ | -------- | --------- | ------------- | ||||||
--category | `all\ | cardio\ | cognitive\ | metabolic\ | pharma\ | athletic\ | traits` | all | Category filter |
--output | `text\ | json\ | html` | text | Output format | ||||
--output-path | filepath | auto | HTML output path | ||||||
--family DIR | directory path | — | Family comparison mode |
# Full report to console
python3 skills/genome-report/scripts/genome_report.py ~/my_genome.txt
# HTML report for one category
python3 skills/genome-report/scripts/genome_report.py ~/my_genome.txt --category cardio --output html
# Family comparison
python3 skills/genome-report/scripts/genome_report.py --family ~/genomes/ --output html
23andMe v5 raw data (tab-separated): rsid chromosome position genotype
Lines starting with # are skipped. Genotypes marked -- (no-call) are excluded.
~55 curated SNPs across 6 categories:
The SNP reference data lives in references/snp_database.json. Edit this file to add/update SNPs without changing the script. Each entry has: rsid, gene, category, trait, risk_allele, and genotype-specific effect descriptions.
共 1 个版本