Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- char = []
- with open('keratin.txt') as f:
- for line in f:
- for ch in line:
- char.append(ch)
- print(char)
- len(char)
- f1 = open('keratin.txt','r')
- f2 = open('keratin.txt','a+')
- lob = input('Enter length of box =')
- iob = input('Enter the increment of the box =')
- i=0
- lob = 5000
- iob = 1000
- nob = 1 #no. of boxes
- for i in range (0,len(char)-lob):
- b = i
- while( b < lob + i and b < len(char)):
- nC = 0
- nG = 0
- for p in char:
- if p == 'C':
- nC = nC + 1
- if p == 'G':
- nG = nG + 1
- b = b + 1
- print(nC)
- print(nG)
- i = i + iob
- nob = nob + 1
Add Comment
Please, Sign In to add comment