Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Style change to use string append operator

  • Loading branch information...
commit 1ee9009926ccb64ae3c13294cfe602ed88d5cfba 1 parent c5e168d
@peterjc peterjc authored
Showing with 9 additions and 9 deletions.
  1. +9 −9 Bio/SeqUtils/__init__.py
View
18 Bio/SeqUtils/__init__.py
@@ -360,17 +360,17 @@ def six_frame_translations(seq, genetic_code = 1):
subseq = seq[i:i+60]
csubseq = comp[i:i+60]
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'
- res = res + ' '.join(map(None, frames[1][p:p+20])) + '\n'
+ res += '%d/%d\n' % (i+1, i/3+1)
+ res += ' ' + ' '.join(map(None, frames[3][p:p+20])) + '\n'
+ res += ' ' + ' '.join(map(None, frames[2][p:p+20])) + '\n'
+ res += ' '.join(map(None, frames[1][p:p+20])) + '\n'
# seq
- res = res + subseq.lower() + '%5d %%\n' % int(GC(subseq))
- res = res + csubseq.lower() + '\n'
+ res += subseq.lower() + '%5d %%\n' % int(GC(subseq))
+ res += csubseq.lower() + '\n'
# - frames
- res = res + ' '.join(map(None, frames[-2][p:p+20])) +' \n'
- res = res + ' ' + ' '.join(map(None, frames[-1][p:p+20])) + '\n'
- res = res + ' ' + ' '.join(map(None, frames[-3][p:p+20])) + '\n\n'
+ res += ' '.join(map(None, frames[-2][p:p+20])) +' \n'
+ res += ' ' + ' '.join(map(None, frames[-1][p:p+20])) + '\n'
+ res += ' ' + ' '.join(map(None, frames[-3][p:p+20])) + '\n\n'
return res
# }}}
Please sign in to comment.
Something went wrong with that request. Please try again.