Calculation of multiple risk profiles
for
23andme reports,using the PGS Catalog.
Visualize PRS calculation results by matched allele counts.
This page defines the Cluster Analysis for the PRS. It imports the ClustJS SDK and builds multiple clustering views from window.prsResults.
-1 (typically colored black).effect_weight values. Rows are PGS models, columns are SNPs, values are effect weights (often z-scored by row). Compares PGS entries by their SNP effect profiles.encodeGenotype() maps diploid calls such as AA, AG, or TT to integers 0β9. Missing or invalid calls become -1 (the sentinel value), typically colored black so absent SNPs are immediately visible.rs123 rs456 rs789 rs999 user1 0 2 -1 7 user2 0 -1 4 7 user3 1 2 4 -1
window.prsResults into matrix format.AA, AG, TT) into numeric values.In short: this page turns PRS and genotype-matching results into matrices, then renders interactive clustering views so you can explore patterns across users, PGS models, SNPs, allele counts, and effect weights.
Compare users and models through PRS and SNP-based clustering. Explore patterns, similarity, and shared variants using interactive clustering.
Interpret clustering and PRS results using your own OpenAI or Claude API key. Only summarized results are sent β no raw genotype data.
Use Transformers.js with Flan-T5 model running locally to analyze your PRS results.
Run AI models locally via WebGPU to analyze your PRS results. Choose from Phi-3, Llama 3, Qwen 2.5, Gemma 2, and more.
WebLLM runs large language models directly in your browser using GPU accelerationβno server or data upload required.
After loading weight and genomic files above, click to calculate PRS.
Upload your own raw 23andMe export file(s) directly from your device. Up to 5 files accepted.
Files are processed locally in your browser and are never uploaded to a server.
Browse and select up to 10 publicly available participants from the Personal Genome Project for demo or research workflows.
Load a set of pre-bundled example participants to quickly explore PRS calculations without uploading any files.
No file upload required β useful for testing and demonstrations.
The PGS Catalog is an open database of published polygenic scores (PGS), annotated with relevant metadata;including scoring files (variants, effect alleles/weights).
A prototype personal risk score calculator, created for research purposes, was developed to demonstrate how the PGS Catalog can be privately and readily applied to readily available direct-to-consumer genetic testing services, such as 23andMe. No software download, installation, or configuration is needed. The PRS web calculator matches individual PGS catalog entries with an individual's 23andMe genome data composed of 600k to 1.4 M single-nucleotide polymorphisms (SNPs). Beta coefficients provide researchers with a convenient assessment of risk associated with matched SNPs. This in-browser application was tested in a variety of personal devices, including smartphones, establishing the feasibility of privately calculating personal risk scores with up to a few thousand reference genetic variations and from the full 23andMe SNP data file (compressed or not).
All data and calculations take place in the browser. No data or calculations circulate by a server. This application is, foremost, an exercise in privacy-preserving biomedical informatics for consumer genomics data.
This calculator was devised as an implementation proof of concept. It has a number of important limitations for epidemiology research and it does not meet criteria for clinical use. The current tool uses pre-imputation genotype data and thus results in a low number of SNP matches. Most important, only the relative risk model (Box 1, eq 2) is calculated, with no effort to determine absolute risk of disease. Finally, the risk calculation will only be attempted for PGS catalog entries reporting effects as beta values under "effect_weight".