Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Q
QMEAN
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Analyze
Contributor analytics
CI/CD 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
QMEAN
Commits
385a4962
Commit
385a4962
authored
4 years ago
by
Studer Gabriel
Browse files
Options
Downloads
Patches
Plain Diff
add QMEANBrane membrane annotation in container output
parent
1f8bfed2
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
docker/README.md
+2
-0
2 additions, 0 deletions
docker/README.md
docker/qmeanbrane_example/out.json
+1
-1
1 addition, 1 deletion
docker/qmeanbrane_example/out.json
docker/run_qmean.py
+11
-3
11 additions, 3 deletions
docker/run_qmean.py
with
14 additions
and
4 deletions
docker/README.md
+
2
−
0
View file @
385a4962
...
...
@@ -234,6 +234,8 @@ keys:
as the corresponding SEQRES (ATOMSEQ if SEQRES is not given as an input).
The location of a residue in SEQRES determines the location of its local score
in the score list.
*
`qmeanbrane_membrane`
: Only available in case of QMEANBrane. Defines
transmembrane residues with the same SEQRES mapping as the local scores.
<a name="examples"></a>Examples
...
...
This diff is collapsed.
Click to expand it.
docker/qmeanbrane_example/out.json
+
1
−
1
View file @
385a4962
This diff is collapsed.
Click to expand it.
docker/run_qmean.py
+
11
−
3
View file @
385a4962
...
...
@@ -322,6 +322,7 @@ class ModelScorer:
# the following members remain empty until you call score()
self
.
local_scores
=
None
self
.
global_scores
=
None
self
.
qmeanbrane_membrane
=
None
# only set in case of QMEANBrane
def
to_json
(
self
):
out_dict
=
dict
()
...
...
@@ -339,6 +340,8 @@ class ModelScorer:
"
local_scores
"
:
self
.
local_scores
,
"
global_scores
"
:
self
.
global_scores
,
}
if
self
.
qmeanbrane_membrane
:
out_dict
[
"
qmeanbrane_membrane
"
]
=
self
.
qmeanbrane_membrane
return
out_dict
def
score
(
...
...
@@ -420,6 +423,7 @@ class ModelScorer:
)
local_scores
=
dict
()
qmeanbrane_membrane
=
None
if
scoring_function
in
[
"
QMEANDisCo
"
,
"
QMEAN
"
]:
for
chn
,
seq
in
zip
(
scorer
.
model
.
chains
,
self
.
seqres_list
):
...
...
@@ -434,6 +438,7 @@ class ModelScorer:
local_scores
[
chn
.
GetName
()]
=
score_list
elif
scoring_function
==
"
QMEANBrane
"
:
# the global scores are the same as QMEAN but the local ones change
qmeanbrane_membrane
=
dict
()
settings
=
qmean_config
.
MembraneSettings
()
peptide_sel
=
self
.
processed_model
.
Select
(
"
peptide=True
"
)
res
=
mqa_result_membrane
.
LocalMembraneResult
.
Create
(
...
...
@@ -445,23 +450,26 @@ class ModelScorer:
)
for
ch
,
s
in
zip
(
peptide_sel
.
chains
,
self
.
seqres_list
):
score_list
=
list
([
None
]
*
len
(
s
))
local_scores
[
ch
.
GetName
()]
=
score_list
local_scores
[
ch
.
GetName
()]
=
list
([
None
]
*
len
(
s
))
qmeanbrane_membrane
[
ch
.
GetName
()]
=
list
([
None
]
*
len
(
s
))
chain_name_idx
=
res
.
score_table
.
GetColIndex
(
"
chain
"
)
rnum_idx
=
res
.
score_table
.
GetColIndex
(
"
rnum
"
)
membrane_idx
=
res
.
score_table
.
GetColIndex
(
"
membrane
"
)
score_idx
=
res
.
score_table
.
GetColIndex
(
"
QMEAN
"
)
for
r
in
res
.
score_table
.
rows
:
chain_name
=
r
[
chain_name_idx
]
rnum
=
r
[
rnum_idx
]
score
=
r
[
score_idx
]
mem
=
r
[
membrane_idx
]
local_scores
[
chain_name
][
rnum
-
1
]
=
format_float
(
score
)
qmeanbrane_membrane
[
chain_name
][
rnum
-
1
]
=
mem
else
:
raise
RuntimeError
(
f
"
Unknown scoring function
{
scoring_function
}
"
)
self
.
local_scores
=
local_scores
self
.
global_scores
=
global_scores
self
.
qmeanbrane_membrane
=
qmeanbrane_membrane
def
_load_model
(
self
):
"""
Read OST entity either from mmCIF or PDB.
"""
...
...
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