Code Monkey home page Code Monkey logo

cc1h_ms's Introduction

cc1h_ms

Usage (if need): Arrange your data first and adjust the path in the scripts; Run BatchProcessMinian.py (in your minian environment); Use ManuallyExtraction.m for manually add neurons; Run FasterLowerMemCostGen.m to extract traces; Use CheckNeuron.mlapp (Call appdesigner in MATLAB, and run it in appdesigner)

BatchProcessMinian.py

This is a script version of MiniAn pipeline, which allows us to process multiple recording sessions at one run, with most parameters remaining the same as recommended or default. We found these parameters doing OK with our data. We add a little part to process the zarr files. Since we are a little more familiar with MATLAB, we have to convert the data into .mat and use MATLAB to process.

ManuallyExtraction.m

This script allows you to add neuron footprint according to max projection. MiniAn or CNMFe won't do anything for you after all.

GenerateNeuTraceMat.m

We then use the footprint, which is A.zarr and we convert it into A.mat, to extract raw signal from preprocessed movies. (We use FasterLowerMemCostGen.m in practice, since it is compatible with 64GB memory or less)

CheckNeuron.mlapp

A MATLAB app for checking the neuron footprint and trace quality. The check results are marked and saved in quality metrics (0 for bad, 1 for good, 2 for uncertain, we use only 1 class at last).

Other tips

About MiniAn installation:

  1. Open your Anaconda prompt
  2. conda create -n minian python=3.8 (note that it has to be 3.8)
  3. conda activate minian
  4. conda install mamba -c conda-forge
  5. mamba install -y -c conda-forge minian Now you can install it faster. We noticed that it is hard to use conda to install minian due to the slow solving process. Hoping this will make it easier for you to process your data.

cc1h_ms's People

Contributors

lance11320 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.