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
6e5c619c
Commit
6e5c619c
authored
Nov 15, 2021
by
Gustaf Ahdritz
Browse files
Fix bug in alignment precomputation script
parent
dde7e6c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
scripts/precompute_alignments.py
scripts/precompute_alignments.py
+2
-1
No files found.
scripts/precompute_alignments.py
View file @
6e5c619c
...
...
@@ -5,6 +5,7 @@ import tempfile
import
openfold.data.mmcif_parsing
as
mmcif_parsing
from
openfold.data.data_pipeline
import
AlignmentRunner
from
openfold.data.parsers
import
parse_fasta
from
openfold.np
import
protein
,
residue_constants
from
utils
import
add_data_args
...
...
@@ -53,7 +54,7 @@ def main(args):
elif
(
f
.
endswith
(
'.fasta'
)):
with
open
(
path
,
'r'
)
as
fp
:
fasta_str
=
fp
.
read
()
input_seqs
,
_
=
parsers
.
parse_fasta
(
fasta_str
)
input_seqs
,
_
=
parse_fasta
(
fasta_str
)
if
len
(
input_seqs
)
!=
1
:
msg
=
f
'More than one input_sequence found in
{
f
}
'
if
(
args
.
raise_errors
):
...
...
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