File size: 1,978 Bytes
44074cc
161ee58
44074cc
 
 
ea1645c
44074cc
ea1645c
44074cc
ea1645c
44074cc
ea1645c
 
 
 
 
 
 
 
 
44074cc
 
65dd446
44074cc
 
ea1645c
 
 
 
 
 
 
 
 
44074cc
ea1645c
44074cc
ea1645c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
---
pretty_name: "PRIMO benchmark inputs"
license: other
---

# PRIMO benchmark inputs

PRIMO evaluates whether embeddings from biological foundation models preserve clinically relevant information at the patient level.

This repository contains the data used to generate benchmark submissions. Dataset identities are hidden: files are grouped under IDs such as `d001` and `d002`, without disclosing the disease, tissue, or prediction target. Models produce one embedding per sample, and the evaluation is run separately in the [PRIMO Space](https://huggingface.co/spaces/ScientaLab/primo-eval).

## Contents

`datasets.yaml` lists each dataset's ID, path, number of samples, number of genes, and gene identifier type.

Each dataset directory contains an `expression.h5ad` file with raw counts stored as `AnnData`. Rows are samples identified by `sample_id`. Columns use NCBI gene IDs, with gene symbols included in the metadata.

## Submit embeddings

1. Download the data:

   ```bash
   hf download ScientaLab/primo --repo-type dataset --local-dir primo
   ```

2. Generate one embedding per sample for every dataset. Embedding dimensions may differ between datasets.

3. Combine the embeddings into one CSV, TSV, Parquet, or NPZ file. Tabular files must contain `dataset_id`, `sample_id`, and one column per embedding dimension (`e0`, `e1`, etc.). NPZ files must contain `dataset_ids`, `sample_ids`, and `embeddings`.

4. Upload the file to the [PRIMO evaluation Space](https://huggingface.co/spaces/ScientaLab/primo-eval).

## Scoring

For each task, PRIMO trains the same linear probe on fixed cross-validation folds. Classification tasks use AUROC and regression tasks use Pearson correlation. Dataset scores are converted to a 0 to 1 skill score and aggregated by medical specialty.

A submission is ranked only if it covers every dataset. Labels are kept private and evaluation runs server-side.

Each dataset is redistributed under its source's original open license.