Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Python 3 fix for six_frame_translations (int not float)

  • Loading branch information...
commit acf0b9a80718ba9c39f8deb9a23073e98f7fe3e4 1 parent e0007d2
@peterjc peterjc authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Bio/SeqUtils/__init__.py
View
2  Bio/SeqUtils/__init__.py
@@ -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'
Please sign in to comment.
Something went wrong with that request. Please try again.