Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
score bindingdb on only exact == measurements, accept partial submissions (single or few function only) with unsubmitted set to chance)
580f4e5 |
Download docs/submission-format.md from PrismScienceOrg/PLUG-challenge: direct link, hf CLI and curl.
- Browser
- Download file 6.28 kB
-
https://huggingface.co/spaces/PrismScienceOrg/PLUG-challenge/resolve/main/docs/submission-format.md
- Command line
-
hf download hf://spaces/PrismScienceOrg/PLUG-challenge/docs/submission-format.md
-
curl -L -o submission-format.md https://huggingface.co/spaces/PrismScienceOrg/PLUG-challenge/resolve/main/docs/submission-format.md
6.28 kB
| # Submission format | |
| *Written for participants.* | |
| A submission is **one `.zip`** containing **eleven files**, one per benchmark, entered in | |
| **one track**. Each file may be `.csv` or `.parquet`. | |
| | Track | Predict | Leaderboard | | |
| |---|---|---| | |
| | `supervised` | the Lo-Hi `test` rows of each benchmark; train on its `train`/`val` rows | Supervised | | |
| | `unsupervised` | every row of each benchmark, unsplit, without fitting to these labels | Unsupervised | | |
| ``` | |
| plug_submission.zip | |
| βββ megascale.csv | |
| βββ fireprot.csv | |
| βββ dms.csv | |
| βββ cafa5.csv | |
| βββ allobench.csv | |
| βββ passerrank.csv | |
| βββ ppi.csv | |
| βββ shs27k.csv | |
| βββ lp-pdbbind.csv | |
| βββ bindingdb.csv | |
| βββ atlas.csv | |
| ``` | |
| A bundle zipped from a directory (`plug_submission/megascale.csv`) works too, and macOS's | |
| `__MACOSX` entries are ignored. | |
| ## Don't hand-build it | |
| ```bash | |
| pip install "plug-challenge @ git+https://huggingface.co/spaces/PrismScienceOrg/PLUG-challenge" | |
| plug-challenge template ./my_submission --track supervised # every file, ids in place | |
| # ...overwrite the prediction columns... | |
| cd my_submission && zip ../plug_submission.zip *.csv && cd .. | |
| plug-challenge validate plug_submission.zip --track supervised # the checks the Space runs | |
| ``` | |
| `validate` needs only the public manifests. Pass `--data-dir` to point it at a local copy | |
| of the [challenge data](https://huggingface.co/datasets/PrismScienceOrg/plug-challenge-data) | |
| and it runs fully offline. | |
| ## The data, and the `datapoint_id` | |
| The challenge data is **ids and splits only**. Per benchmark, `manifest.parquet` lists | |
| every row β its `datapoint_id`, its `row_index`, the protein id(s) it is about, the residue | |
| `position` for the per-residue benchmarks, and its Lo-Hi `split` (`train`, `val`, `test`, | |
| or empty for a row the k-cut dropped) β and `proteins.csv` lists each protein's split. No | |
| labels, sequences, mutations or ligands are redistributed, because not every benchmark's | |
| licence allows it (LP-PDBBind's does not). Fetch the rows themselves from the original | |
| sources with the download scripts and loaders in the plug repository. | |
| `row_index` is a row's position in plug's loader for that benchmark | |
| (`plug.benchmarks.<Benchmark>.rows()`), and the `datapoint_id` is built from it: `"1234"` | |
| for a row, `"1234:56"` for residue 56 (1-based, along that row's sequence) of a | |
| per-residue benchmark. Copy it from the manifest β the template does β rather than | |
| building it. Row order in your file does not matter, and extra columns are ignored. | |
| ## Per-file columns | |
| Ten of the eleven are **one row per `datapoint_id` in your track** β no duplicates, | |
| nothing outside the track, every row present: | |
| | File | Columns | Prediction means | | |
| |---|---|---| | |
| | `megascale.csv` | `datapoint_id`, `pred` | ΞΞG of one single substitution | | |
| | `fireprot.csv` | `datapoint_id`, `pred` | ΞΞG of one substitution | | |
| | `dms.csv` | `datapoint_id`, `pred` | Variant fitness; scored per assay, so only within-assay ranking matters | | |
| | `allobench.csv` | `datapoint_id`, `pred` | Score that this residue is in an allosteric site; any monotone score | | |
| | `passerrank.csv` | `datapoint_id`, `pred` | As above | | |
| | `ppi.csv` | `datapoint_id`, `pred` | Score that the pair interacts. Pairs are undirected β your score should not depend on partner order | | |
| | `lp-pdbbind.csv` | `datapoint_id`, `pred` | Binding affinity of the complex | | |
| | `bindingdb.csv` | `datapoint_id`, `pred` | Binding affinity of the measurement; only exact (`=`) measurements are scored | | |
| | `atlas.csv` | `datapoint_id`, `pred` | Per-residue RMSF | | |
| Only the ranking of a regression prediction is scored, and a Spearman correlation counts by | |
| its magnitude, so neither the scale nor the sign convention of your `pred` matters. | |
| | `shs27k.csv` | `datapoint_id`, `pred_reaction`, `pred_binding`, `pred_catalysis`, `pred_activation`, `pred_inhibition`, `pred_ptmod`, `pred_expression` | One score per STRING mode; all seven required | | |
| `cafa5.csv` is **long form**: one row per `(protein, branch, term)` you predict. | |
| | Column | Type | Meaning | | |
| |---|---|---| | |
| | `datapoint_id` | string | The protein, from the manifest | | |
| | `aspect` | string | `bp`, `mf` or `cc` | | |
| | `term` | string | The GO term, e.g. `GO:0005515` | | |
| | `score` | float | Confidence in `[0, 1]` | | |
| ```csv | |
| datapoint_id,aspect,term,score | |
| 417,mf,GO:0005515,0.92 | |
| 417,bp,GO:0006355,0.61 | |
| ``` | |
| Terms you don't predict are simply absent, and a protein you decline to annotate | |
| entirely is allowed β under Fmax that costs recall but not precision, so being selective | |
| is a real strategy. Predict each `(protein, aspect, term)` at most once. | |
| ## Rules | |
| 1. **Any of the eleven files, at least one.** A benchmark you leave out counts as chance | |
| (0) in your PLUG Score; you are still ranked on the tab of each benchmark you include. | |
| 2. **Exactly your track's ids** in each row-per-datapoint file you include β nothing | |
| missing, nothing extra, no duplicates. (`cafa5.csv` may cover fewer proteins, never | |
| more.) For `bindingdb` that is the exact (`=`) measurements only. | |
| 3. **A method link.** Every submission needs a reachable `https://` link describing how | |
| the predictions were made β a report, preprint or repository. It is shown on the | |
| leaderboard. | |
| 4. **Column names are case-sensitive.** | |
| 5. **Finite numbers only** β no `NaN`, no `inf`, no blanks. | |
| 6. **No constant prediction columns** β for the ten benchmarks scored by a rank | |
| statistic. Spearman and AUROC are undefined without variance, so this is rejected | |
| rather than scored as zero. `cafa5` is exempt: Fmax sweeps a confidence threshold, so | |
| giving every term you predict a score of `1.0` is fine. | |
| 7. `cafa5`'s `score` must be in `[0, 1]`. The other predictions are unbounded. | |
| ## Limits | |
| One submission per Hugging Face account per track every **12 hours**, and only your | |
| **latest** submission to each track is ranked. Validate locally rather than using uploads as a syntax check β a | |
| bundle that fails validation is not stored and does not start your cooldown, but a | |
| successful one does. | |
| ## What you get back | |
| Immediately, in the Submit tab: your per-benchmark primary metric, its improvement over | |
| chance, your PLUG Score, and a submission id. See [`scoring.md`](scoring.md) for how each number is computed. | |