MolecularDiffusion.data.component.pointcloud¶
Classes¶
Point Cloud representation of a molecule. |
Functions¶
|
Module Contents¶
- class MolecularDiffusion.data.component.pointcloud.PointCloud_Mol(_atoms)¶
Point Cloud representation of a molecule.
Parameters: _atoms: List of atoms in the molecule. Each atom is a list with the following elements:
Atomic symbol (str)
x coordinate (float)
y coordinate (float)
z coordinate (float)
- classmethod from_arrays(zs: torch.Tensor, coords: torch.Tensor, with_hydrogen: bool = False, forbidden_atoms=[])¶
load arrays to mol representation
parameters: zs: Tensor with the atomic numbers. coords: Tensor with the atomic coordinates. with_hydrogen: Boolean to include Hydrogen atoms in the representation. forbidden_atoms: List of forbidden atoms to be excluded from the representation.
out: molrepr: Mol Object containing the molecular information (coordinates and elements).
- classmethod from_xyz(_path: str, with_hydrogen: bool = False, forbidden_atoms=[])¶
load_xyz(_path: str) -> molrepr: Mol
Load molecule from an XYZ input file and initialize a Mol Object for it.
parameters: _path: String with the path of the input file. with_hydrogen: Boolean to include Hydrogen atoms in the representation. forbidden_atoms: List of forbidden atoms to be excluded from the representation.
out: molrepr: Mol Object containing the molecular information (coordinates and elements).
- get_coord()¶
- MolecularDiffusion.data.component.pointcloud.simple_idx_match_check(mol, ase_atoms)¶