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
c5a0089e
Commit
c5a0089e
authored
1 year ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
add TM-score to compare-structures action
parent
94618420
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
actions/ost-compare-structures
+23
-1
23 additions, 1 deletion
actions/ost-compare-structures
modules/doc/actions.rst
+6
-0
6 additions, 0 deletions
modules/doc/actions.rst
with
29 additions
and
1 deletion
actions/ost-compare-structures
+
23
−
1
View file @
c5a0089e
...
...
@@ -277,6 +277,13 @@ def _ParseArgs():
"https://github.com/kliment-olechnovic/voronota). Searches PATH "
"if not set."))
parser.add_argument(
"--usalign-exec",
dest="usalign_exec",
default=None,
help=("Path to USalign executable to compute TM-score. If not given, "
"an OpenStructure internal copy of USalign code is used."))
parser.add_argument(
"--qs-score",
dest="qs_score",
...
...
@@ -346,6 +353,16 @@ def _ParseArgs():
"as string in form <num><inscode>. The respective scores are "
"available as keys \"patch_qs\" and \"patch_dockq\""))
parser.add_argument(
"--tm-score",
dest="tm_score",
default=False,
action="store_true",
help=("Computes TM-score with the USalign tool. Also computes a "
"chain mapping in case of complexes that is stored in the "
"same format as the default mapping. TM-score and the mapping "
"are available as keys \"tm_score\" and \"usalign_mapping\""))
return parser.parse_args()
def _Rename(ent):
...
...
@@ -483,7 +500,8 @@ def _Process(model, reference, args):
scorer = scoring.Scorer(model, reference,
resnum_alignments = args.residue_number_alignment,
cad_score_exec = args.cad_exec,
custom_mapping = mapping)
custom_mapping = mapping,
usalign_exec = args.usalign_exec)
ir = _GetInconsistentResidues(scorer.aln)
if len(ir) > 0 and args.enforce_consistency:
...
...
@@ -559,6 +577,10 @@ def _Process(model, reference, args):
out["patch_qs"] = scorer.patch_qs
out["patch_dockq"] = scorer.patch_dockq
if args.tm_score:
out["tm_score"] = scorer.tm_score
out["usalign_mapping"] = scorer.usalign_mapping
if args.dump_structures:
try:
io.SavePDB(scorer.model, model.GetName() + args.dump_suffix)
...
...
This diff is collapsed.
Click to expand it.
modules/doc/actions.rst
+
6
−
0
View file @
c5a0089e
...
...
@@ -250,6 +250,12 @@ Details on the usage (output of ``ost compare-structures --help``):
Residues are represented as string in form
<num><inscode>. The respective scores are available as
keys "patch_qs" and "patch_dockq"
--tm-score Computes TM-score with the USalign tool. Also computes
a chain mapping in case of complexes that is stored
in the same format as the default mapping. TM-score
and the mapping are available as keys "tm_score" and
"usalign_mapping"
.. _ost compare ligand structures:
...
...
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