OpenClaw-Medical-Skills prs-net-deep-learning-agent

<!--

install
source · Clone the upstream repo
git clone https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/prs-net-deep-learning-agent" ~/.claude/skills/freedomintelligence-openclaw-medical-skills-prs-net-deep-learning-agent && rm -rf "$T"
OpenClaw · Install into ~/.openclaw/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/FreedomIntelligence/OpenClaw-Medical-Skills "$T" && mkdir -p ~/.openclaw/skills && cp -r "$T/skills/prs-net-deep-learning-agent" ~/.openclaw/skills/freedomintelligence-openclaw-medical-skills-prs-net-deep-learning-agent && rm -rf "$T"
manifest: skills/prs-net-deep-learning-agent/SKILL.md
source content
<!-- # COPYRIGHT NOTICE # This file is part of the "Universal Biomedical Skills" project. # Copyright (c) 2026 MD BABU MIA, PhD <md.babu.mia@mssm.edu> # All Rights Reserved. # # This code is proprietary and confidential. # Unauthorized copying of this file, via any medium is strictly prohibited. # # Provenance: Authenticated by MD BABU MIA -->

name: 'prs-net-deep-learning-agent' description: 'Geometric deep learning-based polygenic risk score prediction using PRS-Net for modeling gene interactions, enhanced disease prediction, and cross-ancestry portability.' measurable_outcome: Execute skill workflow successfully with valid output within 15 minutes. allowed-tools:

  • read_file
  • run_shell_command

PRS-Net Deep Learning Agent

The PRS-Net Deep Learning Agent implements interpretable geometric deep learning for polygenic risk score prediction. PRS-Net models non-linear gene-gene interactions and biological network relationships to enhance disease prediction accuracy and improve cross-ancestry portability compared to traditional linear PRS methods.

When to Use This Skill

  • When linear PRS methods show limited performance.
  • For modeling complex gene-gene interactions.
  • To improve PRS portability across ancestries.
  • When biological interpretability of PRS is needed.
  • For integrating pathway and network information.

Core Capabilities

  1. Non-Linear PRS: Capture gene-gene interactions via deep learning.

  2. Network Integration: Incorporate protein-protein interaction networks.

  3. Interpretability: Identify important pathways and gene modules.

  4. Cross-Ancestry Transfer: Improved portability via learned biology.

  5. Multi-Task Learning: Joint modeling of related traits.

  6. Uncertainty Quantification: Provide prediction confidence.

PRS-Net Architecture

ComponentFunctionInnovation
Input LayerGene-level summariesAggregated variant effects
Network EncoderPPI graph convolutionBiological structure
Attention LayerGene importanceInterpretability
PredictorDisease/trait predictionNon-linear mapping
ExplanationPathway enrichmentBiological insights

Comparison to Traditional PRS

AspectLinear PRSPRS-Net
Gene InteractionsNot modeledGNN captures
Network BiologyIgnoredIntegrated
InterpretabilityLimited (SNP weights)Pathway-level
Cross-AncestryOften poorImproved
Computational CostLowModerate
Training Data NeededLowModerate

Workflow

  1. Input: Individual genotypes, PPI network, training phenotypes.

  2. Gene Summarization: Aggregate SNPs to gene-level scores.

  3. Network Encoding: Learn representations on PPI graph.

  4. Prediction: Non-linear disease risk prediction.

  5. Interpretation: Extract important genes and pathways.

  6. Cross-Ancestry: Apply to diverse populations.

  7. Output: Risk scores, uncertainty, biological explanations.

Example Usage

User: "Calculate PRS-Net scores for Type 2 Diabetes with pathway-level interpretation."

Agent Action:

python3 Skills/Precision_Medicine/PRS_Net_Deep_Learning_Agent/prs_net_predict.py \
    --genotypes cohort_genotypes.vcf.gz \
    --ppi_network string_ppi.graphml \
    --trait type2_diabetes \
    --model_weights prs_net_t2d_v1.pt \
    --interpret_pathways true \
    --ancestry_calibration multi \
    --output prs_net_results/

