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
013f357a
Commit
013f357a
authored
4 years ago
by
B13nch3n
Browse files
Options
Downloads
Patches
Plain Diff
Rename SMTL to QMTL
parent
d6710a9a
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
docker/Dockerfile
+3
-3
3 additions, 3 deletions
docker/Dockerfile
docker/run_qmean.py
+28
-28
28 additions, 28 deletions
docker/run_qmean.py
with
31 additions
and
31 deletions
docker/Dockerfile
+
3
−
3
View file @
013f357a
...
...
@@ -249,10 +249,10 @@ RUN set -eo pipefail; \
cd ${SRC_FLDR}; \
/usr/bin/rm -rf ost; \
# make the compounds.chemlib interchangeable: move to its own dir and link
/usr/bin/mkdir /
compound_lib
; \
/usr/bin/mkdir /
qmtl
; \
/usr/bin/mv /usr/local/share/openstructure/compounds.chemlib \
/
compound_lib
/; \
ln -s /
compound_lib
/compounds.chemlib /usr/local/share/openstructure/; \
/
qmtl
/; \
ln -s /
qmtl
/compounds.chemlib /usr/local/share/openstructure/; \
# \
# Cleanup packages only needed to compile/ install things \
# \
...
...
This diff is collapsed.
Click to expand it.
docker/run_qmean.py
+
28
−
28
View file @
013f357a
...
...
@@ -165,10 +165,10 @@ def _run_accpro(fasta_file, msa, workdir, seqlen):
def
_get_dc
(
workdir
,
target_seq
,
hh
,
a3m_file
,
s
mtldir
,
datefilter
=
None
,
store_dc
=
True
workdir
,
target_seq
,
hh
,
a3m_file
,
q
mtldir
,
datefilter
=
None
,
store_dc
=
True
):
db
=
os
.
path
.
join
(
s
mtldir
,
"
smtl_uniq
"
)
db
=
os
.
path
.
join
(
q
mtldir
,
"
smtl_uniq
"
)
# hhblits prints stuff in stderr, let's setup yet another logger and swallow
# everything. Check later if something went wrong...
...
...
@@ -181,15 +181,15 @@ def _get_dc(
LogError
(
"
HHblits search did not produce any results, aborting
"
)
sys
.
exit
(
-
1
)
index_file
=
os
.
path
.
join
(
s
mtldir
,
"
CHAINCLUSTERINDEX
"
)
dates_file
=
os
.
path
.
join
(
s
mtldir
,
"
dates.csv
"
)
index_file
=
os
.
path
.
join
(
q
mtldir
,
"
CHAINCLUSTERINDEX
"
)
dates_file
=
os
.
path
.
join
(
q
mtldir
,
"
dates.csv
"
)
chain_cluster_index
=
_ChainClusterIndex
(
index_file
,
dates_file
)
binary_tpl
=
DisCoDataContainers
(
os
.
path
.
join
(
s
mtldir
,
"
indexer.dat
"
),
os
.
path
.
join
(
s
mtldir
,
"
seqres_data.dat
"
),
os
.
path
.
join
(
s
mtldir
,
"
atomseq_data.dat
"
),
os
.
path
.
join
(
s
mtldir
,
"
ca_pos_data.dat
"
),
os
.
path
.
join
(
q
mtldir
,
"
indexer.dat
"
),
os
.
path
.
join
(
q
mtldir
,
"
seqres_data.dat
"
),
os
.
path
.
join
(
q
mtldir
,
"
atomseq_data.dat
"
),
os
.
path
.
join
(
q
mtldir
,
"
ca_pos_data.dat
"
),
)
dc
=
DisCoContainer
(
target_seq
)
...
...
@@ -210,7 +210,7 @@ def _get_dc(
pdb_id
,
assembly_id
,
chain_name
=
tpl
.
split
(
"
.
"
)
# use try except block, if certain template cannot be
# found in binary
SM
TL...
# found in binary T
P
L...
try
:
binary_tpl_assembly
=
"
.
"
.
join
([
pdb_id
,
assembly_id
])
tpl_data
=
ExtractTemplateDataDisCo
(
...
...
@@ -239,7 +239,7 @@ def _get_dc(
return
dc
def
_seqanno
(
target_seq
,
workdir
,
uniclust30
,
do_disco
,
s
mtldir
,
datefilter
):
def
_seqanno
(
target_seq
,
workdir
,
uniclust30
,
do_disco
,
q
mtldir
,
datefilter
):
md5_hash
=
target_seq
.
GetName
()
seqanno_workdir
=
os
.
path
.
join
(
workdir
,
md5_hash
)
...
...
@@ -291,7 +291,7 @@ def _seqanno(target_seq, workdir, uniclust30, do_disco, smtldir, datefilter):
accpro_handler
=
ACCPROHandler
(
data
)
if
do_disco
:
dc
=
_get_dc
(
seqanno_workdir
,
target_seq
,
hh
,
a3m
,
s
mtldir
,
datefilter
)
dc
=
_get_dc
(
seqanno_workdir
,
target_seq
,
hh
,
a3m
,
q
mtldir
,
datefilter
)
else
:
dc
=
None
...
...
@@ -648,7 +648,7 @@ class ModelScorerContainer:
seqres
,
workdir
,
uniclust30
,
s
mtldir
,
q
mtldir
,
datefilter
,
):
self
.
method
=
method
...
...
@@ -663,7 +663,7 @@ class ModelScorerContainer:
# - self.psipred_handler
# - self.accpro_handler
# - self.disco_container
self
.
_do_seqres_features
(
workdir
,
uniclust30
,
s
mtldir
,
datefilter
)
self
.
_do_seqres_features
(
workdir
,
uniclust30
,
q
mtldir
,
datefilter
)
# perform scoring on all models
self
.
_score
()
...
...
@@ -689,7 +689,7 @@ class ModelScorerContainer:
added_sequences
.
add
(
s
.
GetName
())
return
self
.
_seqres_list
def
_do_seqres_features
(
self
,
workdir
,
uniclust30
,
s
mtldir
,
datefilter
):
def
_do_seqres_features
(
self
,
workdir
,
uniclust30
,
q
mtldir
,
datefilter
):
self
.
psipred_handler
=
dict
()
self
.
accpro_handler
=
dict
()
self
.
disco_container
=
dict
()
...
...
@@ -699,7 +699,7 @@ class ModelScorerContainer:
workdir
,
uniclust30
,
self
.
method
==
"
QMEANDisCo
"
,
s
mtldir
,
q
mtldir
,
datefilter
,
)
self
.
psipred_handler
[
s
.
GetName
()]
=
p
...
...
@@ -768,11 +768,11 @@ def _get_uniclust30():
raise
RuntimeError
(
msg
)
def
_check_
s
mtl
(
args
):
# expect
s
mtl to be mounted at /
s
mtl
if
not
os
.
path
.
exists
(
"
/
s
mtl
"
):
def
_check_
q
mtl
(
args
):
# expect
q
mtl to be mounted at /
q
mtl
if
not
os
.
path
.
exists
(
"
/
q
mtl
"
):
raise
RuntimeError
(
"
For running QMEANDisCo you need to mount the downloadable
S
MTL data to /
s
mtl
"
"
For running QMEANDisCo you need to mount the downloadable
Q
MTL data to /
q
mtl
"
)
expected_files
=
[
...
...
@@ -789,16 +789,16 @@ def _check_smtl(args):
]
for
f
in
expected_files
:
p
=
os
.
path
.
join
(
"
/
s
mtl
"
,
f
)
p
=
os
.
path
.
join
(
"
/
q
mtl
"
,
f
)
if
not
os
.
path
.
exists
(
p
):
raise
RuntimeError
(
f
"
expect
{
p
}
to be present
"
)
# only if date-filter is specified, we additionally need dates.csv'
if
args
.
datefilter
:
p
=
os
.
path
.
join
(
"
/
s
mtl
"
,
"
dates.csv
"
)
p
=
os
.
path
.
join
(
"
/
q
mtl
"
,
"
dates.csv
"
)
if
not
os
.
path
.
exists
(
p
):
raise
RuntimeError
(
f
"
If datefilter argument is provided, you additionally need to provide the
S
MTL specific
{
p
}
"
f
"
If datefilter argument is provided, you additionally need to provide the
Q
MTL specific
{
p
}
"
)
...
...
@@ -930,9 +930,9 @@ def _parse_args():
args
.
uniclust30
=
_get_uniclust30
()
ost
.
LogInfo
(
f
"
Use UniClust30:
{
args
.
uniclust30
}
"
)
# Check for valid
S
MTL in case of QMEANDisCo
# Check for valid
Q
MTL in case of QMEANDisCo
if
args
.
method
==
"
QMEANDisCo
"
:
_check_
s
mtl
(
args
)
_check_
q
mtl
(
args
)
# check what complib is used and report to logger
creation_date
=
conop
.
GetDefaultLib
().
GetCreationDate
()
...
...
@@ -963,10 +963,10 @@ def _main():
out
[
"
seqres_uploaded
"
].
append
(
{
"
name
"
:
s
.
GetName
(),
"
sequence
"
:
str
(
s
)}
)
out
[
"
s
mtl_version
"
]
=
None
out
[
"
q
mtl_version
"
]
=
None
if
args
.
method
==
"
QMEANDisCo
"
:
with
open
(
"
/
s
mtl/VERSION
"
,
"
r
"
)
as
fh
:
out
[
"
s
mtl_version
"
]
=
fh
.
read
().
strip
()
with
open
(
"
/
q
mtl/VERSION
"
,
"
r
"
)
as
fh
:
out
[
"
q
mtl_version
"
]
=
fh
.
read
().
strip
()
######################################
# Load/process models and do scoring #
...
...
@@ -977,7 +977,7 @@ def _main():
args
.
seqres
,
args
.
workdir
,
args
.
uniclust30
,
"
/
s
mtl
"
,
"
/
q
mtl
"
,
args
.
datefilter
,
)
...
...
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