• Stars
    star
    122
  • Rank 292,031 (Top 6 %)
  • Language
    MATLAB
  • Created over 7 years ago
  • Updated 9 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Tools to work with Allen Inst CCF data in matlab

allen CCF tools

Some code to work with the Allen Inst Mouse Brain CCF data, specifically the 10µm voxel 2017 version. See the Wiki for detailed instructions.

Requirements

Neuropixels trajectory GUI (allen_ccf_npx)

(OLD - new/supported version is here: https://github.com/petersaj/neuropixels_trajectory_explorer)

Plan neuropixels trajectories with an Allen CCF-based GUI

>> tv = readNPY('template_volume_10um.npy'); % grey-scale "background signal intensity"
>> av = readNPY('annotation_volume_10um_by_index.npy'); % the number at each pixel labels the area, see note below
>> st = loadStructureTree('structure_tree_safe_2017.csv'); % a table of what all the labels mean

>> allen_ccf_npx(tv,av,st);

for 4-shank:

>> allen_ccf_npx_4shank(tv,av,st);

Slice Histology Alignment, Registration, and Probe Track analysis (SHARP-Track)

SHARP-Track is a MATLAB user interface to explore the Allen Mouse Brain Atlas, register asymmetric slice images to the atlas using manual input, and interactively analyze electrode tracks that span several slices. It can also be used to localize other ROIs such as labelled neurons or to determine the parameters needed to target particular brain regions with an electrode. All user-oriented scripts can be found in the 'SHARP-Track' folder.

See this repository's wiki for instructions.

*now with scripts to convert from Allen CCF coordinates to Franklin-Paxinos brain region labels, either through the SHARP-Track pipeline (Convert_Clicked_Points_to_FP_coords.m) or with Allen CCF coordinates in general (Convert_CCF_Coords_to_FP_Regions.m). This uses data from Chon et al. Enhanced and unified anatomical labeling for a common mouse brain atlas (2020).

If you use this tool, please cite our bioRxiv paper.

To run the Atlas Browser

This is a browser sort of like Paxinos - scroll through coronal slices, see labeled areas, etc.

>> tv = readNPY('template_volume_10um.npy'); % grey-scale "background signal intensity"
>> av = readNPY('annotation_volume_10um_by_index.npy'); % the number at each pixel labels the area, see note below
>> st = loadStructureTree('structure_tree_safe_2017.csv'); % a table of what all the labels mean

>> file_save_location = 'C:\Histology\Mouse1'; % where will the probe locations be saved
>> probe_name = 'test'; % name probe to avoid overwriting

>> f = allenAtlasBrowser(tv, av, st, file_save_location, probe_name);

To plot wire mesh of brain

>> plotBrainGrid();

Note about annotation volume

The original volume has numbers that correspond to the "id" field in the structure tree, but since I wanted to make a colormap for these, I re-indexed the annotation volume by the row number of the structure tree. So in this version the values correspond to "index"+1. This also allows using uint16 datatype, cutting file size in half. See setup_utils.m.

Source

© 2015 Allen Institute for Brain Science. Allen Mouse Brain Atlas (2015) with region annotations (2017). Available from: http://download.alleninstitute.org/informatics-archive/current-release/mouse_ccf/annotation/

See Allen Mouse Common Coordinate Framework Technical White Paper for details http://help.brain-map.org/download/attachments/8323525/Mouse_Common_Coordinate_Framework.pdf?version=3&modificationDate=1508178848279&api=v2

More Repositories

1

phy

phy: interactive visualization and manual spike sorting of large-scale ephys data
Python
307
star
2

KiloSort

GPU code for spike sorting
MATLAB
175
star
3

Suite2P

Tools for processing 2P recordings
MATLAB
122
star
4

neuropixels

Information about Neuropixels electrode arrays
MATLAB
81
star
5

spikes

cortex lab code for electrophysiology
MATLAB
72
star
6

alyx

Database for experimental neuroscience laboratories
Python
44
star
7

Rigbox

A MATLAB toolbox for running behavioral neuroscience experiments and managing data
HTML
32
star
8

sortingQuality

Functions to assess quality of spike sorting results
MATLAB
30
star
9

widefield

Image processing and tools for widefield imaging
MATLAB
18
star
10

MATLAB-tools

A collection of useful MATLAB libraries
MATLAB
13
star
11

phylib

Lightweight electrophysiological data analysis library
Python
11
star
12

npytools

[WIP] Command-line utilities to deal with NPY array files
Python
7
star
13

Transcriptomics

MATLAB software for analysis of single-cell RNA sequencing data, including probabilistic clustering, latent factor modeling, nbtSNE, visualization tools
MATLAB
5
star
14

wheelAnalysis

MATLAB
4
star
15

LabCI

Automation server for MATLAB & Python continuous integration, written in Node.js
JavaScript
4
star
16

PinkRigs

Shared code for processing data on the pink rigs
Python
3
star
17

psychofit

A module for fitting 2AFC psychometric data
Jupyter Notebook
3
star
18

alyx-matlab

Some MATLAB functions for easier interfacing with an Alyx database
MATLAB
3
star
19

alyx-registrator

1
star
20

groundTruth

first commit
MATLAB
1
star
21

alf2neuroscope

Converts ALF format to be read in neuroscope
Python
1
star
22

phy-plugins

1
star
23

ALF

1
star