GithubHelp home page GithubHelp logo

pystarters2021's Introduction

PyStarters 2021: hands-on practice with git/Github, Python functions and neural data analysis (May 13)

Material

This session will only use a text editor to write code and a terminal to run it (no PyCharm needed). We will cover:

  1. Basic use of git and Github (clone, commit, status, checkout, push, pull).

  2. Python functions, positional and keyword arguments.

  3. Use of functions to visualize electrophysiological recordings and linear regression to learn about them.

We will experiment with the following packages:

  • pandas for data manipulation
  • matplotlib for visualizations
  • statsmodels for linear regression

and with code organization in modules.

Neural recordings

We will characterize electrophysiological recordings from mice in the experiment depicted in the figure below probing the integration of visual and vestibular information across the brain (Keshavarzi, Tyson, Lenzi et al., 2021).

visVesIntegration

Pre-session setup

Please before the session do the following.

  1. create a Github account (if you don't have one) here

  2. install git

    • Windows

      Follow the instructions here and Launch Git Bash Shell as mentioned in section How to Launch Git in Windows of the instructions.

      Use the git bash shell as the terminal in the following instructions.

      Follow the instructions here to integrate conda with git.

    • Linux and Mac

      Follow the instructions here

  3. in a terminal (or Git Bash Shell if you use Windows) type conda activate pystarters (change pystarters to the name that you used for the conda environment you created for the course).

  4. in the terminal type:

    • pip install matplotlib
    • pip install statsmodels
    • pip install pandas
  5. in the terminal type cd <pystarters directory> where <pystarters directory> is the directory you created for the course.

  6. in the terminal type git clone https://github.com/joacorapela/pystarters2021.git

  7. in the terminal type cd pystarters2021/code/scripts

  8. in the terminal type python doFirstPlot.py Visual.

If your setup is correct, the last command command should create the plot <pystarters directory>/figures/spikeRateVsabsSpeedV1Visual.png. If this plot is not created please email Joaquin Rapela to troubleshoot the problem.

pystarters2021's People

Contributors

joacorapela avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.