Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
openstructure
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container registry
Model registry
Analyze
Contributor 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
schwede
openstructure
Commits
e92657fd
Commit
e92657fd
authored
6 years ago
by
Bienchen
Browse files
Options
Downloads
Patches
Plain Diff
Fix the HHblits parser for large alignments where the format slightly changes.
parent
07c5e6d0
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
modules/bindings/pymod/hhblits.py
+10
-4
10 additions, 4 deletions
modules/bindings/pymod/hhblits.py
with
10 additions
and
4 deletions
modules/bindings/pymod/hhblits.py
+
10
−
4
View file @
e92657fd
...
...
@@ -254,21 +254,27 @@ def ParseHHblitsOutput(output):
if
line
[
1
:].
startswith
(
'
ss_dssp
'
):
continue
if
line
.
startswith
(
'
T
'
):
end_pos
=
line
.
find
(
'
'
,
22
)
for
start_pos
in
range
(
22
,
len
(
line
)):
if
line
[
start_pos
].
isalpha
()
or
line
[
start_pos
]
==
'
-
'
:
break
end_pos
=
line
.
find
(
'
'
,
start_pos
)
# this can fail if we didn't skip all other "T ..." lines
if
end_pos
==
-
1
:
error_str
=
"
Unparsable line
'
%s
'
for entry No %d
"
\
%
(
line
.
strip
(),
entry_index
+
1
)
raise
AssertionError
(
error_str
)
templ_str
+=
line
[
22
:
end_pos
]
templ_str
+=
line
[
start_pos
:
end_pos
]
if
line
.
startswith
(
'
Q
'
):
end_pos
=
line
.
find
(
'
'
,
22
)
for
start_pos
in
range
(
22
,
len
(
line
)):
if
line
[
start_pos
].
isalpha
()
or
line
[
start_pos
]
==
'
-
'
:
break
end_pos
=
line
.
find
(
'
'
,
start_pos
)
# this can fail if we didn't skip all other "Q ..." lines
if
end_pos
==
-
1
:
error_str
=
"
Unparsable line
'
%s
'
for entry No %d
"
\
%
(
line
.
strip
(),
entry_index
+
1
)
raise
AssertionError
(
error_str
)
query_str
+=
line
[
22
:
end_pos
]
query_str
+=
line
[
start_pos
:
end_pos
]
except
StopIteration
:
if
len
(
query_str
)
>
0
:
hits
[
entry_index
][
0
].
aln
=
_MakeAln
(
query_id
,
...
...
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