Input Requirements

InputFormatPurpose
GenotypesVCF/PLINKSNP data
PPI NetworkGraphML, edge listGene relationships
Gene MappingBEDSNP-to-gene
Training LabelsPhenotype fileModel training
GWAS SummaryOptionalInitialization

Output Components

OutputDescriptionFormat
PRS-Net ScoreNon-linear polygenic score.csv
Risk PercentilePopulation ranking.csv
Gene ImportanceAttention weights.csv
Pathway EnrichmentTop pathways.csv
Module VisualizationNetwork subgraphs.png
UncertaintyPrediction confidence.json

Network Biology Integration

NetworkSourceGenesEdges
STRING PPIString-db19,0005.5M
BioGRIDBioGRID18,0001.2M
ReactomeReactome10,000250K
GO Biological ProcessGene Ontology18,000Hierarchical

Performance Benchmarks

DiseaseLinear PRS AUCPRS-Net AUCImprovement
Type 2 Diabetes0.650.72+7%
Coronary Artery Disease0.700.76+6%
Schizophrenia0.620.68+6%
Alzheimer's Disease0.680.74+6%

Cross-Ancestry Portability

AncestryLinear PRS DropPRS-Net Drop
EUR → EAS-15%-8%
EUR → AFR-30%-18%
EUR → SAS-20%-12%
EUR → AMR-18%-10%

AI/ML Components

Graph Neural Networks:

  • Graph convolutional networks (GCN)
  • Graph attention networks (GAT)
  • Message passing neural networks

Interpretability:

  • Attention visualization
  • Integrated gradients
  • Pathway enrichment analysis

Transfer Learning:

  • Pre-training on EUR
  • Fine-tuning on diverse
  • Domain adaptation

Prerequisites

  • Python 3.10+
  • PyTorch, PyTorch Geometric
  • NetworkX, igraph
  • Scanpy (optional for visualization)
  • GPU recommended

Related Skills

  • Multi_Ancestry_PRS_Agent - Traditional multi-ancestry PRS
  • PopEVE_Variant_Predictor_Agent - Variant interpretation
  • Pharmacogenomics_Agent - Drug-gene interactions
  • Pathway_Analysis - Pathway enrichment

Biological Interpretation

Interpretation LevelOutputClinical Use
GeneTop contributing genesTarget identification
PathwayEnriched pathwaysMechanism understanding
ModuleNetwork subgraphsBiological insight
Hub GenesCentral genesDruggable targets

Training Considerations

FactorRecommendationRationale
Sample Size>10,000Deep learning needs data
Class BalanceOversample or weightAvoid bias
ValidationCross-validationAvoid overfitting
RegularizationDropout, L2Generalization

Special Considerations

  1. Interpretability Trade-offs: More complex = less interpretable
  2. Computational Requirements: GPU accelerates training
  3. Network Quality: PPI accuracy affects results
  4. Gene Mapping: SNP-to-gene assignment matters
  5. Overfitting: Regularization essential

Clinical Applications

ApplicationPRS-Net AdvantageBenefit
Risk StratificationHigher accuracyBetter prediction
Biological InsightPathway interpretationMechanism
Drug TargetsHub gene identificationTherapeutic targets
Ancestry EquityBetter portabilityFairer prediction

Limitations

LimitationImpactFuture Direction
Training DataEUR-dominatedDiverse cohorts
Network CompletenessMissing edgesMulti-network integration
Rare VariantsNot well capturedWGS + rare variant methods
Clinical ValidationLimited trialsProspective studies

Author

AI Group - Biomedical AI Platform

<!-- AUTHOR_SIGNATURE: 9a7f3c2e-MD-BABU-MIA-2026-MSSM-SECURE -->