Showing 1 of 1 files from the diff.

@@ -19,7 +19,7 @@
Loading
19 19
as statistical tests designed specifically for ISC analyses.
20 20
21 21
The implementation is based on the work in [Hasson2004]_, [Kauppi2014]_,
22 -
[Simony2016]_, and [Chen2016]_.
22 +
[Simony2016]_, [Chen2016]_, and [Nastase2019]_.
23 23
24 24
.. [Chen2016] "Untangling the relatedness among correlations, part I:
25 25
   nonparametric approaches to inter-subject correlation analysis at the
@@ -41,6 +41,11 @@
Loading
41 41
   during narrative comprehension.", E. Simony, C. J. Honey, J. Chen, O.
42 42
   Lositsky, Y. Yeshurun, A. Wiesel, U. Hasson, 2016, Nature Communications,
43 43
   7, 12141. https://doi.org/10.1038/ncomms12141
44 +
45 +
.. [Nastase2019] "Measuring shared responses across subjects using
46 +
   intersubject correlation." S. A. Nastase, V. Gazzola, U. Hasson,
47 +
   C. Keysers, 2019, Social Cognitive and Affective Neuroscience, 14,
48 +
   667-685. https://doi.org/10.1093/scan/nsz037
44 49
"""
45 50
46 51
# Authors: Sam Nastase, Christopher Baldassano, Qihong Lu,
@@ -405,7 +410,7 @@
Loading
405 410
    # Check if incoming pairwise matrix is vectorized triangle
406 411
    if pairwise:
407 412
        try:
408 -
            test_square = squareform(iscs[:, 0])
413 +
            test_square = squareform(iscs[:, 0], force='tomatrix')
409 414
            n_subjects = test_square.shape[0]
410 415
        except ValueError:
411 416
            raise ValueError("For pairwise input, ISCs must be the "
@@ -751,13 +756,9 @@
Loading
751 756
            for voxel_iscs in iscs.T:
752 757
753 758
                # Square the triangle and fill diagonal
754 -
                voxel_iscs = squareform(voxel_iscs)
759 +
                voxel_iscs = squareform(voxel_iscs, force='tomatrix')
755 760
                np.fill_diagonal(voxel_iscs, 1)
756 761
757 -
                # Check that pairwise ISC matrix is square and symmetric
758 -
                assert voxel_iscs.shape[0] == voxel_iscs.shape[1]
759 -
                assert np.allclose(voxel_iscs, voxel_iscs.T)
760 -
761 762
                # Shuffle square correlation matrix and get triangle
762 763
                voxel_sample = voxel_iscs[subject_sample, :][:, subject_sample]
763 764
                voxel_sample = squareform(voxel_sample, checks=False)
Files Coverage
brainiak 91.52%
Project Totals (31 files) 91.52%
1493.1
TRAVIS_PYTHON_VERSION=3.6
TRAVIS_OS_NAME=linux
1493.2
TRAVIS_PYTHON_VERSION=3.8
TRAVIS_OS_NAME=linux
1493.3
TRAVIS_OS_NAME=osx
1
coverage:
2
    status:
3
        project:
4
            default:
5
                threshold: 1
6
                if_ci_failed: error
7
        patch:
8
            default:
9
                threshold: 1
10
                if_ci_failed: error
11
comment: false
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading