Compute Topological Fingerprint (TDA)
compute_topology_fingerprintComputes a rotation-invariant Cα topology fingerprint for an AlphaFold model from a UniProt accession, using persistent homology when GUDHI is available and a coarse geometry fallback otherwise.
Instructions
Compute an exploratory, rotation-invariant Cα summary vector for an AlphaFold model.
Fetches the AlphaFold model for uniprot_id and derives an
exploratory 64-slot feature vector from its Cα coordinates. With GUDHI
installed, H0 and H1 are computed on the 15-Å Vietoris-Rips 2-skeleton
and the vector holds 16 summary statistics of their finite bar
lifetimes (eight each); the other 48 slots are zero. H2 is NOT
computed. On this GUDHI path, models longer than 500 residues are
reduced to 500 evenly spaced Cα atoms first, so their Betti numbers
and statistics describe that subsample (subsampled is then true).
Without GUDHI the fallback uses every residue, with no subsampling:
the vector holds eight distance and contact statistics, one of them a
4-Å contact-graph component count, and no persistent homology is
computed.
Betti numbers describe this chosen filtration, not protein domains,
β-barrels, drug cavities, molecular function, or an experimental structure.
Returns the fingerprint vector and its slot layout, the Betti numbers, the
residue counts, and which method ran. Full persistent homology needs the
optional [tda] extra (gudhi); without it a coarse fallback runs that
does NOT compute persistent homology, and the result flags this. Returns a
no-structure result when AlphaFold DB has no model for the accession. This is
a coarse, geometry-only summary — not a substitute for sequence alignment,
RMSD, or functional-homology assessment.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"params": "<params>"
},
"name": "compute_topology_fingerprint"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| params | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||