Skip to content

JorritMontijn/UniversalProbeFinder

Repository files navigation

UniversalProbeFinder


Multi-species histology slice processing pipeline and probe alignment program using neurophysiological markers

To install & run, clone this repository and download the atlases you wish to use. Add the main directory to your matlab path and run:
UniversalProbeFinder
in the matlab prompt.

Please read the manual for more information: https://github.com/JorritMontijn/UniversalProbeFinder/blob/main/UserGuide_UniversalProbeFinder_v1.1.pdf

Note on cluster indexing in v1.1: As of version 1.1 (March 2024) the ProbeFinder uses cluster_id indexing identical to that of Kilosort and any .tsv files in your ephys path. This makes more sense, but means you should double-check you are not adding a +1 somewhere in your pipeline to correct for 0 vs 1 indexing that was necessary in v1.0.

Note on submodules: If you get the message "Unrecognized function or variable", then you are probably missing the zetatest submodule, which contains some dependencies. Submodules are not always automatically installed. It will not include the zetatest submodule if:

If you clone this repository with the desktop app, it will automatically include the submodule. If you download a zip-packaged release or the MCR version, it also includes the submodule.

Using the Universal Probe Finder without a MATLAB license

For those who do not have a MATLAB license, we provide a MATLAB Runtime (MCR) installer for the Universal Probe Finder. You won't have to spend any money, but you'll still have to download and install a some support packages (approximately 1.9 GB). The web installer can be downloaded under "Releases".

Atlases

The Universal Probe Finder can use multiple atlases. At this time, the Universal Probe Finder supports the following atlases out-of-the-box:
a. Sprague Dawley rat brain atlas, downloadable at: https://www.nitrc.org/projects/whs-sd-atlas
b. Allen CCF mouse brain atlas, downloadable at: http://data.cortexlab.net/allenCCF/
c. CHARM/SARM NMT_v2.0_sym macaque brain atlas: https://afni.nimh.nih.gov/pub/dist/doc/htmldoc/nonhuman/macaque_tempatl/atlas_charm.html

It is also possible to add your own Atlas by adding an atlas-loader .m file and editing the configAtlas.ini file that is created when you first run the UniversalProbeFinder (see manual).

Please reach out to us if you wish to have a different atlas added with out-of-the-box support. Adding an atlas is very easy, and we're happy to extend the usefulness of our program for all its users.

Electrophysiology formats

The Universal Probe Finder can use multiple ephys formats and calculates the stimulus responsiveness of your clusters with the zetatest using only an array of event-onset times. Using these neurophysiological markers will allow a more reliable alignment of your probe's contact points to specific brain areas.

At this time, the Universal Probe Finder supports the following formats out-of-the-box:
a. Clustered spiking data from Kilosort, downloadable at: https://github.com/MouseLand/Kilosort
b. Raw SpikeGLX data, downloadable at: https://billkarsh.github.io/SpikeGLX/
c. Acquipix pre-processed data, downloadable at: https://github.com/JorritMontijn/Acquipix

It is also possible to add your own ephys format by adding an ephys-loader .m file and editing the configEphys.ini file that is created when you first run the ProbeFinder (see manual).

Please reach out to us if you wish to have a different ephys formats added with out-of-the-box support. If the data structure is straightforward, adding support should not be too difficult.

Sneak peek

Please read the manual for how to use the program. Look below for what to expect.

SlicePrepper

image

SliceFinder

image

ProbeFinder

image

Acknowledgements

This work is based on earlier work by people from the cortex lab, most notably Philip Shamash and Andy Peters. See for example this paper: https://www.biorxiv.org/content/10.1101/447995v1
This repository includes various functions that come from other repositories, credit for these functions go to their creators:
https://github.com/petersaj/AP_histology
https://github.com/JorritMontijn/Acquipix
https://github.com/JorritMontijn/GeneralAnalysis
https://github.com/kwikteam/npy-matlab
https://github.com/cortex-lab/spikes
https://github.com/JorritMontijn/zetatest

If you use the Universal Probe Finder, please cite our paper: https://www.biorxiv.org/content/10.1101/2022.06.20.496782v1. If you have any questions or problems, feel free to reach out to us!

License

This repository is licensed under the GNU General Public License v3.0, meaning you are free to use, edit, and redistribute any part of this code, as long as you refer to the source (this repository) and apply the same non-restrictive license to any derivative work (GNU GPL v3).

Created by Jorrit Montijn at the Cortical Structure and Function laboratory (KNAW-NIN).

About

A multi-species, multi-ephys format histology processing and probe alignment pipeline

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages