Downloads · 30 days
0
deep-plasma-phenotyping/somascan-ad-classification-tabpfn-v2
somascan-ad-classification-tabpfn-v2 is a tabular classification model from deep-plasma-phenotyping. Use it for the tabular classification task on the model card, and read the license before you ship it in a product. It is set up for tabpfn. The card lists the license as other.
33 lightweight, standalone models that predict discrete Alzheimer's-disease–related phenotypes (e.g. medication use, APOE genotype, vascular pathology, sex) from SomaScan plasma proteomics. The full list is in phenoty…
Downloads · 30 days
0
Access
Public
Updated Oct 20, 2026
Repo size
732 MB
Likes
0
Public
Click a slice to open those files.
.pt732 MB · 100%
From the Hugging Face model README
33 lightweight, standalone models that predict discrete Alzheimer's-disease–related
phenotypes (e.g. medication use, APOE genotype, vascular pathology, sex) from SomaScan
plasma proteomics. The full list is in phenotypes.tsv.
These accompany the manuscript "Fusing depth and breadth: Plasma proteomics scales deep
Alzheimer's phenotyping to global cohorts." Continuous phenotypes (cognition, neuropathology burden,
demographics, longitudinal change) live in the companion repo somascan-ad-regression-tabpfn-v2.
ln(RFU); not log2 or log10) — aptamers named by SeqId (e.g. seq.10001.7); see input_schema.csv (7,287 aptamers). Each model uses its own ~500 selected aptamers.meta/<id>.json + one TabM .pt (~22 MB) per phenotype.TabPFN_pipeline (not needed at inference).pip install torch tabm rtdl_num_embeddings numpy pandas
# predicted label for ALL 33 phenotypes (sample_id + one column per phenotype)
python predict.py --input plasma_somascan.tsv --output predictions.csv
# also emit per-class probabilities (columns "<name>::<classlabel>")
python predict.py --input plasma.tsv --output out.csv --proba
# specific phenotypes (name or target_id); list what's available
python predict.py --input plasma.tsv --output out.csv --target dcfdx,apoe_genotype
python predict.py --list
predict.py depends on public packages only. Input is a CSV/TSV with a sample-id column
(sample_id / SAMPLE.ID, optional) plus SomaScan aptamer columns matched by name; column
order is irrelevant and extra columns are ignored. The models were trained on complete data and
ship no imputer — provide complete aptamer values (NaN cells are rejected).
| path | what |
|---|---|
predict.py | standalone loader / CLI |
phenotypes.tsv | index: target_id, name, paper category + description, metric, n_classes, CV teacher/student |
meta/<id>.json | per-model: selected feature names, arch, task, classes, weights path |
models/<id>_student_tabm.pt | TabM student weights (+ embedding bins) |
input_schema.csv | the 7,287 SomaScan SeqIds the panel can supply |
parity_table.csv | per-phenotype teacher-vs-student CV detail |
--method CatBoost, --selected_k 500).tabpfn-v2-classifier.ckpt), a foundation model.gmm:10000). At inference, per-member sigmoid (binary) / softmax (multiclass) are averaged across the TabM ensemble; classes in each meta.json maps the output back to the original label.Evaluated on the manuscript's exact per-phenotype, person-grouped 10-fold partition (recovered and re-applied), so these numbers are directly comparable to the paper. The student is distilled separately within each fold.
| task type | metric | n | teacher (mean) | student (mean) | student ≥ teacher |
|---|---|---|---|---|---|
| Binary | ROC-AUC | 26 | 0.658 | 0.662 | 85% |
| Multiclass | macro OVR-AUC | 6 | 0.654 | 0.656 | 67% |
| APOE genotype | accuracy | 1 | 0.981 | 0.982 | — |
Per-phenotype numbers are in parity_table.csv.
Student weights are distilled derivatives of a TabPFN v2 teacher. The teacher
(Prior-Labs/TabPFN-v2-clf) is released under the Prior Labs License — Apache 2.0 with an
additional attribution requirement (https://priorlabs.ai/tabpfn-license/). As an
Apache-2.0-based license, these derivative students may be redistributed and used provided the
Prior Labs / TabPFN attribution is preserved.
If you use these models, cite the manuscript (citation TBD), TabPFN (Hollmann et al., Nature 2025), and TabM (Gorishniy et al., 2024).