diff --git a/modules/io/doc/io.rst b/modules/io/doc/io.rst index 9e6a01f43678a34e705cf1f1ac4260959e619fe7..fad95f3c743a21290e3ccb4bd4642468ade510d3 100644 --- a/modules/io/doc/io.rst +++ b/modules/io/doc/io.rst @@ -95,6 +95,16 @@ behaviour. pdb_str = pdb.read() ent = io.PDBStrToEntity(pdb_str, ost.io.profiles['DEFAULT'], True) + +.. function:: LoadSDF(filename) + + Load an SDF file and return an entity. + + :param filename: File to be loaded + :type filename: :class:`str` + + :rtype: :class:`~ost.mol.EntityHandle` + .. function:: SDFStrToEntity(sdf_string) Load entity from a string in SDF format. @@ -316,6 +326,15 @@ file: :rtype: string. +.. function:: SaveSDF(ent, filename) + + Save entity to disk as an SDF file. + + :param ent: The entity to be saved + :type ent: :class:`~ost.mol.EntityHandle` or :class:`~ost.mol.EntityView` + :param filename: The filename + :type filename: string + .. _seq-io: Sequences and Alignments