Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
OpenFold
Commits
d3c89fc9
Commit
d3c89fc9
authored
Jul 05, 2024
by
ljarosch
Browse files
Fix 3-to-1 letter conversion to use extended mapping
parent
f6c875b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
openfold/data/mmcif_parsing.py
openfold/data/mmcif_parsing.py
+1
-1
No files found.
openfold/data/mmcif_parsing.py
View file @
d3c89fc9
...
@@ -283,7 +283,7 @@ def parse(
...
@@ -283,7 +283,7 @@ def parse(
author_chain
=
mmcif_to_author_chain_id
[
chain_id
]
author_chain
=
mmcif_to_author_chain_id
[
chain_id
]
seq
=
[]
seq
=
[]
for
monomer
in
seq_info
:
for
monomer
in
seq_info
:
code
=
PDBData
.
protein_letters_3to1
.
get
(
monomer
.
id
,
"X"
)
code
=
PDBData
.
protein_letters_3to1
_extended
.
get
(
monomer
.
id
,
"X"
)
seq
.
append
(
code
if
len
(
code
)
==
1
else
"X"
)
seq
.
append
(
code
if
len
(
code
)
==
1
else
"X"
)
seq
=
""
.
join
(
seq
)
seq
=
""
.
join
(
seq
)
author_chain_to_sequence
[
author_chain
]
=
seq
author_chain_to_sequence
[
author_chain
]
=
seq
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment