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
6a08bd7b
Commit
6a08bd7b
authored
3 years ago
by
B13nch3n
Browse files
Options
Downloads
Patches
Plain Diff
Add _ma_model_list.model_group_name
parent
79ccf5b5
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
+8
-1
8 additions, 1 deletion
translate2modelcif.py
with
8 additions
and
1 deletion
translate2modelcif.py
+
8
−
1
View file @
6a08bd7b
...
...
@@ -306,6 +306,12 @@ def _get_model_details(gene_names):
)
def
_get_model_group_name
():
"""
Get a name for a model group.
"""
return
"
Crosslinked Heterodimer Multimer v2 Models
"
def
_get_sequence
(
chn
):
"""
Get the sequence out of an OST chain.
"""
# initialise
...
...
@@ -595,7 +601,7 @@ def _store_as_modelcif(interaction_name, data_json, ost_ent, file_prfx):
# ToDo [input]: Get name
model_group
=
modelcif
.
model
.
ModelGroup
(
[
model
],
name
=
"
ma_model_list.
model_group_name
"
[
model
],
name
=
data_json
[
"
model_group_name
"
]
)
system
.
model_groups
.
append
(
model_group
)
...
...
@@ -632,6 +638,7 @@ def _create_model_json(data, pdb_file, up_acs):
gns
.
append
(
i
[
"
up_gn
"
])
data
[
"
title
"
]
=
_get_title
(
gns
)
data
[
"
model_details
"
]
=
_get_model_details
(
gns
)
data
[
"
model_group_name
"
]
=
_get_model_group_name
()
return
ost_ent
...
...
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