aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/specials.py
diff options
context:
space:
mode:
authorLei Yan2014-02-05 16:06:55 -0600
committerLei Yan2014-02-05 16:06:55 -0600
commitee026ab745359197e966bdcaaa33f06c8e7256e0 (patch)
tree6580a5b5875e35fe576d5cb615ad604cda2b27cc /wqflask/maintenance/dataset/specials.py
parent2bc4ef27ad896e3acb7049035fcf30f00f9e84e0 (diff)
downloadgenenetwork2-ee026ab745359197e966bdcaaa33f06c8e7256e0.tar.gz
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset/specials.py')
-rw-r--r--wqflask/maintenance/dataset/specials.py10
1 files changed, 7 insertions, 3 deletions
diff --git a/wqflask/maintenance/dataset/specials.py b/wqflask/maintenance/dataset/specials.py
index ba9598fe..0273d24d 100644
--- a/wqflask/maintenance/dataset/specials.py
+++ b/wqflask/maintenance/dataset/specials.py
@@ -101,11 +101,8 @@ def bxd_correlations():
probeset = probesets.get_probeset(probesetid)
probesetname = probeset[1]
probesetdata = probesets.get_probesetdata(probesetdataid)
- print probesetdata
probesetdata = zip(*probesetdata)
probesetdata = utilities.to_dic([strain.lower() for strain in probesetdata[1]], probesetdata[2])
- print probesetdata
- return
#
for geno in genos:
genoname = geno['locus']
@@ -113,7 +110,14 @@ def bxd_correlations():
outputfile.write("%s\t" % probesetname)
outputfile.write("%s\t" % genoname)
#
+ dic1 = geno['dicvalues']
+ dic2 = probesetdata
+ keys, values1, values2 = utilities.overlap(dic1, dic2)
+ print keys
+ print values1
+ print values2
+ return
#
outputfile.write("%s\t" % "Overlap Number")
outputfile.write("%s\t" % "Pearson r")