# IBL Tools ## IBL Website As part of the International Brain Laboratory's [public data website](https://viz.internationalbrainlab.org) we created two interactive 3D tools. You can see them in action on the site! ### Mini Brain overview image The Mini Brain is a widget that lets you select different probe insertions from the Brain Wide Map and explore the alignment of the insertion within the 3D mouse brain. ### Trial Viewer overview image The Trial Viewer is an interactive component that lets you re-play the metadata recorded during a session, including the stimulus position, wheel movements, sounds, and the videos. These are rendered in a cartoon 3D environment with the deeplabcut output overlayed on the videos. ## IBL Average Trial The IBL Average Trial is a pair of tools used to explore the International Brain Laboratory's *Brain Wide Map* dataset. You can find more information at the [IBL website](https://www.internationalbrainlab.com/). ### Virtual Reality Demo

### Standalone Tool

#### Download The standalone IBL *neuron explorer* can be download [here](https://drive.google.com/file/d/1Iw5ENIheBoSuD5pJzozvjASN-N7PDnM4/view?usp=share_link), Windows-only for now. Eventualily we will integrate this into the IBL data portal. ### Development #### Installation `cd source_dir`
`git clone https://github.com/int-brain-lab/ibl-avg-trial-viz.git` The cloned directory contains usage examples and the main event_avgs.py file that can be imported with
`from ibl-avg-trial-viz.event_avgs import *`. Must be used with the IBL's [iblenv](https://github.com/int-brain-lab/iblenv) #### Usage See the API reference for more detailed function documentation and examples.

examples/**event_avgs_full_runs.py** will run the pipeline on all insertions in the brainwide map and output event averages for raw spikes, baselined spikes, baselined and normalized spikes, and fano factor. The script also contains the (untested) code to generate the average raw spikes timelocked to different events. At the top of this examples/**event_avgs_testing.ipynb** contains visualizations of output data including baseline normalized event averaged spike rates for clusters in different regions: