aboutsummaryrefslogtreecommitdiff
path: root/wqflask
diff options
context:
space:
mode:
authorLei Yan2014-02-05 13:30:21 -0600
committerLei Yan2014-02-05 13:30:21 -0600
commitc30c4ed7afaf6e312476506a63db74541d019260 (patch)
tree8cd6258b8dd98ba1f579c5b48bb464a9bfdc6014 /wqflask
parentf560cd7837d311525741ba540623a9fa97342b95 (diff)
downloadgenenetwork2-c30c4ed7afaf6e312476506a63db74541d019260.tar.gz
On branch master
Diffstat (limited to 'wqflask')
-rw-r--r--wqflask/maintenance/dataset/specials.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/specials.py b/wqflask/maintenance/dataset/specials.py
index 9caba879..52a2389f 100644
--- a/wqflask/maintenance/dataset/specials.py
+++ b/wqflask/maintenance/dataset/specials.py
@@ -46,10 +46,27 @@ def bxd_correlations():
print "Get %d probesetxrefs" % (len(probesetxrefs))
#
for probesetxref in probesetxrefs:
+ #
probesetid = probesetxref[0]
probesetdataid = probesetxref[1]
probeset = probesets.get_probeset(probesetid)
+ ProbeSetId = probeset[0]
+ ProbeSetName = probeset[1]
+ # Geno Name Overlap Number Pearson r Pearson p Spearman r Spearman p
probesetdata = probesets.get_probesetdata(probesetdataid)
+ #
+ for geno in genos:
+ genoname = geno['locus']
+ outputfile.write("%s\t" % probeSetid)
+ outputfile.write("%s\t" % ProbeSetName)
+ outputfile.write("%s\t" % GenoName)
+ outputfile.write("%s\t" % "Overlap Number")
+ outputfile.write("%s\t" % "Pearson r")
+ outputfile.write("%s\t" % "Pearson p")
+ outputfile.write("%s\t" % "Spearman r")
+ outputfile.write("%s\t" % "Spearman p")
+ outputfile.write("\n")
+ outputfile.flush()
#
outputfile.close()