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
52e9c148
Commit
52e9c148
authored
6 years ago
by
Gerardo Tauriello
Browse files
Options
Downloads
Patches
Plain Diff
SCHWED-3566: Fixed inconsistent handling of sidechain and backbone issues.
parent
41f36de0
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/filter_clashes.cc
+11
-6
11 additions, 6 deletions
modules/mol/alg/src/filter_clashes.cc
modules/mol/alg/src/lddt.cc
+11
-11
11 additions, 11 deletions
modules/mol/alg/src/lddt.cc
with
22 additions
and
17 deletions
modules/mol/alg/src/filter_clashes.cc
+
11
−
6
View file @
52e9c148
...
...
@@ -421,10 +421,15 @@ std::pair<EntityView,StereoChemistryInfo> CheckStereoChemistry(const EntityView&
remove_sc
=
true
;
if
(
always_remove_bb
==
true
)
{
remove_bb
=
true
;
}
String
name
=
atom
.
GetName
();
if
(
name
==
"CA"
||
name
==
"N"
||
name
==
"O"
||
name
==
"C"
)
{
remove_bb
=
true
;
}
else
{
// we need to check both atom names since the order is random!
// -> for angles and clashes this is not needed
String
name1
=
atom
.
GetName
();
String
name2
=
other_atom
.
GetName
();
if
(
name1
==
"CA"
||
name1
==
"N"
||
name1
==
"O"
||
name1
==
"C"
||
name2
==
"CA"
||
name2
==
"N"
||
name2
==
"O"
||
name2
==
"C"
)
{
remove_bb
=
true
;
}
}
}
else
{
LOG_VERBOSE
(
"BOND:"
<<
" "
<<
res
.
GetChain
()
<<
" "
<<
res
.
GetName
()
<<
" "
<<
res
.
GetNumber
()
<<
" "
<<
bond_str
<<
" "
<<
min_length
<<
" "
<<
max_length
<<
" "
<<
blength
<<
" "
<<
zscore
<<
" "
<<
"PASS"
)
...
...
@@ -629,7 +634,7 @@ std::pair<EntityView,ClashingInfo> FilterClashes(const EntityView& ent, const Cl
if
(
remove_bb
)
{
LOG_VERBOSE
(
"ACTION: removing whole residue "
<<
res
);
res
.
SetBoolProp
(
"steric_clash"
,
true
);
res
.
SetBoolProp
(
"steric_clash
_backbone
"
,
true
);
continue
;
}
if
(
remove_sc
)
{
...
...
@@ -642,7 +647,7 @@ std::pair<EntityView,ClashingInfo> FilterClashes(const EntityView& ent, const Cl
filtered
.
AddAtom
(
atom
);
}
}
res
.
SetBoolProp
(
"steric_clash"
,
true
);
res
.
SetBoolProp
(
"steric_clash
_sidechain
"
,
true
);
continue
;
}
filtered
.
AddResidue
(
res
,
ViewAddFlag
::
INCLUDE_ATOMS
);
...
...
This diff is collapsed.
Click to expand it.
modules/mol/alg/src/lddt.cc
+
11
−
11
View file @
52e9c148
...
...
@@ -361,17 +361,17 @@ int main (int argc, char **argv)
}
// Check consistency
for
(
std
::
vector
<
EntityView
>::
const_iterator
ref_list_it
=
ref_list
.
begin
();
ref_list_it
!=
ref_list
.
end
();
++
ref_list_it
)
{
bool
cons_check
=
ResidueNamesMatch
(
model_view
,
*
ref_list_it
,
ignore_consistency_checks
);
if
(
cons_check
==
false
)
{
if
(
ignore_consistency_checks
==
false
)
{
throw
std
::
runtime_error
(
"Residue names in model and in reference structure(s) are inconsistent."
);
}
else
{
LOG_WARNING
(
"Residue names in model and in reference structure(s) are inconsistent."
);
}
}
}
for
(
std
::
vector
<
EntityView
>::
const_iterator
ref_list_it
=
ref_list
.
begin
();
ref_list_it
!=
ref_list
.
end
();
++
ref_list_it
)
{
bool
cons_check
=
ResidueNamesMatch
(
model_view
,
*
ref_list_it
,
ignore_consistency_checks
);
if
(
cons_check
==
false
)
{
if
(
ignore_consistency_checks
==
false
)
{
throw
std
::
runtime_error
(
"Residue names in model and in reference structure(s) are inconsistent."
);
}
else
{
LOG_WARNING
(
"Residue names in model and in reference structure(s) are inconsistent."
);
}
}
}
// computes the lddt score
LocalDistDiffTest
(
model_view
,
ref_list
,
glob_dist_list
,
settings
);
...
...
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