Advertisement
Guest User

Untitled

a guest
May 23rd, 2017
106
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.28 KB | None
  1. def Skew(Genome):
  2.     SkewArray = []
  3.     SkewArray.append(0)    
  4.     for i in (1, len(Genome)):
  5.         if Genome[i-1] == "G":
  6.             SkewArray.append(SkewArray[i-1]+1)
  7.         if Genome[i-1] == "C":
  8.             SkewArray.append(SkewArray[i-1]-1)
  9.         else:
  10.             SkewArray.append(SkewArray[i-1])
  11.     return SkewArray
Advertisement
RAW Paste Data Copied
Advertisement