aboutsummaryrefslogtreecommitdiff
path: root/wqflask/maintenance/dataset/calculate.py
diff options
context:
space:
mode:
authorZachary Sloan2014-07-21 16:07:42 +0000
committerZachary Sloan2014-07-21 16:07:42 +0000
commitd952a23662eb4c46041be3945b5c3ccacf5506b6 (patch)
tree00750c5c88fb7dc6f300a148ea40f95a7b46be3a /wqflask/maintenance/dataset/calculate.py
parent818de422631392c246646b52a5b227d23153e667 (diff)
parentc424db452c243c6f0f64ee58d2d7baeb147dd3c8 (diff)
downloadgenenetwork2-d952a23662eb4c46041be3945b5c3ccacf5506b6.tar.gz
Merge /home/lei/gene
Diffstat (limited to 'wqflask/maintenance/dataset/calculate.py')
-rw-r--r--wqflask/maintenance/dataset/calculate.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/wqflask/maintenance/dataset/calculate.py b/wqflask/maintenance/dataset/calculate.py
new file mode 100644
index 00000000..6aada827
--- /dev/null
+++ b/wqflask/maintenance/dataset/calculate.py
@@ -0,0 +1,7 @@
+import scipy.stats
+
+def correlation(a1, a2):
+ re = []
+ re.append(scipy.stats.pearsonr(a1, a2))
+ re.append(scipy.stats.spearmanr(a1, a2))
+ return re