Download tasks/cell_geometry/instruction.md from Tokenwave-AI/REE: direct link, hf CLI and curl.
- Browser
- Download file 5.33 kB
-
https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/cell_geometry/instruction.md
- Command line
-
hf download hf://datasets/Tokenwave-AI/REE/tasks/cell_geometry/instruction.md
-
curl -L -o instruction.md https://huggingface.co/datasets/Tokenwave-AI/REE/resolve/main/tasks/cell_geometry/instruction.md
Visualizing single-cell gene expression cohorts
Goal
The analyst supplies a method that places every cell in each complete expression cohort at one point in two dimensions. The method should preserve local neighbors, global relationships, and relative density in the biological structure represented by the measurements. The evaluator rewards a method whose coordinates preserve more of those relationships under the stated geometry. The evaluator rejects an output that cannot be read as a complete finite embedding.
What You Have
| path | what is in it |
|---|---|
/app/methods/main/ |
your submission; it starts as the starter, and run.sh is its entry point |
/app/core/ |
the shared readers and metric; CORE_DIR=/app/core is set |
/app/data/ |
the practice instances' input objects |
/app/data-answers/ |
the practice instances' separate scoring data |
/app/selfcheck.py |
the rehearsal program |
Each practice instance contains expression.h5ad, an AnnData HDF5 object. One row is one cell in submission order and one column is one gene or transcript feature with its original identifier. The visible practice cohorts contain between 660 and 1920 cells. The visible practice cohorts contain between 43258 and 116918 gene or transcript features. X and layers['log_cp10k'] hold log-CP10k expression, while layers['counts'] preserves the original expression abundance. The cell and gene metadata and any auxiliary arrays already in the object remain available. Observation annotations and gene annotations are inputs, not labels to predict. uns['var_names_all'] keeps the original feature inventory before filtering, and uns['scientific_context'] records the organism, tissue, and assay.
The expression values use the natural-log normalization log(1 + 10000 * counts / cell_total). The source loader removes features expressed in no cells and cells whose expression total is below two. The visible cohort describes mouse blood myeloid lineage differentiation measured with SMART-seq. Its cell-type field uses the labels CMP, GMP, LK CD34+, and LSK. The evaluator provides the original objects in their AnnData form.
What You Submit
Place a general method, including every file it needs, in /app/methods/main/. The executable entry point is run.sh <data dir> <output dir>. If you include build.sh, it runs once offline within 900 seconds; a failed build causes the failure score on every scored instance.
Write embedding.npy in the output directory. It must be a numeric array of shape (n_cells, 2) containing finite real coordinates in the same cell order as expression.h5ad. The file must be at most 64 MB. Coordinates may use any origin, orientation, or scale. The evaluator rejects missing, malformed, partial, nonfinite, complex, or extra-column output, and it ignores any score your method reports.
Feasibility Before Cost
A solution that violates the output contract receives the failure score regardless of its computational cost. The evaluator also treats a timeout, crash, unreadable output, or undefined metric component as a failed run.
Budget
The evaluator supplies TASK_BUDGET_SEC with a per-instance limit of 240 seconds. Keep your method within the allocated CPU threads and avoid assuming more parallelism than the runtime grants. The session has 4 CPUs, 16 GB of memory, 12 hours, and no network access. Grading uses 4 CPUs, 8 GB of memory, no network access, and the per-instance limit.
The session and grading each have 10 GB of storage.
How It Is Judged
The evaluator scores each embedding with ten component slots: trustworthiness, distance correlations against truncated expression and diffusion geometry, local density preservation, and six co-ranking diagnostics. For a component value v_j with calibration endpoints a_j and b_j, its contribution is clip((v_j - a_j) / (b_j - a_j), 0, 1); a zero-width interval contributes 0.5. A component absent from a cohort's protocol contributes zero. The instance score is sum(component contributions) / 10. Higher is better. There is 1 sealed instance. The reported score is the arithmetic mean of the sealed instance score.
Trustworthiness uses 15 input neighbors. The distance correlations use Spearman correlation of pairwise Euclidean distances, with 500 uncentered truncated-SVD components and up to 1,000 diffusion components as available in the evaluator's cached geometry. Density preservation compares logarithmic local radii using 30-neighbor fuzzy graphs. The co-ranking diagnostics use zero-based ranks, row-index tie breaking, and the evaluator's fixed 1e-12 equality tolerance; they are continuity, co-KNN size, co-KNN AUC, local continuity meta criterion, local property, and global property.
The evaluator computes every component from your coordinates. A failed run receives the failure score -1. No score exceeds 1. A constant embedding has undefined distance correlations.
Self-check
Run the practice smoke test with:
python3 /app/selfcheck.py rehearse
It runs your method on the practice input under the same interface and reports the arithmetic mean over practice instances. Its last line is {"score": …}. This is a rehearsal for debugging and model selection; the evaluator's reported score comes from the sealed instances.