deeporigin.drug_discovery.uniprot_discovery.UniprotDiscoveryCandidate¶
UniprotDiscoveryCandidate holds one ranked PDB row from a
UniprotDiscovery run(): grades, component scores,
and the recommended flag.
One ranked PDB candidate from jobOutputs.candidates.
Attributes:
| Name | Type | Description |
|---|---|---|
coverage_score |
float
|
Coverage component score. |
field_status |
dict[str, FieldStatusValue]
|
Per-field status map ( |
grade |
UniprotDiscoveryGrade
|
Letter grade |
inhibitor_score |
float
|
Inhibitor/holo component score. |
method_score |
float
|
Method component score. |
organism_score |
float
|
Organism component score. |
pdb_id |
str
|
PDB entry ID. |
recommended |
bool
|
True for the single top-ranked candidate. |
resolution_score |
float
|
Resolution component score. |
rfree_score |
float
|
Rfree component score. |
weighted_score |
float
|
Weighted Structure Report score from the tool. |
coverage |
float | None
|
Polymer residue coverage fraction (0–1), if known. |
has_ligand |
bool | None
|
Whether a non-water, non-ion ligand is present. |
method |
str | None
|
Experimental method string. |
method_class |
str | None
|
Normalized method class. |
organism |
str | None
|
Source organism scientific name. |
organism_class |
str | None
|
Normalized organism class. |
resolution |
float | None
|
Structure resolution in Angstroms. |
rfree |
float | None
|
Rfree (X-ray). |
Attributes¶
Methods:¶
from_json
classmethod
¶
from_json(
data: dict[str, Any],
) -> UniprotDiscoveryCandidate
Build a candidate from one candidates[] object.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict[str, Any]
|
Raw row from |
required |
Returns:
| Name | Type | Description |
|---|---|---|
A |
UniprotDiscoveryCandidate
|
class: |
Raises:
| Type | Description |
|---|---|
DeepOriginException
|
If required fields are missing or mistyped. |