@@ -75,30 +75,39 @@ def transform(self, result):
75
75
76
76
Returns
77
77
-------
78
- contribution_table : :obj:`pandas.DataFrame` or None
79
- A DataFrame with information about relative contributions of each experiment to each
80
- cluster in the thresholded map.
81
- There is one row for each experiment.
82
- There is one column for each cluster, with column names being
83
- ``PostiveTail``/``NegativeTail`` indicating the sign (+/-) of the cluster's
84
- statistical values, plus an integer indicating the cluster's associated value
85
- in the ``label_maps[0]``/``label_maps[1]`` output.
86
- If no clusters are found or a pairwise Estimator was used, ``None`` is returned.
87
- clusters_table : :obj:`pandas.DataFrame`
88
- A DataFrame with information about each cluster.
89
- There is one row for each cluster.
90
- The columns in this table include: ``Cluster ID`` (the cluster id, plus a letter
91
- for subpeaks only), ``X``/``Y``/``Z`` (coordinate for the center of mass),
92
- ``Max Stat`` (statistical value of the peak), and ``Cluster Size (mm3)``
93
- (the size of the cluster, in cubic millimeters).
94
- If no clusters are found, this table will be empty.
95
- label_maps : :obj:`list`
96
- List of :obj:`nibabel.nifti1.Nifti1Image` objects of cluster label maps.
97
- Each cluster in the map has a single value, which corresponds to the cluster number
98
- of the column name in ``contribution_table``.
99
- If target_image has negative values after thresholding, first and second maps
100
- correspond to positive and negative tails.
101
- If no clusters are found, this list will be empty.
78
+ :obj:`~nimare.results.MetaResult`
79
+ Results of Diagnostics fitting.
80
+
81
+ Notes
82
+ -----
83
+ This method adds two new keys to ``maps`` and ``tables`` attributes of the
84
+ MetaResult object.
85
+
86
+ - ``<target_image>_diag-<Jackknife|FocusCounter>_tab-counts`` :
87
+ :obj:`pandas.DataFrame` or None.
88
+ A DataFrame with information about relative contributions of each experiment
89
+ to each cluster in the thresholded map.
90
+ There is one row for each experiment.
91
+ There is one column for each cluster, with column names being
92
+ ``PostiveTail``/``NegativeTail`` indicating the sign (+/-) of the cluster's
93
+ statistical values, plus an integer indicating the cluster's associated value
94
+ in the ``label_maps[0]``/``label_maps[1]`` output.
95
+ If no clusters are found or a pairwise Estimator was used, ``None`` is returned.
96
+ - ``<target_image>_tab-clust`` : :obj:`pandas.DataFrame`
97
+ A DataFrame with information about each cluster.
98
+ There is one row for each cluster.
99
+ The columns in this table include: ``Cluster ID`` (the cluster id, plus a letter
100
+ for subpeaks only), ``X``/``Y``/``Z`` (coordinate for the center of mass),
101
+ ``Max Stat`` (statistical value of the peak), and ``Cluster Size (mm3)``
102
+ (the size of the cluster, in cubic millimeters).
103
+ If no clusters are found, this table will be empty.
104
+ - ``label_<target_image>_tail-<positive|negative>`` : :obj:`numpy.ndarray`
105
+ Label maps.
106
+ Each cluster in the map has a single value, which corresponds to the cluster number
107
+ of the column name in ``contribution_table``.
108
+ If target_image has negative values after thresholding, first and second maps
109
+ correspond to positive and negative tails.
110
+ If no clusters are found, this list will be empty.
102
111
"""
103
112
masker = result .estimator .masker
104
113
diag_name = self .__class__ .__name__
0 commit comments