We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d041a33 commit de83811Copy full SHA for de83811
bin/seqfun.py
@@ -3,7 +3,7 @@
3
import matplotlib.colors as colors
4
import matplotlib.cm as cmx
5
import scipy.misc
6
-
+import scipy.stats as st
7
8
def reverseComplement(seq, rna=None):
9
"""
@@ -140,3 +140,7 @@ def is_outlier(points, thresh=None):
140
141
def remove_outlier(points, thresh=None):
142
return points[np.logical_not(is_outlier(points, thresh=thresh))]
143
+
144
+def getCorrelation(vec1, vec2):
145
+ index = np.all(np.isfinite(np.vstack([vec1, vec2])), axis=0)
146
+ return st.pearsonr(vec1[index], vec2[index])[0]
0 commit comments