-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinclassCode28Sept2016.py
62 lines (55 loc) · 1.25 KB
/
inclassCode28Sept2016.py
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#!bin/
class switcher():
def __init__(self, pick = True):
if pick:
self.writer = self.fred
else:
self.writer = self.mary
def writer (self):
pass
def fred(self):
print("fred")
def mary(self):
print("mary")
obj = switcher(True)
obj.writer()
obj = switcher(False)
obj.writer()
obj = switcher()
obj.writer()
''''
prints:
fred
mary
fred
'''
args = cmdparser.parse_args()
#print(args.usrInputType)
#print(args.usrWriteType)
print(args)
# User input type check
if args.usrInputType == '-P33in' or '--PHRED33input':
#Pass this to generator?
print("This")
pass
elif args.usrInputType == '-P64in' or '--PHRED64input':
print("IS")
pass
elif args.usrInputType == '-P64Bin' or '--PHRED64-B-offset':
print("Very")
pass
elif args.usrInputType == '-P64SOLin' or '--PHRED64-SolexaIn':
print("frustrating")
pass
# user output type
if args.usrWriteType == '-P64out' or '--PHRED64output':
print('Crazy')
pass
elif args.usrWriteType == '-P33out'or '--PHRED33output':
print("shit")
#usrWriteType = '-P33out'
#Testing Generator function to print out fastq reads
testObj = FastQreader(sys.stdin)
for blah in testObj.readFastqChunk():
print(blah)
# print("yo")