Skip to content

A python package that includes methods for decoding and drawing graphs for neural activity.

License

Notifications You must be signed in to change notification settings

norbit8/Neural_Analyzer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Neural Analyzer

Build Status

A python package that includes methods for decoding, and plotting neural activity. Specifically used in the expirement where we sample neural activity from the Basal ganglia and the cerebellum (Using a Macaca fascicularis monkeys) while the monkeys are targeting moving rectangles.

In the following project we build a decoder where given a vector of spikes of neural activity we decode the direction of the eye.

All of the work is based on machine learning algorithms (specifically KNN) which we train using the given data. First, we suggest you to use conda in order to reconstruct our work environemnt.

Usage

1) First you need to download anaconda (conda).
In order to verify that you do have conda, please type in the terminal conda --version, and look for conda x.x.x.

2) To recreate the environment you can do the following:

conda env create -f env.yml

(The env.yml file is located at essentials/env.yml)

3) Activate the environment like so:

conda activate neural_analyzer

4) Now, we can run python:

python

5) Import the modules:

Import decoder
Import graphs

6) Create an instance of the decoder class and the graphs class:

dec = decoder.decoder(**kwargs)
Graph - no need, static lib

To see more information please use the dec.help() method, or g.help() method.

Important notes

-Matlab files should look likes this "populationName#cellName for example CRB#4391.mat"

-When calling the class decoder, Make sure that the directory of the input data have the directories 'PURSUIT'/'SACCADE'/'PURSUIT_FRAGMENTS'/'SACCADE_FRAGMENTS'.

-For matching cells one should make sure that only the matching cells are in the input directories for the decoder.

"out" folder's structure

Documentation

About

A python package that includes methods for decoding and drawing graphs for neural activity.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages