All Projects → Mark-Kramer → Case-Studies-Python

Mark-Kramer / Case-Studies-Python

Licence: other
An introduction to the practicing neuroscientist to data analysis in Python

Programming Languages

Jupyter Notebook
11667 projects
TeX
3793 projects
python
139335 projects - #7 most used programming language
Makefile
30231 projects
shell
77523 projects
CSS
56736 projects

Projects that are alternatives of or similar to Case-Studies-Python

nix
Neuroscience information exchange format
Stars: ✭ 64 (-35.35%)
Mutual labels:  neuroscience-data
behavenet
Toolbox for analyzing behavioral videos and neural activity
Stars: ✭ 38 (-61.62%)
Mutual labels:  neuroscience-methods
imaging tools
A table containing imaging analysis tools for biology, with a focus on calcium imaging.
Stars: ✭ 15 (-84.85%)
Mutual labels:  neuroscience-methods
EEGEdu
Interactive Brain Playground - Browser based tutorials on EEG with webbluetooth and muse
Stars: ✭ 91 (-8.08%)
Mutual labels:  neuroscience-methods
JATOS
Just Another Tool for Online Studies
Stars: ✭ 60 (-39.39%)
Mutual labels:  neuroscience-methods
NeuroAI
NeuroAI-UW seminar, a regular weekly seminar for the UW community, organized by NeuroAI Shlizerman Lab.
Stars: ✭ 36 (-63.64%)
Mutual labels:  neuroscience-methods
neuron as deep net
Code behind the work "Single Cortical Neurons as Deep Artificial Neural Networks", published in Neuron 2021
Stars: ✭ 94 (-5.05%)
Mutual labels:  neuroscience-data

Case-Studies-Python

This repository is a companion to the textbook Case Studies in Neural Data Analysis, by Mark Kramer and Uri Eden. That textbook uses MATLAB to analyze examples of neuronal data. The material here is similar, except that we use Python.

The intended audience is the practicing neuroscientist - e.g., the students, researchers, and clinicians collecting neuronal data in the hospital or lab. The material can get pretty math-heavy, but we've tried to outline the main concepts as directly as possible, with hands-on implementations of all concepts. We focus on only two main types of data: spike trains and electric fields (such as the local field potential [LFP], or electroencephalogram [EEG]). If you're interested in other data (e.g., calcium imaging, or BOLD), you may still find the examples indirectly useful (for example, demonstrations of how to compute and interpret a power spectrum of a signal).

This repository was created by Emily Schlafly and Mark Kramer, with important contributions from Dr. Anthea Cheung.

Thank you to:


Quick start to learning Python for neural data analysis:


Slow start to learning Python for neural data analysis:

There are multiple ways to interact with these notebooks.

  • Simple: Visit the web-formatted version of the notebooks.

  • Intermediate: Open a notebook in Binder and interact with the notebooks through a JupyterHub server. Binder provides an easy interface to interact with this material; read about it in eLife.

  • Advanced: Download the notebooks and run them locally (i.e. on your own computer) in Jupyter. You'll then be able to read, edit and execute the Python code directly in your browser and you can save any changes you make or notes that you want to record. You will need to install Python and we recommend that you configure a Python environment as well.


Install Python

We assume you have installed Python and can get it running on your computer. Some useful references to do so include,

If this is your first time working with Python, using Anaconda is probably a good choice. It provides a simple, graphical interface to start Jupyter.


Configure Python

If you have never used the terminal before, consider using Anaconda Navigator, Anaconda's desktop graphical user interface (GUI).

Once you have installed Anaconda or Miniconda, we recommend setting up an environment to run the notebooks. If you downloaded the repository from Github, then you can run the commands below in your terminal to configure your local environment to match the Binder environment. If you have never used the terminal before, consider using Anaconda Navigator, Anaconda's desktop graphical user interface (GUI). The environment file we use on Binder is located in the binder folder.

# create environment <case-studies>
conda env create --file environment.yml
conda activate case-studies  # activate environment <case-studies>
make config  # configure jupyter in environment

This will ensure that you have all the packages needed to run the notebooks. Note that you can use make clean to remove the changes made during make config.

Finally, whenever you are ready to work with the notebooks, activate your environment and start Jupyter:

conda activate case-studies  # activate python environment
jupyter notebook  # start jupyter in the current location

If you prefer, you can use jupyter lab instead of jupyter notebook.


Contributions

We very much appreciate your contributions to this material. Contribitions may include:

  • Error corrections
  • Suggestions
  • New material to include (please start from this template).

There are two ways to suggest a contribution:

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].