aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/probesets.py
diff options
context:
space:
mode:
authorLei Yan2014-02-05 13:43:34 -0600
committerLei Yan2014-02-05 13:43:34 -0600
commit94b5018690f73cfad133d2d4c81ca0e8d4a7a7d4 (patch)
tree5b9e07d648e891486f065140f9d9f58bba143054 /wqflask/maintenance/dataset/probesets.py
parentc30c4ed7afaf6e312476506a63db74541d019260 (diff)
downloadgenenetwork2-94b5018690f73cfad133d2d4c81ca0e8d4a7a7d4.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/probesets.py')
-rw-r--r--wqflask/maintenance/dataset/probesets.py38
1 files changed, 0 insertions, 38 deletions
diff --git a/wqflask/maintenance/dataset/probesets.py b/wqflask/maintenance/dataset/probesets.py
index d87240a2..97bb5bdf 100644
--- a/wqflask/maintenance/dataset/probesets.py
+++ b/wqflask/maintenance/dataset/probesets.py
@@ -1,5 +1,3 @@
-import sys
-
import utilities
import datastructure
import genotypes
@@ -90,39 +88,3 @@ def get_normalized_probeset(locus, inbredsetid):
#
normalized_probesets.append(normalized_probeset)
return normalized_probesets
-
-locus="rs3663871"
-inbredsetid=1
-
-results = get_normalized_probeset(locus=locus, inbredsetid=inbredsetid)
-file = open('probesets_%s.txt' % (locus), 'w+')
-file.write("GN Dataset ID\t")
-file.write("Dataset Full Name\t")
-file.write("ProbeSet Name\t")
-file.write("Symbol\t")
-file.write("ProbeSet Description\t")
-file.write("Probe Target Description\t")
-file.write("ProbeSet Chr\t")
-file.write("ProbeSet Mb\t")
-file.write("Mean\t")
-file.write("LRS\t")
-file.write("Geno Chr\t")
-file.write("Geno Mb\t")
-file.write("\n")
-file.flush()
-for row in results:
- file.write("%s\t" % (row[0]))
- file.write("%s\t" % (utilities.clearspaces(row[2], default='')))
- file.write("%s\t" % (utilities.clearspaces(row[3], default='')))
- file.write("%s\t" % (utilities.clearspaces(row[4], default='')))
- file.write("%s\t" % (utilities.clearspaces(row[5], default='')))
- file.write("%s\t" % (utilities.clearspaces(row[6], default='')))
- file.write("%s\t" % (utilities.clearspaces(row[7], default='')))
- file.write("%s\t" % (row[8]))
- file.write("%s\t" % (row[9]))
- file.write("%s\t" % (row[10]))
- file.write("%s\t" % (utilities.clearspaces(row[11], default='')))
- file.write("%s\t" % (row[12]))
- file.write('\n')
- file.flush()
-file.close()