AbbyCui / CalciumImagingAnalysis

1 stars 2 forks source link

add Binary response to plots #12

Open cawarwick opened 1 year ago

cawarwick commented 1 year ago

In the plotting module add a function to look for the MaxResponse CSV and indicate whether the stimulus had a response or not. e.g. when you're flipping through traces it would indicate on the graph itself whether the stimulus met response criteria, would be useful in validating thresholds and as a QC when looking at the data in general.

Psuedocode

Within the plot function where it's plotting the names of each stimuli, add this within the loop

try import maxresponseP0.csv
For this stim [i]
      Find value of Stim[i] from maxresponse
               if Stim[i]==0
                        don't add anything the graph
               else
                    Add text at stimwindow of stim[i] ##e.g. the amplitude of response, or maybe just a * to make it simple
Milamber64 commented 2 weeks ago

Change the color of the threshold tick mark to a different color to indicate a response

AbbyCui commented 2 weeks ago

will have to run another iteration of Plot.py after running MaxResponse. Can change the color or the threshold in Plot.py image