diff options
author | Lei Yan | 2014-02-05 11:31:50 -0600 |
---|---|---|
committer | Lei Yan | 2014-02-05 11:31:50 -0600 |
commit | 9f52d42b9f89cf3b878e5ea67290ab3514503819 (patch) | |
tree | f9b4f6c5f3dd18a7eeee7084340840b3e04fc70f /wqflask/maintenance/dataset | |
parent | 17f90d1e4f6744c4234d8525b29be59267aff6a5 (diff) | |
download | genenetwork2-9f52d42b9f89cf3b878e5ea67290ab3514503819.tar.gz |
On branch master
Diffstat (limited to 'wqflask/maintenance/dataset')
-rw-r--r-- | wqflask/maintenance/dataset/calculate.py | 7 |
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 |