Skip to content
Snippets Groups Projects
Commit 3decb747 authored by Bienchen's avatar Bienchen
Browse files

Exported chain description get/ set functions to python

parent 062268db
No related branches found
No related tags found
No related merge requests found
......@@ -96,6 +96,11 @@ The basic functionality of editors is implemented in the EditorBase class.
:param type: Must be a value of enum ChainType
(see :attr:`ChainHandle.chain_type`)
.. method:: SetChainDescription(chain, description)
:param chain: Must be a valid chain
:param description: Description to be added
.. method:: InsertAtom(residue, atom_name, pos,
element="", occupancy=1.0, b_factor=0.0,
is_hetatm=False)
......
......@@ -298,6 +298,10 @@ The Handle Classes
Where ``CHAINTYPE_N_CHAINTYPES`` holds the number of different types
available.
.. attribute:: description
Details about the chain. Not categorised, just text.
.. attribute:: residues
List of all residues of this chain. The residues are sorted from N- to
......@@ -411,6 +415,10 @@ The Handle Classes
See :attr:`chain_type`
.. method:: GetChainDescription()
See :attr:`description`
.. class:: ResidueHandle
The residue is either used to represent complete molecules or building blocks
......
......@@ -52,6 +52,7 @@ void export_Chain()
.add_property("valid", &ChainBase::IsValid)
.def("IsValid", &ChainBase::IsValid)
.def("GetChainType", &ChainBase::GetChainType)
.def("GetChainDescription", &ChainBase::GetChainDescription)
;
generic_prop_def<ChainBase>(chain_base);
class_<ChainHandle, bases<ChainBase> >("ChainHandle", init<>())
......@@ -82,6 +83,7 @@ void export_Chain()
.add_property("residue_count", &ChainHandle::GetResidueCount)
.add_property("atom_count", &ChainHandle::GetAtomCount)
.add_property("chain_type", &ChainHandle::GetChainType)
.add_property("description", &ChainHandle::GetChainDescription)
.def("InSequence", &ChainHandle::InSequence)
.def("Select", select_string, arg("flags")=0)
.def("Select", select_query, arg("flags")=0)
......
......@@ -213,6 +213,7 @@ void export_Editors()
.def("Connect", connect_d)
.def("RenameChain", &EditorBase::RenameChain)
.def("SetChainType", &EditorBase::SetChainType)
.def("SetChainDescription", &EditorBase::SetChainDescription)
.def("RenameResidue", &EditorBase::RenameResidue)
.def("RenameAtom", &EditorBase::RenameAtom)
.def("AddTorsion", &EditorBase::AddTorsion)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment