aboutsummaryrefslogtreecommitdiff
path: root/scripts/maintenance/readProbeSetSE_v7.py
diff options
context:
space:
mode:
authorBonfaceKilz2020-08-17 17:41:58 +0300
committerBonfaceKilz2020-08-18 16:59:52 +0300
commitaf330a2aa7b36fd0cf8505eb20fa06d2ed58b86b (patch)
treeebc6ee429df52b7ae82d1f2017a356898348c0f9 /scripts/maintenance/readProbeSetSE_v7.py
parente49ef0954e111ace2044cced0a83b4d9dc00bc72 (diff)
downloadgenenetwork2-af330a2aa7b36fd0cf8505eb20fa06d2ed58b86b.tar.gz
Wrap print statements in parentheses
Diffstat (limited to 'scripts/maintenance/readProbeSetSE_v7.py')
-rwxr-xr-xscripts/maintenance/readProbeSetSE_v7.py22
1 files changed, 11 insertions, 11 deletions
diff --git a/scripts/maintenance/readProbeSetSE_v7.py b/scripts/maintenance/readProbeSetSE_v7.py
index 0b15ce09..79ed455f 100755
--- a/scripts/maintenance/readProbeSetSE_v7.py
+++ b/scripts/maintenance/readProbeSetSE_v7.py
@@ -82,14 +82,14 @@ while line:
line2 = map(string.strip, line2)
if len(line2) != nfield:
isCont = 0
- print("Error : " + line)
+ print(("Error : " + line))
GeneList.append(line2[0])
line = fp.readline()
kj += 1
if kj % 100000 == 0:
- print('checked ', kj, ' lines')
+ print(('checked ', kj, ' lines'))
GeneList = map(string.lower, GeneList)
GeneList.sort()
@@ -98,7 +98,7 @@ if isCont == 0:
sys.exit(0)
-print('used ', time.time()-time0, ' seconds')
+print(('used ', time.time()-time0, ' seconds'))
#########################################################################
#
# Check if each strain exist in database
@@ -121,13 +121,13 @@ for item in header:
Ids.append(db.fetchall()[0][0])
except:
isCont = 0
- print(item, 'does not exist, check the if the strain name is correct')
+ print((item, 'does not exist, check the if the strain name is correct'))
if isCont == 0:
sys.exit(0)
-print('used ', time.time()-time0, ' seconds')
+print(('used ', time.time()-time0, ' seconds'))
########################################################################
#
# Check if each ProbeSet exist in database
@@ -178,7 +178,7 @@ while x < len(GeneList) and y < len(Names):
y += 1
if x % 100000 == 0:
- print('check Name, checked %d lines' % x)
+ print(('check Name, checked %d lines' % x))
while x < len(GeneList):
GeneList2.append(GeneList[x])
@@ -190,12 +190,12 @@ for item in GeneList2:
ferror.write(item + " doesn't exist \n")
isCont = 0
- print(item, " doesn't exist")
+ print((item, " doesn't exist"))
if isCont == 0:
sys.exit(0)
-print('used ', time.time()-time0, ' seconds')
+print(('used ', time.time()-time0, ' seconds'))
#############################
# Insert new Data into SE
############################
@@ -244,9 +244,9 @@ while line:
DataValues = []
line = fp.readline()
- print(CellId, " doesn't exist")
- print('inserted ', kj, ' lines')
- print('used ', time.time()-time0, ' seconds')
+ print((CellId, " doesn't exist"))
+ print(('inserted ', kj, ' lines'))
+ print(('used ', time.time()-time0, ' seconds'))
if len(DataValues) > 0:
DataValues = ','.join(DataValues)