agentsclimarketplace

Prs net deep learning agent

Skill rbr7/MedClawMini/skills/prs-net-deep-learning-agent

Geometric deep learning-based polygenic risk score prediction using PRS-Net for modeling gene interactions, enhanced disease prediction, and cross-ancestry portability.From its SKILL.md

Install
npx -y skills add rbr7/MedClawMini --skill prs-net-deep-learning-agent

Assembled from the repository path, not quoted from the project. Check it against their README if it does not work.

One thing to look at

  • 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.

SKILL.md

7.0 KB, ~1.6k tokens by cl100k_base, as published. Nobody here has run it

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

What ships with it

Read from the repository

Just SKILL.md. No reference files, no scripts.

Keep looking

Skills are one crate of 326,144. Ordering is by how many stacks a row turns up in, so the top of any crate is what has actually been picked rather than what has the most stars.