Browse files

Remove raw text length calculation from hmmer3-text

Hmmer3-text parsing & indexing requires the header to be present. This means the
raw query result text needs to be appended to the header. If the query result
text length is calculated, appending is not possible since SearchIO.index_db
directly returns the text in the given range, without any modification.

Note that raw text modification may be possible, but we need to meddle with
the base `index_db` class to do this ~ which may be too messy.
  • Loading branch information...
1 parent e0548f0 commit 48c4ec65a6b9d6091bf0cf2a33fab79cdb8ef269 @bow bow committed with peterjc Dec 5, 2012
Showing with 1 addition and 2 deletions.
  1. +1 −2 Bio/SearchIO/HmmerIO/
@@ -404,8 +404,7 @@ def __iter__(self):
# (starts with the start mark)
start_offset = end_offset - len(line)
elif line.startswith(self.qresult_end):
- yield _bytes_to_string(qresult_key), start_offset, \
- end_offset - start_offset
+ yield _bytes_to_string(qresult_key), start_offset, 0
start_offset = end_offset
elif not line:

0 comments on commit 48c4ec6

Please sign in to comment.