提供全面的本地 DNA 分析,涵盖 30 个类别的 1600+ 个标记。为 AI 智能体提供隐私优先的基因分析。
python comprehensive_analysis.py /path/to/dna_file.txt
当用户提及以下内容时,激活此技能:
- DNA 分析、基因分析、基因组分析
- 23andMe、AncestryDNA、MyHeritage 结果
- 药物基因组学、药物-基因相互作用
- 药物相互作用、用药安全
- 遗传风险、疾病风险、健康风险
- 携带者状态、携带者检测
- VCF 文件分析
- APOE、MTHFR、CYP2D6、BRCA 或其他基因名称
- 多基因风险评分
- 单倍群、母系谱系、父系谱系
- 祖源构成、种族
- 遗传性癌症、林奇综合征
- 自身免疫遗传学、HLA、乳糜泻
- 疼痛敏感性、阿片类药物反应
- 睡眠优化、睡眠类型、咖啡因代谢
- 饮食遗传学、乳糖不耐受、乳糜泻
- 运动遗传学、运动表现
- 紫外线敏感性、皮肤类型、黑色素瘤风险
- 端粒长度、长寿遗传学
~/dna-analysis/reports/
agent_summary.json - AI 优化,按优先级排序full_analysis.json - 完整数据report.txt - 人类可读报告genetic_report.pdf - 专业 PDF 报告from markers.medication_interactions import check_medication_interactions
result = check_medication_interactions(
medications=["warfarin", "clopidogrel", "omeprazole"],
genotypes=user_genotypes
)
# 返回严重/重要/中等程度的相互作用及替代方案
from markers.sleep_optimization import generate_sleep_profile
profile = generate_sleep_profile(genotypes)
# 返回理想的起床/睡眠时间、咖啡因摄入截止时间等
from markers.dietary_interactions import analyze_dietary_interactions
diet = analyze_dietary_interactions(genotypes)
# 返回针对特定食物的指导
from markers.athletic_profile import calculate_athletic_profile
profile = calculate_athletic_profile(genotypes)
# 返回力量/耐力类型、恢复概况、受伤风险
from markers.uv_sensitivity import generate_uv_sensitivity_report
uv = generate_uv_sensitivity_report(genotypes)
# 返回皮肤类型、SPF 建议、黑色素瘤风险
from markers.explanations import generate_plain_english_explanation
explanation = generate_plain_english_explanation(
rsid="rs3892097", gene="CYP2D6", genotype="GA",
trait="药物代谢", finding="弱代谢者携带者"
)
from markers.advanced_genetics import estimate_telomere_length
telomere = estimate_telomere_length(genotypes)
# 返回相对估计值及相应注意事项
agent_summary.json 提供:
{
"critical_alerts": [],
"high_priority": [],
"medium_priority": [],
"pharmacogenomics_alerts": [],
"apoe_status": {},
"polygenic_risk_scores": {},
"haplogroups": {
"mtDNA": {"haplogroup": "H", "lineage": "maternal"},
"Y_DNA": {"haplogroup": "R1b", "lineage": "paternal"}
},
"ancestry": {
"composition": {},
"admixture": {}
},
"hereditary_cancer": {},
"autoimmune_risk": {},
"pain_sensitivity": {},
"lifestyle_recommendations": {
"diet": [],
"exercise": [],
"supplements": [],
"avoid": []
},
"drug_interaction_matrix": {},
"data_quality": {}
}
from comprehensive_analysis import main
main() # 使用命令行参数
from markers.haplogroups import analyze_haplogroups
result = analyze_haplogroups(genotypes)
print(result["mtDNA"]["haplogroup"]) # 例如:"H"
from markers.ancestry_composition import get_ancestry_summary
ancestry = get_ancestry_summary(genotypes)
from markers.cancer_panel import analyze_cancer_panel
cancer = analyze_cancer_panel(genotypes)
if cancer["pathogenic_variants"]:
print("警报:检测到致病性变异")
from pdf_report import generate_pdf_report
pdf_path = generate_pdf_report(analysis_results)
from exports import generate_genetic_counselor_export
clinical = generate_genetic_counselor_export(results, "clinical.json")