Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit eaf72a6

Browse files
author
Antonio Ulloa
committed
Added several visualization scripts
1 parent 0241e51 commit eaf72a6

File tree

55 files changed

+666
-181
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

55 files changed

+666
-181
lines changed

analysis/avg_FC_TVB_ROIs_across_subjects.py

Lines changed: 382 additions & 126 deletions
Large diffs are not rendered by default.

analysis/compute_BOLD_balloon_66_regions.py

Lines changed: 49 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
#
3939
# Author: Antonio Ulloa
4040
#
41-
# Last updated by Antonio Ulloa on November 20 2016
41+
# Last updated by Antonio Ulloa on January 3 2017
4242
#
4343
# **************************************************************************/
4444

@@ -929,12 +929,17 @@ def balloon_function(y, t, syn):
929929
# round of mr time for display purposes
930930
mr_time = np.round(mr_time, decimals=0)
931931

932-
# create a numpy array of timeseries, using only the 33 ROIs in the right hemisphere
932+
# create a numpy array of timeseries, using the 66 ROIs
933933
lsnm_BOLD = np.array([BOLD_0, BOLD_1, BOLD_2, BOLD_3, BOLD_4, BOLD_5, BOLD_6, BOLD_7,
934934
BOLD_8, BOLD_9, BOLD_10, BOLD_11, BOLD_12, BOLD_13, BOLD_14, BOLD_15,
935935
BOLD_16, BOLD_17, BOLD_18, BOLD_19, BOLD_20, BOLD_21, BOLD_22, BOLD_23,
936936
BOLD_24, BOLD_25, BOLD_26, BOLD_27, BOLD_28, BOLD_29, BOLD_30, BOLD_31,
937-
BOLD_32])
937+
BOLD_32,
938+
BOLD_33, BOLD_34, BOLD_35, BOLD_36, BOLD_37, BOLD_38, BOLD_39, BOLD_40,
939+
BOLD_41, BOLD_42, BOLD_43, BOLD_44, BOLD_45, BOLD_46, BOLD_47, BOLD_48,
940+
BOLD_49, BOLD_50, BOLD_51, BOLD_52, BOLD_53, BOLD_54, BOLD_55, BOLD_56,
941+
BOLD_57, BOLD_58, BOLD_59, BOLD_60, BOLD_61, BOLD_62, BOLD_63, BOLD_64,
942+
BOLD_65 ])
938943

939944
print 'Size of BOLD time-series after removing scans: ', BOLD_0.size
940945

@@ -1001,7 +1006,41 @@ def balloon_function(y, t, syn):
10011006
'rMT' ,
10021007
'rBSTS',
10031008
'rST' ,
1004-
'rTT']
1009+
'rTT' ,
1010+
'lLOF' ,
1011+
'lPORB',
1012+
'lFP' ,
1013+
'lMOF' ,
1014+
'lPTRI',
1015+
'lPOPE',
1016+
'LRMF' ,
1017+
'lSF' ,
1018+
'lCMF' ,
1019+
'lPREC',
1020+
'lPARC',
1021+
'lRAC' ,
1022+
'lCAC' ,
1023+
'lPC' ,
1024+
'lISTC',
1025+
'lPSTC',
1026+
'lSMAR',
1027+
'lSP' ,
1028+
'lIP' ,
1029+
'lPCUN',
1030+
'lCUN' ,
1031+
'lPCAL',
1032+
'lLOC' ,
1033+
'lLING',
1034+
'lFUS' ,
1035+
'lPARH',
1036+
'lENT' ,
1037+
'lTP' ,
1038+
'lIT' ,
1039+
'lMT' ,
1040+
'lBSTS',
1041+
'lST' ,
1042+
'lTT'
1043+
]
10051044

10061045
#initialize new figure for correlations
10071046
fig = plt.figure()
@@ -1011,12 +1050,12 @@ def balloon_function(y, t, syn):
10111050
#plt.rcParams.update({'font.size': 15})
10121051

10131052
# plot correlation matrix as a heatmap
1014-
mask = np.tri(corr_mat.shape[0], k=-1)
1015-
mask = np.transpose(mask)
1016-
corr_mat = np.ma.array(corr_mat, mask=mask) # mask out the upper triangle
1053+
#mask = np.tri(corr_mat.shape[0], k=0)
1054+
#mask = np.transpose(mask)
1055+
#corr_mat = np.ma.array(corr_mat, mask=mask) # mask out the upper triangle
10171056
cmap = CM.get_cmap('jet', 10)
1018-
cmap.set_bad('w')
1019-
cax = ax.imshow(corr_mat, vmin=-0.6, vmax=1.0, interpolation='nearest', cmap=cmap)
1057+
#cmap.set_bad('w')
1058+
cax = ax.imshow(corr_mat, vmin=-1, vmax=1.0, interpolation='nearest', cmap=cmap)
10201059
ax.grid(False)
10211060
plt.colorbar(cax)
10221061

@@ -1056,7 +1095,7 @@ def balloon_function(y, t, syn):
10561095

10571096
plt.xlabel('Correlation Coefficient')
10581097
plt.ylabel('Number of occurrences')
1059-
plt.axis([-0.6, 0.6, 0, 100])
1098+
plt.axis([-1, 1, 0, 100])
10601099

10611100
# calculate and print kurtosis
10621101
print 'Fishers kurtosis: ', kurtosis(corr_mat, fisher=True)
94.1 KB
97.3 KB
96 KB

visual_model/circle_tvb_rs_fc.png

95.5 KB
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
* Simulation Start Time: Fri Oct 14 14:40:19 2016
2-
* Simulation End Time: Sat Oct 15 02:57:40 2016
1+
* Simulation Start Time: Fri Dec 9 11:26:40 2016
2+
* Simulation End Time: Fri Dec 9 18:26:13 2016
33
* Simulation duration (timesteps): 39600
4-
* Model description used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/model.txt
5-
* Weights list used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/subject_12/weightslist.txt
4+
* Model description used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/model.txt
5+
* Weights list used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/subject_12/weightslist.txt
66
* Neural net used:
7-
* Simulation script used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/script_resting_state_198_seconds.py
7+
* Simulation script used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/script_resting_state_198_seconds.py
88
* Were weights changed to generate a new subject? NO
99
* Was TVB Connectome used in the simulation? YES
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* Simulation Start Time: Fri Oct 14 14:40:19 2016
2+
* Simulation End Time: Sat Oct 15 02:57:40 2016
3+
* Simulation duration (timesteps): 39600
4+
* Model description used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/model.txt
5+
* Weights list used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/subject_12/weightslist.txt
6+
* Neural net used:
7+
* Simulation script used: /Users/Antonio/Documents/NEURALBYTES/NIHPROJECT2/lsnm_in_python/visual_model/script_resting_state_198_seconds.py
8+
* Were weights changed to generate a new subject? NO
9+
* Was TVB Connectome used in the simulation? YES

visual_model/subject_12/output.RestingStateOLD/neuralnet.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
* Simulation Start Time: Fri Dec 9 13:24:18 2016
2+
* Simulation End Time: Fri Dec 9 20:53:14 2016
3+
* Simulation duration (timesteps): 39600
4+
* Model description used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/model.txt
5+
* Weights list used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/subject_13/weightslist.txt
6+
* Neural net used:
7+
* Simulation script used: /home/ulloa/SIMULATIONS.120916/lsnm_in_python/visual_model/script_passive_viewing_198_seconds.py
8+
* Were weights changed to generate a new subject? NO
9+
* Was TVB Connectome used in the simulation? YES

0 commit comments

Comments
 (0)