Skip to content
Snippets Groups Projects
Commit 78c3ca04 authored by Rafal Gumienny's avatar Rafal Gumienny
Browse files

fix: SCHWED-3126 Make MapNonStandardResidues in-place

parent 061e4b6c
Branches
Tags
No related merge requests found
...@@ -8,7 +8,8 @@ using namespace ost::conop; ...@@ -8,7 +8,8 @@ using namespace ost::conop;
using namespace ost::mol; using namespace ost::mol;
EntityHandle ost::mol::alg::MapNonStandardResidues(EntityHandle& ent, CompoundLibPtr lib) { void ost::mol::alg::MapNonStandardResidues(EntityHandle& ent, CompoundLibPtr lib) {
// TODO: Maybe it is possible to make it in-place operation
EntityHandle new_ent=CreateEntity(); EntityHandle new_ent=CreateEntity();
ChainHandleList chains=ent.GetChainList(); ChainHandleList chains=ent.GetChainList();
XCSEditor new_edi=new_ent.EditXCS(); XCSEditor new_edi=new_ent.EditXCS();
...@@ -40,7 +41,7 @@ EntityHandle ost::mol::alg::MapNonStandardResidues(EntityHandle& ent, CompoundLi ...@@ -40,7 +41,7 @@ EntityHandle ost::mol::alg::MapNonStandardResidues(EntityHandle& ent, CompoundLi
} }
} }
} }
return new_ent; ent = new_ent;
} }
void ost::mol::alg::RemoveAtoms( void ost::mol::alg::RemoveAtoms(
...@@ -147,7 +148,7 @@ void ost::mol::alg::Molck( ...@@ -147,7 +148,7 @@ void ost::mol::alg::Molck(
ost::conop::CompoundLibPtr lib, ost::conop::CompoundLibPtr lib,
const ost::mol::alg::MolckSettings& settings=ost::mol::alg::MolckSettings()){ const ost::mol::alg::MolckSettings& settings=ost::mol::alg::MolckSettings()){
if (settings.map_nonstd_res) { if (settings.map_nonstd_res) {
ent = ost::mol::alg::MapNonStandardResidues(ent, lib); ost::mol::alg::MapNonStandardResidues(ent, lib);
} }
ost::mol::alg::RemoveAtoms(ent, ost::mol::alg::RemoveAtoms(ent,
lib, lib,
......
...@@ -69,7 +69,7 @@ struct MolckSettings{ ...@@ -69,7 +69,7 @@ struct MolckSettings{
}; };
ost::mol::EntityHandle MapNonStandardResidues(ost::mol::EntityHandle& ent, void MapNonStandardResidues(ost::mol::EntityHandle& ent,
ost::conop::CompoundLibPtr lib); ost::conop::CompoundLibPtr lib);
void RemoveAtoms(ost::mol::EntityHandle& ent, void RemoveAtoms(ost::mol::EntityHandle& ent,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment