diff --git a/modules/mol/base/doc/entity.rst b/modules/mol/base/doc/entity.rst index aeb18459f28e01c33c3c09a48dd8d9b9ee342822..c0ff8b8c1dce169efc06b7df08f7fd6bee8eefbd 100644 --- a/modules/mol/base/doc/entity.rst +++ b/modules/mol/base/doc/entity.rst @@ -701,6 +701,13 @@ The Handle Classes :type: :class:`bool` + .. attribute:: nucleotide_linking + + Whether residue can form nucleotide bonds. This is determined based on + :attr:`chem_class` which is set when loading the structure. + + :type: :class:`bool` + .. attribute:: index Residue index (starting at 0) within chain. @@ -797,6 +804,10 @@ The Handle Classes .. method:: IsPeptideLinking() See :attr:`peptide_linking` + + .. method:: IsNucleotideLinking() + + See :attr:`nucleotide_linking` .. method:: GetChain() diff --git a/modules/mol/base/pymod/export_residue.cc b/modules/mol/base/pymod/export_residue.cc index a8d652217a256b7f28cd9d89b2301b4a72d17d31..d4b741d3bc1a173974c28067d71debf8342131e5 100644 --- a/modules/mol/base/pymod/export_residue.cc +++ b/modules/mol/base/pymod/export_residue.cc @@ -193,6 +193,8 @@ void export_Residue() .add_property("qualified_name", &ResidueBase::GetQualifiedName) .def("IsPeptideLinking", &ResidueBase::IsPeptideLinking) .add_property("peptide_linking", &ResidueBase::IsPeptideLinking) + .def("IsNucleotideLinking", &ResidueBase::IsNucleotideLinking) + .add_property("nucleotide_linking", &ResidueBase::IsNucleotideLinking) .def("GetCentralAtom", &ResidueBase::GetCentralAtom) .def("SetCentralAtom", &ResidueBase::SetCentralAtom)