Protein structure confidence

From GoogleCloudPlatform/LifeSciences · View interactive version

Protein structure confidence is an AI agent skill from the GitHub repository GoogleCloudPlatform/LifeSciences. Retrieve protein structures and quantify how far their geometry can be trusted — global and per-residue model confidence, disorder extent, domain boundaries, and coverage of the canonical sequence. Use when any structural claim depends on model reliability: assessing target druggability, deciding wh

How to use this skill

Skill file

1. When to use, and when not

Use this skill whenever you need to establish the reliability of a protein

structure before making a decision that depends on it. Entry points

include:

structural drug design (any stage).

or structural search.

interface (AF3).

disordered region.

without re-querying.

Do not use when:

-> structural-homology-search.

-> binding-mode-analysis.

2. Preconditions

names and PDB IDs are not accepted; resolve them upstream.

request schema (dialect alphafold3, version 1-3, with sequences,

modelSeeds, and name). Relative paths resolve against the project

root.

(google-cloud-aiplatform package and an active service account or

ADC). AFDB is public and needs no credential.

replica). The CLI serialises callers within one container.

Cross-container scheduling is managed by the Research Operations

Controller, which ensures only one AF3 prediction runs at a time

across all specialists. If you receive a work order requiring AF3,

the endpoint is available — proceed without delay.

H100 time on the Vertex dedicated endpoint; a cold start adds up to

several minutes.

STOP means fix or report before running anything; PROCEED means

work, and the grouped warnings tell you which commands would refuse,

which results need careful reading, and which are the tooling lead's

to clear. Do not judge by the warning count; the verdict line grades

them for you.

3. Tool invocations

AlphaFold Database (stored predictions)

| Question | Run | Writes to |

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

| What predicted structure exists for this protein? | oase alphafold fetch <UNIPROT> | raw/structures/AF-<id>-F1.cif<br>raw/structures/AF-<id>-F1.pae.json<br>raw/structures/AF-<id>-F1.afdb.json<br>raw/structures/AF-<id>-F1.meta.json |

| How confident is the fold, and where are the domains? | oase alphafold analyze <UNIPROT> | raw/structures/AF-<id>-F1.alphafold.analysis.json |

Run fetch before analyze. analyze reads from disk and can be re-run

with different thresholds without re-querying AFDB.

AlphaFold 3 (on-demand complex prediction)

| Question | Run | Writes to |

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

| What does this complex look like? | oase alphafold predict --input <JSON> | raw/structures/AF3-<name>.cif<br>raw/structures/AF3-<name>.summary.json<br>raw/structures/AF3-<name>.plddt.json<br>raw/structures/AF3-<name>.pae.json<br>raw/structures/AF3-<name>.response.json<br>raw/structures/AF3-<name>.request.json<br>raw/structures/AF3-<name>.meta.json |

| How confident is the complex interface? | oase alphafold analyze-prediction <SUMMARY> | raw/structures/AF3-<name>.alphafold.analysis.json |

predict blocks until the endpoint returns or the deadline expires

(default 30 minutes). analyze-prediction reads the stored

.summary.json and applies the af3 threshold set.

All output options: --json for machine-readable output, --quiet for

paths only, --out to override the default output directory.

4. Interpretation contract

AFDB confidence verdicts

analyze applies the alphafold threshold set and emits one of:

regions exist. Report the ordered domain boundaries alongside any

structural conclusion.

Downstream structural work should be restricted to ordered domains.

intrinsically disordered regions. Restrict structural work to the

listed ordered domains.

intrinsically disordered. Whole-protein structural work (docking,

structural search) is not supported by this prediction. Restrict

further analysis to ordered domain boundaries, if any.

PAE domain verdicts

When a PAE matrix is available, analyze also emits:

by flexible joints. Report the domain boundaries.

likely disordered.

AF3 interface verdicts

analyze-prediction applies the af3 threshold set and emits one of:

not a result.

downstream structural work.

not be reported.

Coverage and mandatory relays

The following relay codes mark obligations on the finding. A relay is

an instruction, not a caveat: satisfying it requires scoping or

withholding the claim, not merely disclosing the condition. A finding

that omits a mandatory relay is wrong, not merely incomplete.

All four relays are qualifiers — they fire on defects in the data

(partial coverage, isoform substitution, size limit, unverified

coverage). A full-coverage, high-pLDDT model with no isoform issues

produces zero relays. That is not a clean bill of health — it

means no defect was found. Nothing has been said about whether the

confidence scores support the use the reader has in mind (e.g. docking,

conformation selection). pLDDT is a per-residue fold confidence, not

a measure of conformational accuracy or fitness for a particular

downstream application.

| Relay code | Kind | Obligation |

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

| afdb.partial_coverage | Qualifier | Scope every confidence claim to the modelled residue range, or withhold it. Do not describe the protein — describe the fragment. |

| afdb.isoform_substituted | Qualifier | Name the isoform actually analysed wherever the finding names the protein. Do not attribute these numbers to the canonical entry. |

| afdb.above_modelling_limit | Qualifier | State that no full-length prediction exists at any accession. Do not present the available fragments as the protein's structure. |

| afdb.coverage_unverified | Qualifier | Report coverage as unknown. Do not infer completeness from the absence of a truncation warning. |

Check mandatory_relays in the .alphafold.analysis.json and in the .meta.json.

Every relay code present must appear in the finding.

Consequence rules

structural search, or pocket detection. Restrict downstream structural

work to the ordered residue boundaries listed in the analysis.

listed ordered domains.

fragment's confidence metrics. The analysis scopes its own verdict

statement, but the finding must do the same.

geometry for downstream binding-site analysis or selectivity arguments.

note that the geometry in the clash region is unreliable.

Synthesis across AFDB and AF3

When both an AFDB monomer prediction and an AF3 complex prediction exist

for the same protein:

of that baseline.

interface, the interface prediction in that region is unreliable

regardless of the ipTM score.

What this section produces

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

cites the .alphafold.analysis.json and (where applicable) the .meta.json

warnings. Everything the tools emitted stays under raw/structures/.

Thresholds are cited by name (e.g. "the configured plddt_confident

threshold"), never by value. Values live in CLI config and are stamped

into .alphafold.analysis.json.

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

isoform for a long protein with no indication that the canonical

sequence was not modelled. The CLI cross-checks canonical length and

records a mandatory relay. Do not suppress or paraphrase it.

coverage is less than 100%, the verdict describes the modelled region

only. The analysis scopes its statement, but a finding that drops

the scope qualifier misrepresents the evidence.

disordered protein does not have a pocket problem; it has a fold

problem. Report the disorder verdict, not the absence of a

downstream result that should not have been attempted.

predictions. The tool returns null and the analysis records it;

reporting "low interface confidence" for a monomer is a category

error.

zero and may return 429 for several minutes. The CLI retries within

the deadline. A timeout after exhausting the deadline is a real

failure; a 429 during warm-up is not. Signal

sciontool status blocked "AF3 prediction in progress" before

invoking oase alphafold predict so the stall detector does not

false-positive on the wait.

advisory restricts downstream work to ordered domains, docking into

disordered residues produces scores that are not meaningful. The

restriction is structural, not a suggestion.

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.