diff --git a/modules/mol/mm/doc/topology.rst b/modules/mol/mm/doc/topology.rst index dd6cb83705be021cc16d0ef2c2e2187b3e98ff64..19760508c658cb2f42f2a9d0662b83da390f8c95 100644 --- a/modules/mol/mm/doc/topology.rst +++ b/modules/mol/mm/doc/topology.rst @@ -194,7 +194,7 @@ The Topology Class - .. method:: AddHarmonicAngle(index_one, index_two, index_three, angle, + .. method:: AddHarmonicAngle(index_one, index_two, index_three, angle, \ force_constant) :param index_one: Index of particle 1 @@ -215,8 +215,8 @@ The Topology Class particles - .. method:: AddUreyBradleyAngle(index_one, index_two, index_three, - angle, angle_force_constant, + .. method:: AddUreyBradleyAngle(index_one, index_two, index_three, \ + angle, angle_force_constant, \ bond_length, bond_force_constant) :param index_one: Index of particle 1 @@ -241,8 +241,9 @@ The Topology Class particles - .. method:: AddPeriodicDihedral(index_one, index_two, index_three, index_four, - multiplicity, phase, force_constant) + .. method:: AddPeriodicDihedral(index_one, index_two, index_three, \ + index_four, multiplicity, phase, \ + force_constant) :param index_one: Index of particle 1 :param index_two: Index of particle 2 @@ -266,8 +267,9 @@ The Topology Class particles - .. method:: AddPeriodicImproper(index_one, index_two, index_three, index_four, - multiplicity, phase, force_constant) + .. method:: AddPeriodicImproper(index_one, index_two, index_three, \ + index_four, multiplicity, phase, \ + force_constant) :param index_one: Index of particle 1 :param index_two: Index of particle 2 @@ -291,8 +293,8 @@ The Topology Class particles - .. method:: AddHarmonicImproper(index_one, index_two, index_three, index_four, - angle, force_constant) + .. method:: AddHarmonicImproper(index_one, index_two, index_three, \ + index_four, angle, force_constant) :param index_one: Index of particle 1 :param index_two: Index of particle 2 @@ -314,7 +316,7 @@ The Topology Class particles - .. method:: AddCMap(index_one, index_two, index_three, index_four, + .. method:: AddCMap(index_one, index_two, index_three, index_four, \ index_five, dimension, values) :param index_one: Index of particle 1 @@ -407,8 +409,9 @@ The Topology Class particles - .. method:: AddHarmonicPositionRestraint(index, reference_pos, force_constant, - x_scale=1.0, y_scale=1.0, z_scale=1.0) + .. method:: AddHarmonicPositionRestraint(index, reference_pos, \ + force_constant, x_scale=1.0, \ + y_scale=1.0, z_scale=1.0) Adds a harmonic position restraint for a particle in the form: force_constant*(x_scale*(x-x0)^2+y_scale*(y-y0)^2+z_scale*(z-z0)^2) @@ -433,7 +436,8 @@ The Topology Class particles - .. method:: AddHarmonicDistanceRestraint(index_one, index_two, length, force_constant) + .. method:: AddHarmonicDistanceRestraint(index_one, index_two, length, \ + force_constant) Adds a force between two particles in the form: force_constant * (b-b0)^2 @@ -784,7 +788,8 @@ The Topology Class :raises: :class:`RuntimeError` when index exceeds number of set Urey-Bradley angles - .. method:: SetPeriodicDiheralParameters(index, multiplicity, phase, force_constant) + .. method:: SetPeriodicDiheralParameters(index, multiplicity, phase, \ + force_constant) Replaces existing parameters for a particular interaction @@ -801,7 +806,8 @@ The Topology Class :raises: :class:`RuntimeError` when index exceeds number of set periodic dihedrals - .. method:: SetPeriodicImproperParameters(index, multiplicity, phase, force_constant) + .. method:: SetPeriodicImproperParameters(index, multiplicity, phase, \ + force_constant) Replaces existing parameters for a particular interaction @@ -880,8 +886,9 @@ The Topology Class set distance constraints - .. method:: SetHarmonicPositionRestraintParameters(index, ref_position, k,[, - x_scale=1.0, y_scale=1.0, z_scale=1.0]) + .. method:: SetHarmonicPositionRestraintParameters(index, ref_position, k,\ + x_scale=1.0, y_scale=1.0,\ + z_scale=1.0) Replaces existing parameters for a particular interaction @@ -1071,7 +1078,7 @@ The Topology Class number of particles in topology - .. method:: GetPeriodicDihedralIndices(index_one, index_two, index_three, + .. method:: GetPeriodicDihedralIndices(index_one, index_two, index_three, \ index_four) :param index_one: Index of particle 1 @@ -1091,7 +1098,7 @@ The Topology Class number of particles in topology - .. method:: GetPeriodicImpropersIndices(index_one, index_two, index_three, + .. method:: GetPeriodicImpropersIndices(index_one, index_two, index_three, \ index_four) :param index_one: Index of particle 1 @@ -1111,7 +1118,7 @@ The Topology Class number of particles in topology - .. method:: GetHarmonicImpropersIndices(index_one, index_two, index_three, + .. method:: GetHarmonicImpropersIndices(index_one, index_two, index_three, \ index_four) :param index_one: Index of particle 1 @@ -1131,7 +1138,7 @@ The Topology Class number of particles in topology - .. method:: GetCMapIndices(index_one, index_two, index_three, + .. method:: GetCMapIndices(index_one, index_two, index_three, \ index_four, index_five) :param index_one: Index of particle 1 diff --git a/modules/mol/mm/pymod/export_topology.cc b/modules/mol/mm/pymod/export_topology.cc index 2469e7610d024cde70f8db6d45a7cbae0567affc..1e90e1b969fab9d27d0c709c9ddf5fa9f17e74e4 100644 --- a/modules/mol/mm/pymod/export_topology.cc +++ b/modules/mol/mm/pymod/export_topology.cc @@ -489,6 +489,7 @@ void export_Topology() .def("GetNumParticles",&ost::mol::mm::Topology::GetNumParticles) .def("GetNumHarmonicBonds",&ost::mol::mm::Topology::GetNumHarmonicBonds) .def("GetNumHarmonicAngles",&ost::mol::mm::Topology::GetNumHarmonicAngles) + .def("GetNumUreyBradleyAngles",&ost::mol::mm::Topology::GetNumUreyBradleyAngles) .def("GetNumPeriodicDihedrals",&ost::mol::mm::Topology::GetNumPeriodicDihedrals) .def("GetNumPeriodicImpropers",&ost::mol::mm::Topology::GetNumPeriodicImpropers) .def("GetNumHarmonicImpropers",&ost::mol::mm::Topology::GetNumHarmonicImpropers) diff --git a/modules/mol/mm/src/topology_creator.cc b/modules/mol/mm/src/topology_creator.cc index bb1c418f685ca488d13f564d77a7142cf649b71f..453bf132f39c5797884199ddd46217b3ce7b3d43 100644 --- a/modules/mol/mm/src/topology_creator.cc +++ b/modules/mol/mm/src/topology_creator.cc @@ -253,6 +253,7 @@ TopologyPtr TopologyCreator::Create(ost::mol::EntityHandle& ent, residue_names_of_atoms.push_back(i->GetResidue().GetName()); atom_types.push_back(building_blocks[residue_index]->GetType(i->GetName())); atom_charges.push_back(building_blocks[residue_index]->GetCharge(i->GetName())); + atom_names.push_back(i->GetName()); atom_masses.push_back(ff->GetMass(atom_types.back())); bonded_atoms = i->GetBondPartners(); temp.clear();