Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def SkewArray_new(Genome):
- base_pairs = {'A': 0, 'T': 0, 'G': 1, 'C': -1}
- skew = [0]
- skew = [base_pairs.get(n[1]) for n in enumerate(Genome)]
- return skew
- # I need this:
- [0, -1, -1, -1, 0, 1, 2, 1, 1, 1, 0, 1, 2, 1, 0, 0, 0, 0, -1, 0, -1, -2]
- # But as I am not accumulation, I get this:
- [-1, 0, 0, 1, 1, 1, -1, 0, 0, -1, 1, 1, -1, -1, 0, 0, 0, -1, 1, -1, -1]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement