Commit 41219c5 1 parent e67f266 commit 41219c5 Copy full SHA for 41219c5
File tree 1 file changed +3
-1
lines changed
1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -1943,6 +1943,7 @@ def isc(
1943
1943
tail = 2 ,
1944
1944
n_jobs = - 1 ,
1945
1945
random_state = None ,
1946
+ sim_metric = "correlation" ,
1946
1947
):
1947
1948
"""Compute pairwise intersubject correlation from observations by subjects array.
1948
1949
@@ -1981,6 +1982,7 @@ def isc(
1981
1982
tail: (int) either 1 for one-tail or 2 for two-tailed test (default: 2)
1982
1983
n_jobs: (int) The number of CPUs to use to do the computation. -1 means all CPUs.
1983
1984
return_null: (bool) Return the permutation distribution along with the p-value; default False
1985
+ sim_metric: (str) pairwise distance metric. See sklearn's pairwise_distances for valid inputs (default: correlation)
1984
1986
1985
1987
Returns:
1986
1988
stats: (dict) dictionary of permutation results ['correlation','p']
@@ -2000,7 +2002,7 @@ def isc(
2000
2002
stats = {"isc" : _compute_isc (data , metric = metric )}
2001
2003
2002
2004
similarity = Adjacency (
2003
- 1 - pairwise_distances (data .T , metric = "correlation" ), matrix_type = "similarity"
2005
+ 1 - pairwise_distances (data .T , metric = sim_metric ), matrix_type = "similarity"
2004
2006
)
2005
2007
2006
2008
if method == "bootstrap" :
You can’t perform that action at this time.
0 commit comments