Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.33 KB | None | 0 0
  1. file = open(filename)
  2.     someDict = {}
  3.  
  4.     someDict['T'] = Symbol('T', 0, '')
  5.     someDict['A'] = Symbol('A', 0, '')
  6.     someDict['G'] = Symbol('G', 0, '')
  7.     someDict['C'] = Symbol('C', 0, '')
  8.     for line in file:
  9.         someStr = line.strip()
  10.         for i in someStr:
  11.             someDict[i].freq += 1
  12.  
  13.     return someDict
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement