Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
profumo
PFM_Simulations
Commits
e97684ea
Commit
e97684ea
authored
Nov 26, 2019
by
Sam Harrison
Browse files
Calculate spatial/temporal netmat interactions
I.e. the NAF2 stroy from Bijsterbosch et al., eLife, 2019.
parent
2d75d117
Changes
1
Hide whitespace changes
Inline
Side-by-side
Scoring/calculateDecompositionAccuracy.m
View file @
e97684ea
...
...
@@ -219,4 +219,17 @@ scores.pcA_xs.range = [-1.0, 1.0];
%--------------------------------------------------------------------------
% And do the netmats bias one another (NAF2)?
% Repeat spatial correlations to get per-run metrics
inf_cPz
=
repelem
(
inf_cPz
,
1
,
params
.
R
);
% Each element, across subjects (i.e. behavioural prediction)
scores
.
cP_pcA_xs
.
data
=
diag
(
corr
(
inf_cPz
', inf_pcAz'
));
%scores.cP_pcA_xs.data = reshape(corr(inf_cPz', inf_pcAz'), [], 1);
scores
.
cP_pcA_xs
.
name
=
'Spatial-temporal netmat interactions (cross subject)'
;
scores
.
cP_pcA_xs
.
metric
=
'Correlation'
;
scores
.
cP_pcA_xs
.
range
=
[
-
1.0
,
1.0
];
%--------------------------------------------------------------------------
end
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment