Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
schwede
openstructure
Commits
78c3ca04
Commit
78c3ca04
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
fix: SCHWED-3126 Make MapNonStandardResidues in-place
parent
061e4b6c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
modules/mol/alg/src/molck.cc
+4
-3
4 additions, 3 deletions
modules/mol/alg/src/molck.cc
modules/mol/alg/src/molck.hh
+1
-1
1 addition, 1 deletion
modules/mol/alg/src/molck.hh
with
5 additions
and
4 deletions
modules/mol/alg/src/molck.cc
+
4
−
3
View file @
78c3ca04
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/molck.hh
+
1
−
1
View file @
78c3ca04
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment