Skip to content
Snippets Groups Projects
Unverified Commit 4beb2cf9 authored by Xavier Robin's avatar Xavier Robin
Browse files

doc: add LoadSDF (old) and SaveSDF (new)

parent a270dce7
Branches
Tags
No related merge requests found
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment