aboutsummaryrefslogtreecommitdiff
path: root/scripts/maintenance/readProbeSetMean_v7.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/maintenance/readProbeSetMean_v7.py')
-rwxr-xr-xscripts/maintenance/readProbeSetMean_v7.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/scripts/maintenance/readProbeSetMean_v7.py b/scripts/maintenance/readProbeSetMean_v7.py
index a540796a..43f084f4 100755
--- a/scripts/maintenance/readProbeSetMean_v7.py
+++ b/scripts/maintenance/readProbeSetMean_v7.py
@@ -60,15 +60,15 @@ print('Checking if each line have same number of members')
GeneList = []
isCont = 1
header = fp.readline()
-header = string.split(string.strip(header), '\t')
-header = list(map(string.strip, header))
+header = header.strip().split('\t')
+header = [x.strip() for x in header]
nfield = len(header)
line = fp.readline()
kj = 0
while line:
- line2 = string.split(string.strip(line), '\t')
- line2 = list(map(string.strip, line2))
+ line2 = line.strip().split('\t')
+ line2 = [x.strip() for x in line2]
if len(line2) != nfield:
print(("Error : " + line))
isCont = 0
@@ -98,8 +98,8 @@ print('Checking if each strain exist in database')
isCont = 1
fp.seek(0)
header = fp.readline()
-header = string.split(string.strip(header), '\t')
-header = list(map(string.strip, header))
+header = header.strip().split('\t')
+header = [x.strip() for x in header]
header = list(map(translateAlias, header))
header = header[dataStart:]
Ids = []
@@ -126,8 +126,8 @@ print('Check if each ProbeSet exist in database')
##---- find PID is name or target ----##
line = fp.readline()
line = fp.readline()
-line2 = string.split(string.strip(line), '\t')
-line2 = list(map(string.strip, line2))
+line2 = line.strip().split('\t')
+line2 = [x.strip() for x in line2]
PId = line2[0]
db.execute('select Id from ProbeSet where Name="%s" and ChipId=%d' %
@@ -222,8 +222,8 @@ kj = 0
values1 = []
values2 = []
while line:
- line2 = string.split(string.strip(line), '\t')
- line2 = list(map(string.strip, line2))
+ line2 = line.strip().split('\t')
+ line2 = [x.strip() for x in line2]
PId = line2[0]
recordId = NameIds[PId]