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
ac492a32
Commit
ac492a32
authored
7 years ago
by
Rafal Gumienny
Browse files
Options
Downloads
Patches
Plain Diff
fix: SCHWED-3120 Renumber entities
parent
66e60833
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
actions/ost-compare-structures
+13
-3
13 additions, 3 deletions
actions/ost-compare-structures
with
13 additions
and
3 deletions
actions/ost-compare-structures
+
13
−
3
View file @
ac492a32
...
...
@@ -18,6 +18,7 @@ from ost.mol.alg import (qsscoring, Molck, MolckSettings, CleanlDDTReferences,
PreparelDDTGlobalRDMap, lDDTSettings, CheckStructure,
LocalDistDiffTest)
from ost.conop import CompoundLib
from ost.seq.alg.renumber import Renumber
class _DefaultStereochemicalParamAction(argparse.Action):
...
...
@@ -426,6 +427,7 @@ def _Main():
reference.GetName()))
qs_scorer = qsscoring.QSscorer(reference, model)
if opts.qs_score:
ost.LogInfo("Computing QS-score")
try:
if opts.chain_mapping is not None:
ost.LogInfo(
...
...
@@ -457,6 +459,7 @@ def _Main():
})
# Calculate lDDT
if opts.lddt:
ost.LogInfo("Computing lDDT")
lddt_settings = lDDTSettings(
bond_tolerance=opts.bond_tolerance,
angle_tolerance=opts.angle_tolerance,
...
...
@@ -470,9 +473,16 @@ def _Main():
if opts.verbosity > 3:
lddt_settings.PrintParameters()
# Perform scoring
for mdl_c, ref_c in qs_scorer.chain_mapping.iteritems():
model_view = model.Select("cname=%s" % mdl_c)
reference_view = reference.Select("cname=%s" % ref_c)
# Get chains from mapped alignments
for aln in qs_scorer.alignments:
# Get chains and renumber according to alignment (for lDDT)
ch_ref = aln.GetSequence(0).GetName()
reference_view = Renumber(
aln.GetSequence(0)).CreateFullView()
ch_mdl = aln.GetSequence(1).GetName()
model_view = Renumber(aln.GetSequence(1)).CreateFullView()
ost.LogInfo(("Computing lDDT between model chain %s and "
"reference chain %s") % (ch_mdl, ch_ref))
_ComputelDDT(model_view, [reference_view], lddt_settings)
if opts.output is not None:
...
...
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