{% extends "base.html" %} {% block title %}Pocketscribe - {{ primary.label }}{% endblock %} {% block heading %}Binding-pocket assessment of a predicted structure{% endblock %} {% block subtitle %} {{ primary.label }} · {{ primary.source.display_name }} {%- if result.is_consensus_run %} · cross-model consensus over {{ result.structures|length }} models{% endif %} {% endblock %} {% block content %} {# ------------------------------------------------------------------ #} {# 1. Executive summary #} {# ------------------------------------------------------------------ #}

Executive summary

A first-pass, research-use triage of where a small molecule might bind this predicted model, and how far the prediction can be trusted at each site.

Pockets detected {{ primary_pockets.pockets|length }} by {{ primary_pockets.backend }}{% if primary_pockets.backend_version and primary_pockets.backend_version != 'unknown' %} {{ primary_pockets.backend_version }}{% endif %}
Mean pLDDT {{ '%.1f'|format(primary.confidence.mean) }} {{ '%.0f'|format(primary.confidence.fraction_below_70 * 100) }}% of residues below 70
{% if top_pocket %}
Top pocket confidence {{ top_pocket.confidence.mean_confidence if top_pocket.confidence.mean_confidence is not none else 'n/a' }} mean pLDDT of its {{ top_pocket.residues|length }} lining residues
{% endif %} {% if result.consensus %}
Cross-family pockets {{ result.consensus.n_cross_family_pockets }} found by independent method families
{% endif %}
{% if not primary_pockets.backend_is_fpocket %}

These pockets were not detected with fpocket. The builtin fallback backend was used, which is a plain grid-based buriedness scan. Its “druggability” column is a transparent volume / buriedness / hydrophobicity heuristic documented in the methods appendix — it is not fpocket’s trained and validated druggability score, and the two numbers are not comparable. Install fpocket and re-run before drawing any scientific conclusion from these scores.

{% endif %}

What this report is

Pocketscribe took a structure predicted by {{ primary.source.display_name }}, carried its per-residue confidence through every stage, and annotated each detected cavity with what that confidence means for interpreting it. The deliverable is triage: a ranked, caveated shortlist to help decide where to spend docking, simulation or wet-lab effort — not a substitute for any of them.

{% if result.warnings %}

Run warnings

{% endif %}
{# ------------------------------------------------------------------ #} {# 2. Input structure metadata #} {# ------------------------------------------------------------------ #}

Input structure

{% for structure in result.structures %} {% endfor %}
Provenance and composition of every structure analysed in this run.
ModelSourceSupport tierMethod family ChainsResiduesDetection
{{ structure.label }} {{ structure.source.display_name }} {{ tier_label(structure.source.tier) }} {{ family_label(structure.source.family) }} {{ structure.qc.n_chains }} ({{ structure.qc.chain_ids|join(', ') }}) {{ structure.qc.n_residues }} {% if structure.source_was_auto_detected %} auto-detected{% if structure.detection_evidence %}: {{ structure.detection_evidence|join('; ') }}{% endif %} {% else %}declared by user{% endif %}
{% for structure in result.structures %} {% if structure.source.notes %}

{{ structure.source.display_name }}: {{ structure.source.notes }}

{% endif %} {% endfor %} {% if not primary.source.uses_msa %}

No MSA informed this prediction. {{ primary.source.display_name }} predicts from a single sequence, so no explicit evolutionary-coupling signal contributed to the fold. This matters for reading the confidence values below: they reflect the language model’s certainty, not agreement across homologues.

{% endif %}
{# ------------------------------------------------------------------ #} {# 3. Confidence / QC #} {# ------------------------------------------------------------------ #}

Structure quality and prediction confidence

Every pocket claim later in this report is caveated against this map. Regions below pLDDT 70 are commonly flexible or disordered; below 50 they should not be read structurally at all.

{{ confidence_plot_svg|safe }} {{ confidence_legend_svg|safe }}
Per-residue {{ primary.confidence.metric.value }} along the sequence of {{ primary.label }}. Dashed lines mark the 70 and 50 interpretation thresholds. Hover any residue for its exact value.
Mean {{ '%.1f'|format(primary.confidence.mean) }}
Median {{ '%.1f'|format(primary.confidence.median) }}
Below 70 {{ '%.0f'|format(primary.confidence.fraction_below_70 * 100) }}% {{ primary.confidence.regions_below_70|length }} contiguous region(s)
Below 50 {{ '%.0f'|format(primary.confidence.fraction_below_50 * 100) }}% {{ primary.confidence.regions_below_50|length }} contiguous region(s)
{% for key, label in band_rows %} {% endfor %}
Residue counts per confidence band — the same data as the figure, as a table.
BandResiduesShare
{{ label }} {{ band_counts[key] }} {{ '%.1f'|format(band_counts[key] / primary.confidence.residues|length * 100) }}%
{% if primary.confidence.regions_below_50 %}

Regions below pLDDT 50

{% for region in primary.confidence.regions_below_50 %} {% endfor %}
Contiguous runs of very-low-confidence residues. A pocket overlapping one of these is flagged in the pocket table.
RegionLengthMean pLDDT
{{ region.label }} {{ region.length }} {{ region.mean_value }}
{% endif %} {% if primary.qc.notes %}

Geometry checks

{% endif %}
{# ------------------------------------------------------------------ #} {# 4. Ranked pockets #} {# ------------------------------------------------------------------ #}

Ranked pockets

Ranked by {{ 'fpocket druggability score' if primary_pockets.backend_is_fpocket else 'the built-in heuristic score (not a validated druggability model)' }}. The confidence column is not a second opinion on druggability — it says how far the underlying prediction supports the geometry that produced the score.

{% if primary_pockets.pockets %}
{% for pocket in primary_pockets.pockets %} {% endfor %}
{{ primary_pockets.pockets|length }} pocket(s) detected; showing all. Volumes in ų.
RankVolumeDruggabilityHydrophobicity PolarityLining residuesMean pLDDTCaveat
{{ pocket.rank }} {{ '%.0f'|format(pocket.volume) if pocket.volume is not none else '–'|safe }} {{ '%.3f'|format(pocket.druggability_score) if pocket.druggability_score is not none else '–'|safe }} {{ '%.1f'|format(pocket.hydrophobicity_score) if pocket.hydrophobicity_score is not none else '–'|safe }} {{ '%.1f'|format(pocket.polarity_score) if pocket.polarity_score is not none else '–'|safe }} {{ pocket.residues|length }} {{ pocket.confidence.mean_confidence if pocket.confidence.mean_confidence is not none else '–'|safe }} {{ caveat_meter(pocket.confidence.fraction_below_70)|safe }} {{ pocket.confidence.level.value }}

Confidence caveats in full

{% for pocket in primary_pockets.pockets[:result.top_pockets_requested] %}

Pocket {{ pocket.rank }}. {{ pocket.confidence.text }}

{% endfor %} {% else %}

No pockets passed the detection thresholds for this structure.

{% endif %} {% if primary_pockets.warnings %}
{% endif %}
{# ------------------------------------------------------------------ #} {# 5. Cross-model consensus #} {# ------------------------------------------------------------------ #} {% if result.consensus %}

Cross-model consensus

Pockets matched across independent predictions of the same protein. Agreement between different architecture families is reported separately from agreement within one family, and the two are never pooled: models in one family can reproduce each other’s systematic errors, so their agreement is not independent evidence.

{% if not result.consensus.cross_family_comparison_possible %}

No cross-family comparison was possible. Every model supplied belongs to the same architecture family, so nothing in the table below constitutes independent confirmation. Adding a prediction from a different family — for example ESMFold alongside AlphaFold2, OpenFold or ColabFold models — is what makes this stage informative.

{% endif %}
{% for alignment in result.consensus.alignments %} {% endfor %}
Sequence and structural agreement between the supplied models.
PairSequence identityCα RMSD (Å)Superposed atoms
{{ alignment.label_a }} vs {{ alignment.label_b }} {{ '%.1f'|format(alignment.identity * 100) }}% {{ alignment.rmsd }} {{ alignment.n_superposed_atoms }}
{% for group in result.consensus.groups %} {% endfor %}
Per-pocket consensus. Agreement values are the confidence-weighted fraction of possible agreeing model pairs of each kind; see the methods appendix.
GroupEvidenceDetected by Cross-family agreementSame-family agreement Per-source druggabilityCentroid spread
{{ group.group_id }} {{ group.evidence_label }} {{ group.n_models_detecting }}/{{ group.n_models_total }} — {{ group.members|map(attribute='source_display_name')|join(', ') }} {{ '%.2f'|format(group.cross_family_agreement) }} {{ '%.2f'|format(group.same_family_agreement) }} {% for member in group.members %} {{ member.source_display_name }} #{{ member.pocket_rank }}: {{ '%.3f'|format(member.druggability_score) if member.druggability_score is not none else 'n/a' }}{% if not loop.last %}
{% endif %} {% endfor %}
{{ group.mean_pairwise_centroid_distance if group.mean_pairwise_centroid_distance is not none else '–'|safe }}

What each group means

{% for group in result.consensus.groups[:result.top_pockets_requested] %}

Group {{ group.group_id }}. {{ group.consensus_note }}

{% endfor %} {% if result.consensus.notes %} {% endif %}
{% endif %} {# ------------------------------------------------------------------ #} {# 6. Pocket images #} {# ------------------------------------------------------------------ #} {% if pocket_images %}

Pocket locations

Cα trace of the model, oriented along its two principal axes. Lining residues are drawn as filled circles coloured by their own prediction confidence, using the same bands as the plot above, so a pocket sitting in poorly-predicted structure is visible at a glance.

{% endif %} {# ------------------------------------------------------------------ #} {# 7. MD setup #} {# ------------------------------------------------------------------ #} {% if result.md_setup %}

Molecular dynamics setup

Pocketscribe generated ready-to-run GROMACS inputs. It did not run, and will never run, a simulation.

Output directory
{{ result.md_setup.output_dir }}
Force field
{{ result.md_setup.force_field }} with {{ result.md_setup.water_model }} water
Box
{{ result.md_setup.box_shape }}, {{ result.md_setup.box_padding_nm }} nm padding
Ions
neutralising counter-ions plus {{ result.md_setup.salt_concentration_M }} M NaCl
{% if result.md_setup.target_pocket_rank %}
Target pocket
rank {{ result.md_setup.target_pocket_rank }}
{% endif %} {% if result.md_setup.removed_heteroatoms %}
Removed
{{ result.md_setup.removed_heteroatoms|join(', ') }}
{% endif %}

Generated files

{% if result.md_setup.notes %}
{% endif %}
{% endif %} {# ------------------------------------------------------------------ #} {# 8. Narrative #} {# ------------------------------------------------------------------ #}

Interpretation

{% if result.narrative.enabled %}
{% for paragraph in narrative_paragraphs %}

{{ paragraph }}

{% endfor %}

Written by an AI language model ({{ result.narrative.model }}) from the structured numerical output above — pocket scores, confidence statistics and consensus results only; no coordinates were sent. It is an interpretation aid, not a finding. Every claim in it should be checkable against the tables in this report.

{% else %}

{{ result.narrative.skipped_reason }}

This section is the only part of Pocketscribe that uses an external API, and it is optional by design. Everything else in this report was produced offline by the deterministic pipeline.

{% endif %}
{# ------------------------------------------------------------------ #} {# 9. Methods appendix #} {# ------------------------------------------------------------------ #}

Methods and parameters

Enough detail to reproduce this run, and to write a methods section that cites the right software.

Pipeline

Pocketscribe
{{ tool_version }}
Run at
{{ generated_at }}
Structure source
{{ primary.source.display_name }} ({{ tier_label(primary.source.tier) }}), confidence read as {{ primary.confidence.metric.value }}
Pocket detection
{{ primary_pockets.backend }} {{ primary_pockets.backend_version }}
{% for key, value in result.parameters.items() %}
{{ key }}
{{ value }}
{% endfor %}

Confidence thresholds

Residues are banded at pLDDT 90, 70 and 50, following the conventional AlphaFold interpretation. A contiguous run of {{ min_region_length }} or more residues below a threshold is reported as a low-confidence region. A pocket’s caveat level is escalated on either a low mean confidence across its lining residues or a substantial minority of untrustworthy residues, because a binding site needs only a few badly-placed lining residues to be geometrically wrong.

{% if primary_pockets.backend_is_fpocket %}

Reproducibility of these numbers

fpocket estimates pocket volume by Monte Carlo integration, so volumes are not exactly reproducible between runs: re-running this analysis on the same structure typically shifts each volume by around a percent. Druggability scores, the pocket ranking and the lining-residue lists are stable. If you are comparing two reports, a small difference in the volume column is expected and is not evidence that anything changed.

{% if result.consensus %}

The consensus results above are unaffected: pockets are matched across models on lining-residue overlap and centroid distance, neither of which is stochastic.

{% endif %} {% endif %} {% if not primary_pockets.backend_is_fpocket %}

Built-in heuristic score (used in this run)

0.40 × volume_term + 0.30 × buriedness_term + 0.30 × apolar_term, where volume_term is a logistic in pocket volume centred on 300 ų with a 150 ų width, buriedness_term is the mean 7-direction enclosure count rescaled to 0–1, and apolar_term is the fraction of lining heavy atoms that are carbon, sulphur or selenium. The weights are a reasoned ordering, not a fit to any benchmark, and the score carries no validation. It exists so the pipeline can run without fpocket; it is not a druggability model.

{% endif %} {% if result.consensus %}

Cross-model consensus

Structures were required to share at least {{ '%.0f'|format(result.consensus.parameters.min_sequence_identity * 100) }}% sequence identity. Residues were put into correspondence by global pairwise alignment, and models were superposed onto the first by Kabsch superposition of corresponding Cα atoms. Two pockets from different models were treated as the same pocket only when both criteria held: lining-residue Jaccard overlap (mapped through the alignment) of at least {{ result.consensus.parameters.min_residue_jaccard }}, and post-superposition centroid separation of at most {{ result.consensus.parameters.centroid_tolerance }} Å.

Each source is tagged with an architecture family — MSA/co-evolution-based (AlphaFold2, OpenFold, ColabFold, Boltz) or single-sequence language model (ESMFold). For a matched group, every pair of detecting models is classified as cross-family or same-family. Agreement is the sum of pair weights divided by the number of pairs of that kind that the input set could have produced, so 1.0 means every possible agreement of that kind occurred. {% if result.consensus.parameters.confidence_weighting %} Pair weights are the product of the two models’ mean pLDDT over the pocket’s lining residues, each rescaled to 0–1, so a pocket predicted confidently by both models counts for more than one predicted marginally by both. {% else %} Confidence weighting was disabled for this run, so every agreeing pair counts equally. {% endif %} A source whose family is unknown never counts as cross-family.

{% endif %}

Reporting

Figures are inline SVG generated in pure Python, so this report is a single file that opens offline. The confidence palette was validated for lightness band, chroma, colour-vision-deficiency separation and contrast against the figure surface; band membership is additionally readable from vertical position and the labelled thresholds, so no information is carried by colour alone.

Built on — cite these, not only Pocketscribe

Pocketscribe is an integration layer. The science in this report was done by the tools below, and a methods section should cite them directly.

{# ------------------------------------------------------------------ #} {# 10. Disclaimer #} {# ------------------------------------------------------------------ #}

Scope and limitations

This analysis is for research use only. It is not a medical device, not a diagnostic, and carries no clinical or therapeutic claim of any kind. Nothing in it should be used to support a statement about treating any disease in any patient.

This is a predicted structure, not an experimental one. Every pocket described here exists in a computational model. Predicted models can place side chains wrongly, close cavities that are open in reality, and open cavities that are not. Apo predictions in particular often miss the conformational change that accompanies ligand binding. The confidence caveats attached to each pocket are the first thing to read, not a footnote.

Pocket detection and druggability scoring are heuristics. A high score means a cavity has the geometry and chemistry that tend to accompany ligandable sites. It is not evidence that any compound binds, and it says nothing about selectivity, affinity or tractability.

No simulation was run. The MD section generates input files. Their parameters are defaults chosen to be reasonable, not a protocol validated for this system.

This tool is triage, not judgement. It exists to help a group decide where to spend expert time, docking campaigns, simulation and experiments — never to replace them, and never to replace a structural biologist reading the structure.

{# ------------------------------------------------------------------ #} {# 11. How to cite #} {# ------------------------------------------------------------------ #}

How to cite

If this report contributed to published work, please cite Pocketscribe together with the tools it wrapped — listed under “Built on” above. Citing the wrapper without the underlying methods misattributes the science.

Adedeji, J. A. Pocketscribe: confidence-aware binding-pocket triage and molecular dynamics setup for predicted protein structures (version {{ tool_version }}). Available at https://github.com/jonahnki/pocketscribe

A machine-readable CITATION.cff ships with the repository.

{% endblock %}