Giter Club home page Giter Club logo

psth's Introduction

Plots for Neuropixels Data


These files assume the following hierarchy:

~/
  data/ (code and data go here) [in code, put path in DIRECTORY]
    plots/ [in code, put path in SUMMARY_PLOTS_DIRECTORY]
      cells/ (PSTH plots for every cell in every probe) [put path in CELL_PLOTS_DIRECTORY]
        probeA/ [ you just have to make these directories, with those exact names ]
        probeB/
        ...
        probeF/
      percentile/ (Plots for percentiles of every mouse)
      probes/ (PSTH plots averaged across all cells and trials) [put path in PROBE_PLOTS_DIRECTORY]
      variations/ (directories of class names) [in code, put path in VAR_DIREC]
    trial_data/ (data calculated for every trial)

Libraries Needed


library >= version || pip install library

rpy2 >= 3.0.4 || pip install rpy2

numpy >= 1.14.2 || pip install numpy

pickle >= 4.0 || pip install pickle

h5py >= 2.8.0 || pip install h5py

matplotlib >= 3.0.2 || pip install matplotlib

Steps for Running


  1. Make sure you have all the directories and folders set up. Follow the [...put path in (VARIABLE_NAME_HERE)] comments to help you figure out where to put the paths in the code (Code could be written to automatically create the directories...).

  2. Run nwb_plots.py. If everything goes well, the output before the program ends should be run again.

  3. Run nwb_plots.py again. Repeat 2 and 3 for all mice (you can change the mouse you're working on by looking for the variable MOUSE_ID in the code). You should now see plots in SUMMARY_PLOTS_DIRECTORY and CELL_PLOTS_DIRECTORY. These two steps should take the longest.

  4. Run nwb_plots_percentile.py for each mouse. These plots will be saved in percentile.

  5. Run nwb_dropout.py for each mouse. These plots will be saved in probes.

NOTE: VAR_DIREC is no longer needed. Neither is nwb_trials.py

psth's People

Contributors

bjmedina avatar

Stargazers

Hobart avatar

Watchers

James Cloos avatar

Forkers

tolani-o

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.