Skip to content

Commit 4077f64

Browse files
committed
Updated: Added MPathI tutorial, added prep_for_connectivity or RL modeling tutorial
1 parent 3776dc4 commit 4077f64

7 files changed

+1831
-860
lines changed

example_help_files/canlab_help_MPathI_multivariate_pathway.html

Lines changed: 0 additions & 860 deletions
This file was deleted.
Binary file not shown.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
%% Load a test map to use as an example
2+
3+
ns = load(which('neurosynth_data_obj.mat'));
4+
test_map = get_wh_image(ns.topic_obj_reverseinference, 1); % somatosensory topic
5+
6+
7+
%% Run annotations
8+
9+
annotate_binary_results_map(test_map)
10+
Binary file not shown.

published_html/canlab_help_MPathI_multivariate_pathway.html

Lines changed: 882 additions & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,240 @@
1+
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
2+
<html>
3+
<head>
4+
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
5+
<!--
6+
This HTML was auto-generated from MATLAB code.
7+
To make changes, update the MATLAB code and republish this document.
8+
-->
9+
<title>canlab_help_annotate_thresholded_results_map</title>
10+
<meta name="generator" content="MATLAB 24.2">
11+
<link rel="schema.DC" href="http://purl.org/dc/elements/1.1/">
12+
<meta name="DC.date" content="2025-03-02">
13+
<meta name="DC.source" content="canlab_help_annotate_thresholded_results_map.m">
14+
<style type="text/css">
15+
html,body,div,span,applet,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,a,abbr,acronym,address,big,cite,code,del,dfn,em,font,img,ins,kbd,q,s,samp,small,strike,strong,sub,sup,tt,var,b,u,i,center,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}body{line-height:1}ol,ul{list-style:none}blockquote,q{quotes:none}blockquote:before,blockquote:after,q:before,q:after{content:'';content:none}:focus{outine:0}ins{text-decoration:none}del{text-decoration:line-through}table{border-collapse:collapse;border-spacing:0}
16+
17+
html { min-height:100%; margin-bottom:1px; }
18+
html body { height:100%; margin:0px; font-family:Arial, Helvetica, sans-serif; font-size:14px; color:#000; line-height:140%; background:#fff none; overflow-y:scroll; }
19+
html body td { vertical-align:top; text-align:left; }
20+
21+
h1 { padding:0px; margin:0px 0px 25px; font-family:Arial, Helvetica, sans-serif; font-size:1.8em; color:#2C2D92; line-height:100%; font-weight:normal; }
22+
h2 { padding:0px; margin:0px 0px 8px; font-family:Arial, Helvetica, sans-serif; font-size:1.4em; color:#363538; font-weight:bold; line-height:140%; border-bottom:1px solid #d6d4d4; display:block; }
23+
h3 { padding:0px; margin:0px 0px 5px; font-family:Arial, Helvetica, sans-serif; font-size:1.2em; color:#363538; font-weight:bold; line-height:140%; }
24+
25+
a { color:#4B4BA8; text-decoration:none; }
26+
a:hover { color:#2AAFDF; text-decoration:underline; }
27+
a:visited { color:#4B4BA8; text-decoration:none; }
28+
29+
p { padding:0px; margin:0px 0px 20px; }
30+
img { padding:0px; margin:0px 0px 20px; border:none; }
31+
p img, pre img, tt img, li img, h1 img, h2 img { margin-bottom:0px; }
32+
33+
ul { padding:0px; margin:0px 0px 20px 23px; list-style:square; }
34+
ul li { padding:0px; margin:0px 0px 7px 0px; }
35+
ul li ul { padding:5px 0px 0px; margin:0px 0px 7px 23px; }
36+
ul li ol li { list-style:decimal; }
37+
ol { padding:0px; margin:0px 0px 20px 0px; list-style:decimal; }
38+
ol li { padding:0px; margin:0px 0px 7px 23px; list-style-type:decimal; }
39+
ol li ol { padding:5px 0px 0px; margin:0px 0px 7px 0px; }
40+
ol li ol li { list-style-type:lower-alpha; }
41+
ol li ul { padding-top:7px; }
42+
ol li ul li { list-style:square; }
43+
44+
.content { font-size:1.2em; line-height:140%; padding: 20px; }
45+
46+
pre, code { font-size:14px; }
47+
tt { font-size: 1.2em; }
48+
pre { margin:0px 0px 20px; }
49+
pre.codeinput { padding:10px; border:1px solid #d3d3d3; background:#f7f7f7; }
50+
pre.codeoutput { padding:10px 11px; margin:0px 0px 20px; color:#4c4c4c; }
51+
pre.error { color:red; }
52+
53+
@media print { pre.codeinput, pre.codeoutput { word-wrap:break-word; width:100%; } }
54+
55+
span.keyword { color:#0000FF }
56+
span.comment { color:#228B22 }
57+
span.string { color:#A020F0 }
58+
span.untermstring { color:#B20000 }
59+
span.syscmd { color:#B28C00 }
60+
61+
.footer { width:auto; padding:10px 0px; margin:25px 0px 0px; border-top:1px dotted #878787; font-size:0.8em; line-height:140%; font-style:italic; color:#878787; text-align:left; float:none; }
62+
.footer p { margin:0px; }
63+
.footer a { color:#878787; }
64+
.footer a:hover { color:#878787; text-decoration:underline; }
65+
.footer a:visited { color:#878787; }
66+
67+
table th { padding:7px 5px; text-align:left; vertical-align:middle; border: 1px solid #d6d4d4; font-weight:bold; }
68+
table td { padding:7px 5px; text-align:left; vertical-align:top; border:1px solid #d6d4d4; }
69+
70+
71+
72+
73+
74+
</style>
75+
</head>
76+
<body>
77+
<div class="content">
78+
<h2>Contents</h2>
79+
<div>
80+
<ul>
81+
<li>
82+
<a href="#1">Load a test map to use as an example</a>
83+
</li>
84+
<li>
85+
<a href="#2">Run annotations</a>
86+
</li>
87+
</ul>
88+
</div>
89+
<h2 id="1">Load a test map to use as an example</h2>
90+
<pre class="codeinput">ns=load(which(<span class="string">'neurosynth_data_obj.mat'</span>));test_map=get_wh_image(ns.topic_obj_reverseinference,1);<span class="comment">% somatosensory topic</span>
91+
</pre>
92+
<h2 id="2">Run annotations</h2>
93+
<pre class="codeinput">annotate_binary_results_map(test_map)
94+
</pre>
95+
<pre class="codeoutput">Transmodal vs. unimodal: Principal gradient of functional connectivity
96+
</pre>
97+
<img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_01.png" alt=""> <img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_02.png" alt=""> <pre class="codeoutput">Allen brain project transcriptomic gradients
98+
</pre>
99+
<img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_03.png" alt=""> <pre class="codeoutput">Neuromaps PET neurochemical tracer maps
100+
</pre>
101+
<img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_04.png" alt=""> <pre class="codeoutput">
102+
Name Pearson's r
103+
5HT1a 0.0229
104+
5HT1a 0.0319
105+
5HT1b 0.0451
106+
5HT1b 0.0831
107+
5HT1b 0.0451
108+
5HT2a 0.0330
109+
5HT2a 0.0326
110+
5HT2a 0.0245
111+
5HT4 0.0056
112+
5HT6 0.0566
113+
5HTT -0.0327
114+
5HTT -0.0054
115+
a4b2 -0.0081
116+
CB1 0.1152
117+
CB1 0.0581
118+
D1 -0.0247
119+
D2 -0.0069
120+
D2 -0.0012
121+
D2 -0.0077
122+
D2 0.0165
123+
DAT -0.0038
124+
DAT -0.0621
125+
GABAa 0.0610
126+
GABAabz 0.0736
127+
H3 0.0245
128+
M1 0.0879
129+
mGluR5 0.0777
130+
mGluR5 0.0906
131+
mGluR5 0.1215
132+
MOR -0.0416
133+
MOR 0.0048
134+
NET 0.0835
135+
NET 0.1811
136+
VAChT 0.0143
137+
VAChT -0.0073
138+
VAChT 0.0200
139+
Neurosynth topic and term maps
140+
Neurosynth topics - forward inference maps
141+
Test image 1
142+
..cs\v4-topics-100_0_stimulation_somatosensory_tms_pFgA_z_FDR_0.01.nii
143+
_____________________________________________________________________
144+
r_lowest Term_or_Topic_lowest r_highest Term_or_Topic_highest
145+
_________ _____________________________ _________ _____________________________
146+
147+
-0.072766 {'Word Processing' } 0.60286 {'Sensory Stimulation' }
148+
-0.063182 {'Emotion face' } 0.2544 {'Pain Perception' }
149+
-0.062233 {'Familiarity &amp; recognition'} 0.2481 {'Motor movements' }
150+
-0.059672 {'Depression &amp; Disorders' } 0.24004 {'Motor control' }
151+
-0.058889 {'Language comprehension' } 0.07949 {'Motor Coordination' }
152+
-0.057834 {'Reading &amp; Writing' } 0.07842 {'Creativity &amp; Acupuncture '}
153+
-0.056539 {'Cognitive Conflict' } 0.077318 {'Action Observation' }
154+
-0.054691 {'Memory &amp; Events' } 0.038981 {'Auditory processing' }
155+
-0.054037 {'Task-switching' } 0.0095692 {'Multiple Sclerosis' }
156+
-0.053809 {'Encoding &amp; Retrieval' } 0.008167 {'Body perception' }
157+
158+
Neurosynth topics - reverse inference maps
159+
Test image 1
160+
..cs\v4-topics-100_0_stimulation_somatosensory_tms_pFgA_z_FDR_0.01.nii
161+
_____________________________________________________________________
162+
r_lowest Term_or_Topic_lowest r_highest Term_or_Topic_highest
163+
_________ __________________________ ___________ _____________________________
164+
165+
-0.051458 {'Reading &amp; Writing' } 1 {'Sensory Stimulation' }
166+
-0.05124 {'Emotion face' } 0.32365 {'Pain Perception' }
167+
-0.049365 {'Encoding &amp; Retrieval' } 0.31546 {'Motor movements' }
168+
-0.0483 {'Memory &amp; Events' } 0.23224 {'Motor control' }
169+
-0.046738 {'Working Memory' } 0.088103 {'Action Observation' }
170+
-0.044211 {'Word Processing' } 0.04632 {'Motor Coordination' }
171+
-0.04161 {'Language comprehension'} 0.041099 {'Creativity &amp; Acupuncture '}
172+
-0.040511 {'Empathy &amp; Interaction' } 0.027829 {'Auditory processing' }
173+
-0.03783 {'Emotion Processing' } 0.016815 {'Food &amp; weight' }
174+
-0.031803 {'Spatial Attention' } -0.00078825 {'Multiple Sclerosis' }
175+
176+
Neurosynth terms- reverse inference maps
177+
Test image 1
178+
..cs\v4-topics-100_0_stimulation_somatosensory_tms_pFgA_z_FDR_0.01.nii
179+
_____________________________________________________________________
180+
r_lowest Term_or_Topic_lowest r_highest Term_or_Topic_highest
181+
________ ____________________ _________ _____________________
182+
183+
-0.2424 {'memory' } 0.47282 {'somatosensory'}
184+
-0.18946 {'retrieval'} 0.45236 {'tactile' }
185+
-0.18554 {'correct' } 0.42208 {'stimulation' }
186+
-0.18174 {'number' } 0.35855 {'hand' }
187+
-0.17871 {'word' } 0.32351 {'finger' }
188+
-0.17504 {'work' } 0.31912 {'muscle' }
189+
-0.16633 {'verbal' } 0.31753 {'pain' }
190+
-0.16625 {'face' } 0.31062 {'sensory' }
191+
-0.16585 {'words' } 0.30502 {'painful' }
192+
-0.16482 {'encoding' } 0.30338 {'sensorimotor' }
193+
194+
Correlations with Yeo/Bucker resting-state networks
195+
Loaded images:
196+
/Users/f003vz1/Documents/GitHub/CanlabCore/CanlabCore/canlab_canonical_brains/Combined_multiatlas_ROI_masks/rBucknerlab_7clusters_SPMAnat_Other_combined.img
197+
198+
Name Pearson's r
199+
Visual -0.0541
200+
Somatomotor 0.2994
201+
dAttention -0.0167
202+
vAttention 0.0807
203+
Limbic -0.0438
204+
Frontoparietal -0.0638
205+
Default -0.0744
206+
</pre>
207+
<img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_05.png" alt=""> <img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_06.png" alt=""> <pre class="codeoutput">Prepping atlases:
208+
yeo17networks Loading atlas: /Users/f003vz1/Documents/GitHub/Neuroimaging_Pattern_Masks/Atlases_and_parcellations/2018_Schaefer_Yeo_multires_cortical_parcellation/Schaefer2018Cortex_17networks_atlas_object.mat
209+
Note: Mean weights reflect homogeneity in sign and magnitude across region,
210+
not high spatial frequency/pattern information.
211+
212+
____________________________________________________________________________________________________________________________________________
213+
Wedge plot:
214+
Wedge plots depict mean images values across voxels. Red indicates positive values and blue negative values. If multiple images were
215+
entered, the darker shaded area indicates the standard error of the mean (SEM) across individuals.
216+
____________________________________________________________________________________________________________________________________________
217+
</pre>
218+
<img vspace="5" hspace="5" src="canlab_help_annotate_thresholded_results_map_07.png" alt=""> <p class="footer">
219+
<br>
220+
<a href="https://www.mathworks.com/products/matlab/">Published with MATLAB&reg; R2024b</a>
221+
<br>
222+
</p>
223+
</div>
224+
<!--
225+
##### SOURCE BEGIN #####
226+
%% Load a test map to use as an example
227+
228+
ns = load(which('neurosynth_data_obj.mat'));
229+
test_map = get_wh_image(ns.topic_obj_reverseinference, 1); % somatosensory topic
230+
231+
232+
%% Run annotations
233+
234+
annotate_binary_results_map(test_map)
235+
236+
237+
##### SOURCE END #####
238+
-->
239+
</body>
240+
</html>

0 commit comments

Comments
 (0)