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
df0a5fa4
Commit
df0a5fa4
authored
13 years ago
by
Valerio Mariani
Browse files
Options
Downloads
Patches
Plain Diff
Ignore all chains except the first in both the reference and the model
Thanks Marco
parent
45fed551
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/mol/alg/src/local_dist_test.cc
+10
-3
10 additions, 3 deletions
modules/mol/alg/src/local_dist_test.cc
with
10 additions
and
3 deletions
modules/mol/alg/src/local_dist_test.cc
+
10
−
3
View file @
df0a5fa4
...
...
@@ -73,7 +73,11 @@ std::pair<Real, Real> calc_overlap1(ResidueView ref_res,
}
for
(
AtomViewList
::
iterator
aj
=
within
.
begin
(),
ae2
=
within
.
end
();
aj
!=
ae2
;
++
aj
)
{
if
(
aj
->
GetElement
()
==
"H"
)
{
continue
;
}
if
(
aj
->
GetElement
()
==
"H"
||
aj
->
GetResidue
().
GetChain
()
!=
ai
->
GetResidue
().
GetChain
())
{
continue
;
}
if
(
only_fixed
)
{
if
(
aj
->
GetResidue
().
GetNumber
()
==
ref_res
.
GetNumber
())
{
continue
;
...
...
@@ -150,7 +154,10 @@ std::pair<Real, Real> calc_overlap2(const seq::ConstSequenceHandle& ref_seq,
}
for
(
AtomViewList
::
iterator
aj
=
within
.
begin
(),
ae2
=
within
.
end
();
aj
!=
ae2
;
++
aj
)
{
if
(
aj
->
GetElement
()
==
"H"
)
{
continue
;
}
if
(
aj
->
GetElement
()
==
"H"
||
aj
->
GetResidue
().
GetChain
()
!=
ai
->
GetResidue
().
GetChain
())
{
continue
;
}
if
(
only_fixed
)
{
if
(
aj
->
GetResidue
().
GetNumber
()
==
ref_res
.
GetNumber
())
{
continue
;
...
...
@@ -218,7 +225,7 @@ Real LocalDistTest(const EntityView& mdl, const EntityView& ref,
LOG_WARNING
(
"reference structures doesn't contain any residues"
);
return
0.0
;
}
ResidueViewList
ref_residues
=
ref
.
GetResidueList
();
ResidueViewList
ref_residues
=
ref
.
GetChainList
()[
0
].
GetResidueList
();
std
::
vector
<
std
::
pair
<
Real
,
Real
>
>
overlap_list
(
ref_residues
.
size
(),
std
::
pair
<
Real
,
Real
>
(
0.0
,
0.0
));
ChainView
mdl_chain
=
mdl
.
GetChainList
()[
0
];
// Residues with symmetric side-chains require special treatment as there are
...
...
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