Bioactivity landscape

From GoogleCloudPlatform/LifeSciences · View interactive version

Bioactivity landscape is an AI agent skill from the GitHub repository GoogleCloudPlatform/LifeSciences. Ingest screening data, assess dose-response quality, and compute selectivity margins — activity cutoffs, 4PL/Hill curve fitting, Z-factor screen quality, bell-shaped curve detection, and selectivity ratio computation with margin classification. Use when interpreting HTS screening results, evaluating

How to use this skill

Skill file

1. When to use, and when not

Use this skill when you need to ingest assay data and interpret

screening or dose-response results. Entry points include:

readout data (percent inhibition or fold change).

assessment, and goodness-of-fit checks.

determine whether the assay window separates signal from noise.

dose-response curves that suggest compound toxicity at high

concentrations.

analysis.

primary and off-targets from a selectivity panel.

selectivity claim.

Do not use when:

Brenk, aggregator) -> compound-property-profile.

-> binding-mode-analysis.

-> target-genetic-evidence.

-> protein-structure-confidence.

-> pocket-druggability.

2. Preconditions

a top-level schema field and a data array. Each data point

requires: well_id, compound_id, readout_value, readout_type

(percent_inhibition or fold_change), assay_type, plate_id,

run_id, concentration.

POSITIVE_CONTROL, NEGATIVE_CONTROL) are used for Z-factor

calculation but excluded from compound analysis.

before first use — its verdict line (STOP or PROCEED) is the gate.

oase.selectivity-panel.v1) with compound_id, primary_target,

and off_targets array (max 10,000). Per target: name,

activity_type (IC50 or Ki, must be uniform — mixed panels refused),

activity_value (positive numeric, nM), activity_unit. Optional

panel_complete boolean (default false).

3. Tool invocations

| Question | Run | Writes to |

|---|---|---|

| Ingest and validate assay data | oase assay ingest <ASSAY_FILE> | raw/assays/<name>.assay.json<br>raw/assays/<name>.meta.json |

| Analyze screen quality, activity, and dose-response | oase assay analyze <ARTIFACT> | raw/assays/<stem>.analysis.json |

| Compute selectivity ratios from a panel | oase selectivity compare <PANEL_FILE> | raw/assays/<slug>.selectivity.json<br>raw/assays/<slug>.meta.json |

| Apply margin thresholds to stored selectivity data | oase selectivity analyze <ARTIFACT> | raw/assays/<slug>.analysis.json |

Run ingest before analyze. analyze reads stored data from disk

and can be re-run with different thresholds without re-ingesting.

The <name> stem is derived from assay_type and run_id in the

input data. The <ARTIFACT> for analyze is the .assay.json

produced by ingest.

For selectivity, run compare before analyze. The <ARTIFACT> for

analyze is the .selectivity.json produced by compare.

4. Interpretation contract

Analysis structure

Unlike tools that produce a single verdict, assay analyze produces a

multi-component analysis:

acceptable, unusable, or unknown — based on Z-factor computed

from control wells. The Z-factor thresholds come from the

assay-screen-quality@1.0 threshold set: cite z_factor_excellent

and z_factor_acceptable by name. Provenance: Zhang, Chung &

Oldenburg, J Biomol Screen 1999;4(2):67-73.

activity cutoff threshold is resolved), curve_fit (4PL/Hill

parameters — bottom, top, ec50, hill_slope, r_squared,

n_points — or null when fitting fails or too few concentrations

exist), bell_shaped (boolean), advisories (list of strings

including any skipped-check notices).

n_curves_fitted, n_bell_shaped.

(compounds with any advisory), screen_quality_verdict.

Interpret each component for what it measures. Do not collapse this

structure into a single pass/fail verdict.

Selectivity analysis structure

selectivity analyze produces per-off-target records: off_target,

selectivity_ratio, activity_type, classification (adequate,

marginal, insufficient, or UNRESOLVED). hERG: classified against

selectivity-margins@1.0 — adequate (>= herg_margin), marginal (>=

herg_marginal but < herg_margin), insufficient (< herg_marginal).

Cite by name; quote from thresholds_applied. Non-hERG: always

UNRESOLVED — no citable conventions exist. **Do not invent a margin

threshold.** Assessment: n_classified, n_adequate, n_marginal,

n_insufficient, n_unresolved. No single overall verdict.

UNRESOLVED thresholds — do not invent

All five thresholds in the assay-activity@1.0 set are UNRESOLVED.

They are program-specific cutoffs with no universal default. The tool

skips each check when the threshold is UNRESOLVED and emits an advisory

on the per-compound record:

The operator must set these in .oase/thresholds.yaml with a

recorded justification. When a threshold is UNRESOLVED, the

corresponding check does not run and no activity classification is

made. The absence of a check is not permission to call a compound

active or inactive — it means the question is unanswered until the

program sets the cutoff. Do not supply a value the tool declined to

publish; do not substitute a common convention.

The assay-screen-quality@1.0 thresholds (z_factor_excellent,

z_factor_acceptable) are resolved. Cite by name; quote values from

thresholds_applied in the analysis being cited.

Mandatory relays

| Relay code | Kind | Fires when | Obligation |

|---|---|---|---|

| assay.screen_quality_insufficient | Stop (defect-triggered) | Z-factor falls below z_factor_acceptable — the signal and background distributions overlap | Do not trust active/inactive classifications from this screen. The assay window is too narrow to distinguish signal from noise. The screen itself is the problem, not the compounds. Report the screen as unusable and do not carry forward compound activity calls from it. |

| assay.cytotoxicity_confound | Qualifier (defect-triggered) | One or more compounds show a bell-shaped (non-monotonic) dose-response curve | Note the bell-shaped curve and carry the qualifier that the activity measurement may be confounded by compound cytotoxicity at high concentrations. Do not report the fitted EC50/IC50 without this qualifier. The per-compound advisories identify which compounds are affected. |

| selectivity.ratio_not_affinity | Stop (claim-triggered) | Always fires on every selectivity analysis | A selectivity ratio from IC50/Ki values inherits assay-dependent variability. Do not equate it to a thermodynamic binding constant ratio. Report the ratio and its measure type; do not claim the compound "has X-fold selectivity" without this qualifier. |

| selectivity.panel_incomplete | Qualifier (defect-triggered) | panel_complete is false (conditional) | The selectivity claim is bounded by the targets tested. Do not generalize beyond the panel. Name the off-targets that were included. |

Check mandatory_relays in both the .analysis.json and the

.meta.json. Every relay code present must be satisfied in the finding.

Consequence rules

quality verdict, and the threshold set applied. Compound activity

classifications from this screen may be used downstream.

relay fires. Do not report compound activity verdicts from this

screen — the assay window cannot separate signal from noise.

(insufficient control wells — fewer than 2 positive or 2 negative

controls). State this; do not assume quality is acceptable.

relay fires. Carry the qualifier on every affected compound. A

dose-response that rises then falls at high concentrations suggests

cytotoxicity is masking the primary pharmacological effect.

analysis. Do not refit curves yourself.

check was skipped because the threshold is UNRESOLVED, carry this

forward. The compound has no activity classification — do not

infer one.

clearly safe but not yet insufficient — flag for attention.

Cross-disciplinary consequences

Cross-reference compound-property-profile when evaluating hits — a

PAINS-positive active hit warrants investigation of whether the

readout reflects genuine activity or assay interference.

across runs without checking that both screens meet quality thresholds.

types or readout types are not directly comparable.

comparable without Cheng-Prusoff correction.

What this section produces

Following this contract produces a Layer 1 finding in findings/ that

cites the .analysis.json, satisfies every mandatory relay that fired,

names the screen quality verdict, and carries UNRESOLVED-threshold

advisories through unchanged. Everything the tools emitted stays under

raw/assays/.

5. Failure modes and anti-fabrication guard

Do not compute these values yourself. The value is whatever the tool

emitted. If the tool did not run, there is no value. If a required tool

is unavailable, report the task as blocked. Do not estimate, and do not

proceed on an assumed result.

Named pathologies

artefactually high readout values that mimic activity. The tool does

not detect this — it is a data-quality issue upstream of ingestion.

assay.cytotoxicity_confound relay exists for this. Do not report

a fitted EC50 without the cytotoxicity qualifier.

PAINS alerts (compound-property-profile). Cross-reference when

evaluating hits.

threshold is UNRESOLVED, the tool skips the check and emits an

advisory. The absence of a check is not permission to classify a

compound. Do not supply a value the tool declined to publish.

positive and 2 negative controls. Below that, Z-factor is null and

quality verdict is unknown. Do not treat unknown as acceptable.

Z-factor varies by plate and run. Check screen quality before

comparing activity calls across screens.

The tool pins the curve-fitting algorithm and bell-shaped detection

logic. A fit computed outside the tool may use a different model or

convergence criterion. Cite the tool's output, not a recalculation.

panels, but upstream data may have been harmonized incorrectly.

means no threshold to evaluate against — not clearance.

selectivity.panel_incomplete relay fires when panel_complete is

false. Three off-targets do not cover the hundreds not tested.

selectivity.ratio_not_affinity relay exists for this. An IC50

ratio is assay-dependent; a Kd ratio is thermodynamic.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.