Skip to content

Commit

Permalink
bugfix: hh_reader alignments were not joined; hhmakemodel.py serious …
Browse files Browse the repository at this point in the history
…bugs fixed by Hongbo Zhu
  • Loading branch information
meiermark committed Jul 14, 2017
1 parent f74f336 commit d1b4893
Show file tree
Hide file tree
Showing 2 changed files with 209 additions and 60 deletions.
6 changes: 3 additions & 3 deletions scripts/hh_reader.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@

hhr_alignment = namedtuple('hhr_alignment', ['query_id', 'query_length', 'query_neff',
'template_id', 'template_length', 'template_info',
'template_neff', 'query_ali', 'template_ali',
'start', 'end', 'probability', 'evalue', 'score',
'template_neff', 'query_ali', 'template_ali',
'start', 'end', 'probability', 'evalue', 'score',
'aligned_cols', 'identity', 'similarity', 'sum_probs'])


Expand Down Expand Up @@ -169,7 +169,7 @@ def parse_result(lines):
if(template_id is not None and query_start is not None):
result = hhr_alignment(query_id, query_length, query_neff,
template_id, template_length, template_info, template_neff,
query_seq, template_seq, (query_start, template_start),
"".join(query_seq), "".join(template_seq), (query_start, template_start),
(query_end, template_end), probability, evalue, score,
aligned_cols, identity, similarity, sum_probs)
results.append(result)
Expand Down
Loading

0 comments on commit d1b4893

Please sign in to comment.