nanome.api.structure.io.complex_io module¶
-
class
ComplexIO
(base_object=None)[source]¶ Bases:
nanome._internal.addon._Addon
-
class
MMCIFSaveOptions
¶ Bases:
object
Options for saving MMCIF files.Includes options for writing:- hydrogens- only selected atoms
-
class
PDBSaveOptions
¶ Bases:
object
Options for saving PDB files.Includes options for writing:- hydrogens- TER records- bonds- heterogen bonds- only selected atoms
-
class
SDFSaveOptions
¶ Bases:
object
Options for saving SDF files.Includes options for writing:- all bonds- heterogen bonds
-
from_mmcif
(**kwargs)[source]¶ - Loads the complex from a .cif file
Returns: The complex read from the file
Return type: Complex
Parameters: kwargs – See below
Keyword Arguments:
-
from_pdb
(**kwargs)[source]¶ - Loads the complex from a .pdb file
Returns: The complex read from the file
Return type: Complex
Parameters: kwargs – See below
Keyword Arguments:
-
from_sdf
(**kwargs)[source]¶ - Loads the complex from a .sdf file
Returns: The complex read from the file
Return type: Complex
Parameters: kwargs – See below
Keyword Arguments:
-
to_mmcif
(path, options=None)[source]¶ - Saves the complex into a .cif file
Parameters: - path (str) – Path to the file
- options (
MMCIFSaveOptions
) – Save options
-
to_pdb
(path, options=None)[source]¶ - Saves the complex into a .pdb file
Parameters: - path (str) – Path to the file
- options (
PDBSaveOptions
) – Save options
-
to_sdf
(path, options=None)[source]¶ - Saves the complex into a .sdf file
Parameters: - path (str) – Path to the file
- options (
SDFSaveOptions
) – Save options
-
class