forked from kapantaisnick/BioCS
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExr16.py
More file actions
40 lines (29 loc) · 759 Bytes
/
Copy pathExr16.py
File metadata and controls
40 lines (29 loc) · 759 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
class Exr16:
sqn = ""
countA = 0
countG = 0
countT = 0
countC = 0
def readFiles(self):
global sqn
sqn = open("BioData\Alactalbumin", 'r').read()
def main(self):
print("Starting..")
self.readFiles(self)
print(sqn)
self.getCounts(self)
print("A:" , countA)
print("T:" , countT)
print("C:" , countC)
print("G:" , countG)
def getCounts(self):
global countC, countA, countT, countG
countA = sqn.count('A')
countG = sqn.count('G')
countC = sqn.count('C')
countT = sqn.count('T')
def player1(self):
print("player1 code")
def player2(self):
print("player2 code")
Exr16.main(Exr16)