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
52800ff0
Commit
52800ff0
authored
Nov 22, 2021
by
Gustaf Ahdritz
Browse files
Add alternative fasta file extension
parent
d63363b7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
scripts/precompute_alignments.py
scripts/precompute_alignments.py
+1
-1
No files found.
scripts/precompute_alignments.py
View file @
52800ff0
...
@@ -51,7 +51,7 @@ def main(args):
...
@@ -51,7 +51,7 @@ def main(args):
for
k
,
v
in
mmcif
.
chain_to_seqres
.
items
():
for
k
,
v
in
mmcif
.
chain_to_seqres
.
items
():
chain_id
=
'_'
.
join
([
file_id
,
k
])
chain_id
=
'_'
.
join
([
file_id
,
k
])
seqs
[
chain_id
]
=
v
seqs
[
chain_id
]
=
v
elif
(
f
.
endswith
(
'.fasta'
)):
elif
(
f
.
endswith
(
'.fasta'
)
or
f
.
endswith
(
'.fa'
)
):
with
open
(
path
,
'r'
)
as
fp
:
with
open
(
path
,
'r'
)
as
fp
:
fasta_str
=
fp
.
read
()
fasta_str
=
fp
.
read
()
input_seqs
,
_
=
parse_fasta
(
fasta_str
)
input_seqs
,
_
=
parse_fasta
(
fasta_str
)
...
...
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