Giter Site home page Giter Site logo

mesoholo_onlineanalysis's Introduction

All of the below are instructions for online analysis in the MesoSI computer

ONLINE ANALYSIS FOR MESOHOLO EXPERIEMENTS
crop the FOV down to the ActualHoloFOV in jupyter notebook, then run suite2p
open Anaconda Powershell Prompt and enter the following commands:
conda activate CLbehavior
cd to this folder jupyter notebook
in Matlab R2021b, run mesoscope_json_from_scanimage_210617_59.m
in jupyter notebook, run mesocroph5_justgreen.ipynb (took <15min total for HS_Ai203_2\220531\ : ~2min for conversion to h5,~12min for suite2p)
for full FOV, run mesofullh5parallels2p.ipynb (took 41min total for HS_Ai203_2\220531\ : ~3min for conversion to h5,~38min for suite2p))
to run both channels in cropped FOV, run mesocroph5s2p_allch.ipynb (haven't tested this code, might run into out-of-memory error depending on the recording length)

HOW TO FIND COORDINATES CORRESPONDING TO ActualHoloFOV BOUNDARIES IN YOUR CURRENT MROI SETTING
run the following in the MATLAB instance running Scanimage
find out ActualHoloFOV boundaries using convertcoords_HoloFOVtoCurrentFOV.m
the arguments for convertcoords_HoloFOVtoCurrentFOV should already be in the workspace if makeMasks3D_holeburn.m was run that day
xynew(:,1) is the horizontal axis, xynew(:,2) is the vertical axis
set xlb, xub (horizontal axis) and ylb, yub (vertical axis) accordingly in mesocroph5.ipynb
execute the following two lines in Matlab xyorig = [50 50; fullnpix_orig(1)-50 fullnpix_orig(2)-50];
xynew = convertcoords_HoloFOVtoCurrentFOV(hSI,xyorig, fullnpix_orig, fullxsize_orig, fullysize_orig, fullxcenter_orig, fullycenter_orig)

HOW TO INSTALL CLbehavior ENVIRONMENT
open Anaconda Powershell Prompt and enter the following commands:
cd C:\Users\MesoDAQ\Documents\GitHub\MesoSI_HScode\CLbehavior
conda env create -f environment.yml

mesoholo_onlineanalysis's People

Contributors

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