Readme file to reproduce the FIT and TE Spiking activity analysis:

Run main.m; main script to run the analysis: you will have to change the exp_name parameter to be one of the following list: [1, 2, 3, 4, 5, 8]. Each of these is a different subject (N = 6 in our analyses). The opts field has a lot of different options, depending on what you want to compute. All of them should be sufficiently explained in the comments. The output of this scripts are those files named "DI_FIT_cFIT_FITshared_stim_couples_Exp*.mat".

Run Exp_Averaging_And_SignifMasks.m: After computing the relevant quantities in the previous step, this script has two parts: in the first one ("Exp_Avg.m"), it averages over experiments (inputs: those coming from multismain.m; outputs: "DI_FIT_cFIT_FITshared_EXP_MEAN_SEM.mat", which is the file in which the mean and sem matrices over experiments can be found for all 4 InfoTheoretic quantities; "DI_FIT_cFIT_FITshared_MATT.mat", which also includes the big matrices, prior to averaging over experiments); in the second half,it computes the significance masks, based on the permutation test that is explained in the main text. The only options here are which areas and stimulus sets to compute. This scripts outputs ("DI_FIT_cFIT_FITshared_sigMasks_*.mat") the significance masks that we will be using in Fig. S11

Run Plot_Results.m: This script is the one to be used to plot all results of Fig. S11 and Fig. S12B. Each subpart plots a different panel. By changing the appropriate options therein, one can switch between pathways (VPM to S1 or LGN to V1) and sensory stimulus sets (Tactile, Visual). Starting from the first block onwards:

	· Input: The output of Exp_Avg.m (i.e., "DI_FIT_cFIT_FITshared_EXP_MEAN_SEM.mat") and that of SigMask.m 		   	     ("DI_FIT_cFIT_FITshared_sigMasks_*.mat"). Output: Fig. S11.
	· Input: The output of Exp_Avg.m (i.e., "DI_FIT_cFIT_FITshared_MATT.mat"). Output: Panel B and boxplots.
	· Input: The output of Exp_Avg.m (i.e., "DI_FIT_cFIT_FITshared_EXP_MEAN_SEM.mat") and that of SigMask.m 		   	     ("DI_FIT_cFIT_FITshared_sigMasks_*.mat"). Output: Fig. S12B (conditioned measures on real data).
	
