atomli.biomol
Generated from the public Python surface of Atomli 0.1.18.
Protein preparation and chemical region extraction implemented in Rust.
Coordinates use angstrom. Preparation returns a new Atoms object and a change report. The caller supplies calculators for relaxation, dynamics, and electronic analysis.
Preparation(atoms: object, report: dict) -> None
Section titled “Preparation(atoms: object, report: dict) -> None”Preparation(atoms: object, report: dict)
Cluster(atoms: object, report: dict) -> None
Section titled “Cluster(atoms: object, report: dict) -> None”Cluster(atoms: object, report: dict)
prepare(atoms, *, ph=7.4, variants=None, repair_missing_heavy=True, add_hydrogens=True, remove_waters=False, allow_chain_breaks=False, disulfide_cutoff=2.3, reassign_protonation=False, templates=None)
Section titled “prepare(atoms, *, ph=7.4, variants=None, repair_missing_heavy=True, add_hydrogens=True, remove_waters=False, allow_chain_breaks=False, disulfide_cutoff=2.3, reassign_protonation=False, templates=None)”Repair chemistry and place hydrogens without moving existing heavy atoms.
Variant keys use chain:residue_id[insertion]:segment, as returned by topology.
pH selects intrinsic residue defaults. It does not predict site-specific pKa values.
Unknown components require a template or an explicit chemical graph.
validate(atoms, *, templates=None)
Section titled “validate(atoms, *, templates=None)”Validate topology, assigned valences, and formal charges.
repair_missing_atoms(atoms, **settings)
Section titled “repair_missing_atoms(atoms, **settings)”Reconstruct missing heavy atoms from component templates.
assign_protonation(atoms, **settings)
Section titled “assign_protonation(atoms, **settings)”Assign discrete residue variants and remove incompatible hydrogens.
add_hydrogens(atoms, **settings)
Section titled “add_hydrogens(atoms, **settings)”Place missing hydrogens on a complete heavy-atom structure.
select(atoms, *, chain=None, resname=None, resid=None, name=None, element=None, hetero=None, residues=False)
Section titled “select(atoms, *, chain=None, resname=None, resid=None, name=None, element=None, hetero=None, residues=False)”Return indices that match all specified fields.
within(atoms, indices, radius, *, residues=True, include_reference=True)
Section titled “within(atoms, indices, radius, *, residues=True, include_reference=True)”Select atoms within radius angstrom, with optional whole-residue expansion.
extract_cluster(atoms, indices, *, residues=True, caps='peptide', expand_disulfides=True, reference_atom=None, unpaired=None, templates=None)
Section titled “extract_cluster(atoms, indices, *, residues=True, caps='peptide', expand_disulfides=True, reference_atom=None, unpaired=None, templates=None)”Extract a nonperiodic cluster and cap supported covalent boundaries.
Peptide boundaries use ACE/NME caps. Other single bonds use hydrogen caps. Multiple bonds and incomplete coordination environments require a larger region. Supply the unpaired-electron count before electronic calculations.
templates()
Section titled “templates()”Return the bundled CCD templates, including their source and revision.