Boltz2 / minimal_structures.py
lhallee's picture
Upload minimal_structures.py with huggingface_hub
743b0f1 verified
Raw
History Blame Contribute Delete
460 Bytes
from dataclasses import dataclass
from typing import List
@dataclass
class ProteinStructureTemplate:
sequence: str
residue_names: List[str]
atom_names: List[str]
atom_elements: List[str]
atom_residue_index: List[int]
atom_chain_id: List[str]
@property
def num_atoms(self) -> int:
return len(self.atom_names)
@property
def num_residues(self) -> int:
return len(self.residue_names)