*************************************************************************
************		Welcome to Virtual Retina	*****************
************			version 2.0	 	*****************
*************************************************************************

		Spiking, large-scale retina simulation software.

			Author : Adrien Wohrer
			Institution : ODYSSEE, INRIA Sophia Antipolis
			Contact : Adrien.Wohrer@sophia.inria.fr
			Project started december 2004.



*************************************************************************
*******************     APPEARING GRATING EXPERIMENT  *******************
*************************************************************************


Reproduction of the experiment of EnrothCugell-Robson66, page 523.

The used cells are similar to VirtualRetina/test/retina_files/EXAMPLE_cat_X_cell.xml (except for necessary differences in the Y cell, and scaling value pixels-per-degree).


***************** (I)   X CELL

Spatial parameters of the cell, as approximated by the authors:
sigma_int = 0.88 deg
sigma_ext=2.5 deg
(so, surround-sigma__deg = sqrt(2.5^2 - 0.88^2) ==2.35 deg )

grating freq= 0.13 cycles/deg.
grating_contrast=0.32 as defined by (Lmax-Lmin)/(Lmax+Lmin)

We chose a conversion factor of 5 pixels per degree, 
so the grating spatial period is 5/0.13==38.5 pix.


all the following commands must be executed in THIS directory.

there are two grating reversals in the same image. We build them using our program 'Grating'

(1) YOU MUST CREATE THE 4 GRATING FRAMES BY TYPING

./make_stimuli


All cell parameters are defined in file ./test_X_cell.xml. You do not have to touch it, yet you should open it to see the parameters used for the cell.


(2) LAUNCHING THE TEST: 

each experiment is repeated 10 times to obtain an averaged firing rate (command -tr 10)


Note that -r 1, to impose a single repetition of each grating frame.
Also note -b 0.5, meaning that graphical representations starts after 500 ms, to avoid the initial synchrony of spikes over the trials.

mkdir ./results_phase0
mkdir ./results_phasePi
mkdir ./results_phase0.5Pi
mkdir ./results_phase1.5Pi

../../local/bin/TestGanglionCell -i ./appearing_stim_phase0.txt -ret ./test_X_cell.xml -tr 5 -outD ./results_phase0 -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phase0.5Pi.txt -ret ./test_X_cell.xml  -tr 5 -outD ./results_phase0.5Pi -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phasePi.txt -ret ./test_X_cell.xml -tr 5 -outD ./results_phasePi -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phase1.5Pi.txt -ret ./test_X_cell.xml  -tr 5 -outD ./results_phase1.5Pi -r 1 -nS 1 -b 0.5 &

e


***************** (II)   Y CELLS 	('equivalent' of primate parvocellular cell)


LAUNCHING THE TEST: 



mkdir ./Y_results_phase0
mkdir ./Y_results_phasePi
mkdir ./Y_results_phase0.5Pi
mkdir ./Y_results_phase1.5Pi


../../local/bin/TestGanglionCell -i ./appearing_stim_phase0.txt -ret ./test_Y_cell.xml -tr 5 -outD ./Y_results_phase0 -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phase0.5Pi.txt -ret ./test_Y_cell.xml  -tr 5 -outD ./Y_results_phase0.5Pi -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phasePi.txt -ret ./test_Y_cell.xml -tr 5 -outD ./Y_results_phasePi -r 1 -nS 1 -b 0.5 &

../../local/bin/TestGanglionCell -i ./appearing_stim_phase1.5Pi.txt -ret ./test_Y_cell.xml  -tr 5 -outD ./Y_results_phase1.5Pi -r 1 -nS 1 -b 0.5 &

e


***************************************************
With more trials, to produce nice figures:




../../appli/TestGanglionCell -i ./appearing_stim_phase0.txt -ret ./test_X_cell.xml -tr 50 -outD ./results_phase0 -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phase0.5Pi.txt -ret ./test_X_cell.xml  -tr 50 -outD ./results_phase0.5Pi -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phasePi.txt -ret ./test_X_cell.xml -tr 50 -outD ./results_phasePi -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phase1.5Pi.txt -ret ./test_X_cell.xml  -tr 50 -outD ./results_phase1.5Pi -r 1 -nS 1 -b 0.5 -nodisp


../../appli/TestGanglionCell -i ./appearing_stim_phase0.txt -ret ./test_Y_cell.xml -tr 50 -outD ./Y_results_phase0 -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phase0.5Pi.txt -ret ./test_Y_cell.xml  -tr 50 -outD ./Y_results_phase0.5Pi -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phasePi.txt -ret ./test_Y_cell.xml -tr 50 -outD ./Y_results_phasePi -r 1 -nS 1 -b 0.5 -nodisp

../../appli/TestGanglionCell -i ./appearing_stim_phase1.5Pi.txt -ret ./test_Y_cell.xml  -tr 50 -outD ./Y_results_phase1.5Pi -r 1 -nS 1 -b 0.5 -nodisp

e

