Scripts written after opening lab
NOTE: all functions are in +ap
namespace, so are called as ap.function
load_recording
- calls:
load_timelite/bonsai/mousecam/widefield/ephys
, based on what's available and workspace structureload_parts
- parses wheel with
ap.parse_wheel
intowheel velocity
and binarywheel_move
vectors
preprocess_neuropixels(animal,day)
- saves metadata, runs PyKilosort, translates spike times into Open Ephys timestamps
spike_cg
- auto/cross-correlation
wf_align(im_unaligned,animal,day,align_type_master_align)
:
-
create and save new day alignment:
ap.align_widefield([],animal,[],'new_days')
(uses all wf days, or specifyim_unaligned/days
for selection) -
create and save new animal alignment:
ap.align_widefield(day-aligned retinotopy,animal,[],'new_animal')
(aligns day-aligned average animal retinotopy to master retinotopy) -
wf_roi
: grab fluorescence trace in ROI -
wf_draw
: draw CCF borders/grid/point/areas over aligned widefield -
wf_reflect
: flips L/R on aligned widefield image -
wf_load_raw
: load/scroll raw frames -
wf_corrviewer
: view seed pixel correlations in widefield
expscroll
- scroll through data
ccf_draw
- draw CCF flat and 3D views, draw areas. plot probe trajectoriesplot_probe_positions
- draw all probe positions (NTE and histology) for animal
where2slice
- show anterior/posterior extents of coronal slices from saved NTE trajectories