-
Notifications
You must be signed in to change notification settings - Fork 1
/
PipTester.py
42 lines (38 loc) · 1.13 KB
/
PipTester.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
#!/usr/bin/env python
import sys
import Parameters
import ProjectEnviroment
import SeqAlignParallel
from time import time
def FileModule():
parameter = Parameters.Parameters()
parameter.openfile("config.ini")
parameter.update()
projEnv = ProjectEnviroment.ProjectEnviroment(parameter)
projEnv.loadFiles()
barcodes = projEnv.Barcodes
primers = projEnv.Primers
seqs = projEnv.Seqs
t0 = time()
projEnv.alignSeqs()
alignseqs = projEnv.AlignedSeqs
print ("Sort sequencing...")
isokay, error = projEnv.sortAlignedSeqs()
if(not isokay):
print(("Error: %s" %error))
sortedseqs = projEnv.SortedSeqs
print ("Calculate length...")
isokay, error = projEnv.locusLengths()
if(not isokay):
print(("Error: %s" %error))
locusRange = projEnv.locusLengthRange
print ("Generate Consensus Sequences...")
isokay, error = projEnv.GenerateConsensus()
if(not isokay):
print(("Error: %s" %error))
consSeqs = projEnv.consSeqs
projEnv.DumpUnmappedReads()
t1 = time()
print(("Time spends %.2fs." %(t1-t0)))
if(__name__ == '__main__'):
FileModule()