aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/probesets.py
diff options
context:
space:
mode:
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()