Data Module
get_graph_features(data)
Convert loaded data into graph features.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
dict
|
The dictionary returned by load_pdb. |
required |
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray, ndarray]
|
A tuple of (node_features, adjacency_matrix, edge_features). |
Source code in torsiontuner/data.py
load_pdb(file_path)
Load a PDB file and extract backbone information.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
file_path
|
str
|
Path to the PDB file. |
required |
Returns:
| Type | Description |
|---|---|
dict
|
A dictionary containing coordinates, residue indices, elements, |
dict
|
and initial geometry parameters. |