Giter Site home page Giter Site logo

kushalkolar / pipeline_2p Goto Github PK

View Code? Open in Web Editor NEW

This project forked from neuronetmem/pipeline_2p

0.0 1.0 0.0 22.52 MB

Preprocessing pipeline for 2p imaging data, VR behaviour data and synchronization between the two.

Python 0.72% Jupyter Notebook 99.28%

pipeline_2p's Introduction

pipeline_2p

Preprocessing pipeline for 2p imaging data, VR behaviour data and synchronization between the two.

Setup

The following instruction details how to setup the pipeline on the cn121 cluster, where data can be preprocessed directly from the network storage.

Setting up caiman and the pipeline

Follow these steps if you want to install the pipeline in your own user folder. An installation is already available on the global scratch floder, go skip this section if you want to use that.

  • Install mamba locally
  • Create a virtual environment and install caiman
  • Clone the repository and install the dependencies

Accessing the server remotely with jupyter lab

  • Log in into the server
  • Open a new screen
  • Activate the caiman virtual environment
  • Open a jupyter rever with the --no-browser option, specifying the port
  • Open a new terminal in your local machine and run ssh -L 8080:localhost:8080 [email protected]
  • you can now access the jupyter lab environment at http://localhost:8080/

Usage

Session overview and parameter selection

Use session_overview.ipynb to interactively inspect the raw data (2p video and log files) and apply the full pipeline to the session in isolation. The pipeline application will save all data in a temporary folder. You can use the same notebook to visualize and inspect the result of the preprocessing and tweak the parameters of the preprocessing pipeline. Once you are satisfied with the parameter set, the notebook provides code to save it for future usage and to delete the temporary folder to free memory.

Batch preprocessing

  1. Use preprocess_batch.py to run the prerocessing pipeline on a provided list of session sequentially. Only final outputs will be saved for subsequent analysis, temporary files are deleted for memory management.

Structure

  • logreader contains the module for the preprocessing of the log file from the VR system.
  • pipeline contatins the module for preprocessing the 2p imagin g videos usign CaImAn
  • notebooks contains a collection of notebooks for particular analysis and visualization
  • scripts contains scripts used to run particular analysis
  • utils contains utility functions (now mostly empty)

pipeline_2p's People

Contributors

davidespalla avatar

Watchers

 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.