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

Commit 5a4781b

Browse files
author
Antonio Ulloa
committed
Fixed serveral bugs
1 parent a4d3e72 commit 5a4781b

File tree

55 files changed

+20312
-12
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

+20312
-12
lines changed

analysis/avg_FC_TVB_ROIs_across_subjects.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -842,10 +842,10 @@ def adj_to_list(input_filename,output_filename,delimiter):
842842
# apply mask to get rid of upper triangle, including main diagonal
843843
mask = np.tri(tvb_rs_mean.shape[0], k=0)
844844
mask = np.transpose(mask)
845-
tvb_rs_mean = np.ma.array(tvb_rs_mean, mask=mask) # mask out upper triangle
845+
masked_tvb_rs_mean = np.ma.array(tvb_rs_mean, mask=mask) # mask out upper triangle
846846

847847
# flatten the numpy cross-correlation matrix
848-
corr_mat_tvb_rs = np.ma.ravel(tvb_rs_mean)
848+
corr_mat_tvb_rs = np.ma.ravel(masked_tvb_rs_mean)
849849

850850
# remove masked elements from cross-correlation matrix
851851
corr_mat_tvb_rs = np.ma.compressed(corr_mat_tvb_rs)
@@ -1155,8 +1155,6 @@ def adj_to_list(input_filename,output_filename,delimiter):
11551155
plt.xlabel('Empirical FC')
11561156
plt.ylabel('Model FC')
11571157

1158-
print corr_mat_emp_FC, corr_mat_sim_TVB_RS_FC
1159-
11601158
# fit scatter plot with np.polyfit
11611159
m, b = np.polyfit(corr_mat_emp_FC, corr_mat_sim_TVB_RS_FC, 1)
11621160
plt.plot(corr_mat_emp_FC, m*corr_mat_emp_FC + b, '-', color='red')

analysis/compute_BOLD_balloon_66_regions.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
# It also saves the BOLD timeseries for each and all modules in a python data file
5858
# (*.npy)
5959
#
60-
# Finally, the cross-correlation matrix is displayed and saved in a python data file.
60+
# Finally, the functional connectivity matrix is displayed and saved in a python data file.
6161
# ... and we also display a histogram of frequencies of correlations. And we calculate
6262
# and print Fisher's kurtosis and skewness of cross-correlation coefficients.
6363
#
@@ -76,14 +76,14 @@
7676

7777

7878
# define the name of the input file where the synaptic activities are stored
79-
SYN_file = 'synaptic_in_66_ROIs_incl_LSNM.npy'
79+
SYN_file = 'synaptic_in_66_ROIs.npy'
8080

8181
# define the name of the output file where the BOLD timeseries will be stored
82-
BOLD_file = 'bold_balloon_66_regions_incl_LSNM.npy'
82+
BOLD_file = 'bold_balloon_66_regions.npy'
8383

8484
# define the name of the output file where the cross-correlation matrix will
8585
# be stored
86-
xcorr_file = 'xcorr_matrix_66_regions_incl_LSNM.npy'
86+
xcorr_file = 'xcorr_matrix_66_regions.npy'
8787

8888
# define balloon model parameters...
8989
tau_s = 1.5 # rate constant of vasodilatory signal decay in seconds
@@ -158,7 +158,7 @@ def balloon_function(y, t, syn):
158158
Ti = 0.005 * 10
159159

160160
# Total time of scanning experiment in seconds (timesteps X 5)
161-
T = 210
161+
T = 198
162162
#T = 110
163163

164164
# Time for one complete trial in milliseconds

simulation/sim_without_LSNM.10_0.0042.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.10_0.0142.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.10_0.0242.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.10_0.0342.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.10_0.0442.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.1_0.0042.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.1_0.0142.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

simulation/sim_without_LSNM.1_0.0242.py

Lines changed: 406 additions & 0 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)