Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
AlphaPulldown-ModelCIF-Conversion
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
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
Bienchen
AlphaPulldown-ModelCIF-Conversion
Commits
9827ae0e
Commit
9827ae0e
authored
1 year ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Get software from file
parent
f3e4fac0
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
convert_to_modelcif.py
+8
-13
8 additions, 13 deletions
convert_to_modelcif.py
with
8 additions
and
13 deletions
convert_to_modelcif.py
+
8
−
13
View file @
9827ae0e
...
...
@@ -318,10 +318,9 @@ def _get_modelcif_ref_dbs(meta_json):
db_name
=
db_name
.
lower
()
# if DB already exists, check URL and version
if
db_name
in
sdb_dct
:
print
(
"
ALREADY THERE
"
,
sdb_dct
[
db_name
])
# ToDo: switch URL to the actual URL read from JSON
if
(
sdb_dct
[
db_name
].
version
=
=
vdct
[
"
version
"
]
sdb_dct
[
db_name
].
version
!
=
vdct
[
"
version
"
]
or
sdb_dct
[
db_name
].
url
!=
db_info
[
db_name
][
"
url
"
]
):
raise
RuntimeError
(
...
...
@@ -376,6 +375,7 @@ def _store_as_modelcif(
)
# create software list from feature metadata
# ToDo: store_as_modelcif should not use __meta__
sw_dct
=
_get_software_data
(
data_json
[
"
__meta__
"
])
# process scores
...
...
@@ -730,25 +730,20 @@ def _get_protocol_steps(modelcif_json):
"""
Create the list of protocol steps with software and parameters used.
"""
protocol
=
[]
# MSA/ monomer feature generation step
# ToDo: get software from modelcif_json
step
=
{
"
method_type
"
:
"
coevolution MSA
"
,
"
step_name
"
:
"
MSA generation
"
,
"
details
"
:
"
Create sequence features for corresponding monomers.
"
,
"
input_data_group
"
:
"
target_sequences
"
,
"
output_data_group
"
:
"
monomer_pickle_files
"
,
"
software_group
"
:
[
"
AlphaPulldown
"
,
"
AlphaFold
"
,
"
jackhmmer
"
,
"
hhblits
"
,
"
hhsearch
"
,
"
hmmsearch
"
,
"
hmmbuild
"
,
"
kalign
"
,
]
"
software_group
"
:
[]
# _ma_protocol_step.protocol_id
}
for
sftwr
in
modelcif_json
[
"
__meta__
"
].
values
():
sftwr
=
sftwr
[
"
software
"
]
for
tool
in
sftwr
:
if
tool
not
in
step
[
"
software_group
"
]:
step
[
"
software_group
"
].
append
(
tool
)
protocol
.
append
(
step
)
# modelling step
...
...
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