K562 STATE β†’ Hallmark mapper

Frozen readout heads used by AlphaApollo's train_calibrated_tool_routed_fusion experiments. Each head maps a 2,000-feature K562 STATE expression-delta vector to signed mean differences in AUCell for the 50 PerturbHD Hallmark targets. The output columns follow the stored hallmark_ids order. A larger score indicates a larger predicted positive effect.

There is one fitted head per official PerturbHD split. Each uses that split's TRAIN partition and applies its original StandardScaler followed by a multi-output Ridge regression. Split 1 is the exact source head used for the K562 Dev10 experiments. Select the same official split as the evaluation and keep that choice fixed across the episode.

Input and output

  • The input is an array of shape (n_perturbations, 2000). Pass the actual feature IDs in column order. The loader checks them against the pinned STATE feature axis.
  • Each row is the mean predicted perturbed X_hvg minus the mean predicted non-targeting X_hvg. The original capture used eight predicted cells per perturbation and 64 controls, with seed 42. Source checkpoint and capture identities are in manifest.json.
  • An unsupported perturbation can be supplied as a full NaN row. This preserves its place in the candidate list and produces a full NaN output row. The fusion workflow can then use the other available sources.
  • The return value has shape (n_perturbations, 50). These are STATE readout estimates. The fusion workflow handles source weights and final scores downstream.

Use the mapper

Download mapper.py, manifest.json, and the single split-N.npz file for your evaluation split. Pin the Hugging Face commit SHA with revision when downloading. The loader requires NumPy and uses allow_pickle=False. STATE inference runs separately using the pinned ST-HVG-Replogle checkpoint.

# Run from a directory that contains mapper.py and split-1.npz.
from mapper import load_mapper

mapper = load_mapper(".", official_split=1)
effects = mapper.predict(expression_delta, feature_ids=state_feature_ids)
angiogenesis = effects[:, mapper.hallmark_ids.index("HALLMARK_ANGIOGENESIS")]

Here expression_delta and state_feature_ids come from your STATE output. The mapper files contain scaler statistics, coefficients, intercepts, feature IDs and Hallmark IDs. manifest.json records their SHA-256 digests. The trained head is a K562-specific input to a research benchmark. To use a different STATE checkpoint, feature axis or cell line, qualify a matching readout.

Export verification

The export reproduced 256,050 finite values from the original heads exactly across the three splits and preserved all 299 unavailable rows per split. Split 1 was also checked against 25,100 cells of the frozen Dev10 STATE score cache, including unavailable entries. These checks compare inference output, not biological performance. No model was refitted for the export.

Source data and protocol: PerturbHD, replogle_k562_essential_full, MSigDB 2023.1.Hs Hallmark target IDs. This release contains the mapper and its fitted numeric parameters.

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support