Skip to content

Commit

Permalink
add hack for MIGP to work on tICA-cleaned data that has removed dilat…
Browse files Browse the repository at this point in the history
…ed areas
  • Loading branch information
coalsont committed May 22, 2023
1 parent 0a8416e commit d73c7d9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
Binary file modified tICA/scripts/Compiled_MIGP/MIGP
Binary file not shown.
4 changes: 3 additions & 1 deletion tICA/scripts/MIGP.m
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ function MIGP(StudyFolder, Subjlist, fMRINamesRaw, ProcSTRING, dPCAinternal, dPC
vnsum = vn.cdata * 0;
end
dtseries = ciftiopen(dtseriesname, wbcommand);
grot = [grot demean(dtseries.cdata, 2) ./ repmat(max(vn.cdata, 0.001), 1, size(dtseries.cdata, 2))];
%FIXME: tICA cleanup appears to regress out dilated locations (from FoV issues), for now repurpose this divide-by-zero prevention to act like a stdev threshold
%presumably the input data will always be scaled to grand mean 10,000
grot = [grot demean(dtseries.cdata, 2) ./ repmat(max(vn.cdata, 10), 1, size(dtseries.cdata, 2))];
vnsum = vnsum + vn.cdata;
c = c + 1;
else
Expand Down

0 comments on commit d73c7d9

Please sign in to comment.