Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
ma-wilkins-import
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Analyze
Contributor 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
ma-wilkins-import
Commits
6bbd6fa7
Commit
6bbd6fa7
authored
2 years ago
by
B13nch3n
Browse files
Options
Downloads
Patches
Plain Diff
Minor fixes
parent
76a0a93d
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
translate2modelcif.py
+5
-4
5 additions, 4 deletions
translate2modelcif.py
with
5 additions
and
4 deletions
translate2modelcif.py
+
5
−
4
View file @
6bbd6fa7
...
...
@@ -251,7 +251,6 @@ def _get_protocol_steps_and_software(cnfg_file):
# Must refer to existing data, so we try keywords
step
[
"
output
"
]
=
"
model
"
# get software
<<<<<<<
HEAD
step
[
"
software
"
]
=
[
{
"
name
"
:
"
ColabFold
"
,
...
...
@@ -543,6 +542,8 @@ def _get_scores(data, prfx):
with
open
(
scrs_fle
,
encoding
=
"
utf8
"
)
as
jfh
:
scrs_json
=
json
.
load
(
jfh
)
# ToDo: is dict.update still the way to go when iterating multiple model
# directories? Aka, does dict.update overwrite old scores?
data
.
update
(
scrs_json
)
...
...
@@ -613,11 +614,10 @@ def _get_modelcif_protocol(protocol_steps, target_entities, model):
for
sft
in
js_step
[
"
software
"
]:
sftwre
.
append
(
_assemble_modelcif_software
(
sft
))
sftwre
=
modelcif
.
SoftwareGroup
(
elements
=
sftwre
)
# ToDo [internal]: add software parameters
if
js_step
[
'
software_parameters
'
]:
if
js_step
[
"
software_parameters
"
]:
params
=
[]
# ToDo [internal]: handle lists!
for
k
,
v
in
js_step
[
'
software_parameters
'
].
items
():
for
k
,
v
in
js_step
[
"
software_parameters
"
].
items
():
params
.
append
(
modelcif
.
SoftwareParameter
(
k
,
v
)
)
...
...
@@ -630,6 +630,7 @@ def _get_modelcif_protocol(protocol_steps, target_entities, model):
if
js_step
[
"
input
"
]
==
"
target_sequences
"
:
input_data
=
modelcif
.
data
.
DataGroup
(
target_entities
)
# ToDo: Add databases + versions
elif
js_step
[
"
input
"
]
==
"
model
"
:
input_data
=
model
else
:
...
...
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