@@ -11,26 +11,21 @@ using PhysiologyAnalysis
1111
1212# ╔═╡This task is for extraction of points, centroids, and ROIs using cellpose
1313# Kpuff looks really good
14-
15- # #We should look through the available files and see which ones fit
16- # img_fn = raw"F:\Data\Two Photon\2025-05-02-GRAB-DA-nirCAT-STR\grab-nircat-str-20hz-100uA001.tif"
17- # stim_fn = raw"F:\Data\Patching\2025-05-02-GRAB-DA-STR\25502000.abf"
18-
19- # Good but a big bubble
20- # img_fn = raw"F:\Data\Two Photon\2025-05-02-GRAB-DA-nirCAT-STR\grab-nircat-str-3s_20hz_30uA_3x006.tif"
21- # stim_fn = raw"F:\Data\Patching\2025-05-02-GRAB-DA-STR\25502007.abf"
22-
2314img_fn = raw " F:\D ata\T wo Photon\2 025-05-02-GRAB-DA-nirCAT-STR\g rab-nircat-str-kpuff011.tif"
2415stim_fn = raw " F:\D ata\P atching\2 025-05-02-GRAB-DA-STR\2 5502015.abf"
2516
26- # %%
2717img_fn = raw " F:\D ata\T wo Photon\2 025-05-02-GRAB-DA-nirCAT-STR\g rab-nircat-str-kpuff_3x012.tif"
2818stim_fn = raw " F:\D ata\P atching\2 025-05-02-GRAB-DA-STR\2 5502017.abf"
2919
20+ # %%
21+ # Electrical Stimulus
22+ img_fn = raw " H:\D ata\T wo Photon\2 025-03-05-GRAB-DA-STRIATUM\g rab-da_b4_str_stim500uA_3x_NOMF046.tif"
23+ stim_fn = raw " H:\D ata\P atching\2 025-03-26-GRAB-DA_STR\2 5326050.abf"
24+
3025data2P = readImage (img_fn);
3126deinterleave! (data2P) # This seperates the movies into two seperate movies
3227
33- spike_train = false
28+ spike_train = true
3429if spike_train
3530 # If we have a electrical stimulus we need to do the spike train analysis
3631 addStimulus! (data2P, stim_fn, " IN 3" , flatten_episodic = true , stimulus_threshold = 0.5 )
@@ -76,11 +71,11 @@ fig_raw = PhysiologyPlotting.plot_analysis(data2P)
7671
7772# %%
7873# Save the raw analysis figure
79- save (raw " F :\D ata\A nalysis\S triatumAnalysis \P otassium Puffs \f ig_raw .png" , fig_raw)
74+ save (raw " H :\D ata\A nalysis\f ig_raw_striatum_elec .png" , fig_raw)
8075
8176# %%
8277fig = plot_roi_analysis (data2P, stim_idx = 2 )
8378display (fig)
79+ save (raw " H:\D ata\A nalysis\f ig_roi_analysis_striatum_elec.png" , fig)
8480
85- # Save the ROI analysis figure
86- save (raw " F:\D ata\A nalysis\S triatumAnalysis\P otassium Puffs\f ig_roi_analysis.png" , fig)
81+ # Save the ROI analysis figure
0 commit comments