Skip to content
kuanawanda edited this page May 13, 2022 · 13 revisions

Welcome to the 2p_preprocess_ppc wiki!

Master preprocessing script is new_LD187_preprocessing.m

Description of new_LD187_preprocessing.m

Prereqs

% Needs constrained_foopsi https://github.com/epnev/constrained-foopsi % Needs HarveyLab helper functions (abfload) https://github.com/HarveyLab/helperFunctions % Needs matlab signal processing toolbox

Inputs

master path for raw data is /n/groups/htem/temcagt/datasets/ppc/2P_data original files from Laura are at
~/NeuroShare/HarveyLab/Tier2/Former lab members/Laura Driscoll/code_workspace/LD187/Virmen ~/NeuroShare/HarveyLab/Tier2/Former lab members/Laura Driscoll/DATA/imaging/PPC/manuscript_mice/LD187

  1. lineUpSession synchronizes behavioral data (from virmen) to synchronization signal (pclamp) and saves output to master/code_workspace/LD187/virmen/
  2. Load suite2p data from master/scanimage
  3. Perform deconvolution and export to master/code_workspace/deconvData
  4. master/code_workspace has been saved to ext HD, so I've generally loaded it here (on my laptop) for subsequent steps
  5. Calculate SNR metrics
  6. parseVirmenTrials calculates trialAlignedData (Ca data, RL select idx (from Harvey 2012), pairwise correlations, etc)
  7. Everything below that is not used

Description of selectivity_measures_220630.m

Calculates select index based on (1) RL (Harvey 2012) (2) ROC (Najafi 2020), and (3) Mutual Information (used in paper)

Prereqs

https://github.com/nmtimme/Neuroscience-Information-Theory-Toolbox

Inputs

Code workspace master path /n/groups/htem/temcagt/datasets/ppc/2P_data/ or /Volumes/Aaron's 5TB HD/ppc/2P_data/

Outputs to

master/code_workspace/LD187/selectMetrics

Description of selectivity_measures_220221.m

Calculates mutual information based on different definitions of trial type (cue, turn, correct only, etc).
Dev'd for testing purposes, paper just uses cue

Prereqs

https://github.com/nmtimme/Neuroscience-Information-Theory-Toolbox

Inputs

Code workspace master path /n/groups/htem/temcagt/datasets/ppc/2P_data/ or /Volumes/Aaron's 5TB HD/ppc/2P_data/

Output

Path is currently master path 2P_data, but currently outputting to /Users/akuan/Dropbox (HMS)/htem_team/projects/PPC_project/2P_data from laptop