Skip to content

Commit

Permalink
Python 3 fix for six_frame_translations (int not float)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjc committed Aug 29, 2012
1 parent e0007d2 commit acf0b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Bio/SeqUtils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def six_frame_translations(seq, genetic_code = 1):
for i in range(0,length,60):
subseq = seq[i:i+60]
csubseq = comp[i:i+60]
p = i/3
p = i//3
res = res + '%d/%d\n' % (i+1, i/3+1)
res = res + ' ' + ' '.join(map(None,frames[3][p:p+20])) + '\n'
res = res + ' ' + ' '.join(map(None,frames[2][p:p+20])) + '\n'
Expand Down

0 comments on commit acf0b9a

Please sign in to comment.