Download exported_data and raw_extracted_data from https://osf.io/e2syt/ and put both into the parent directory above explore-sp-atlas.
I want to implement a F-test on time-series data that represent gcamp activity in C. elegans neurons.
I will take the time series and fit a linear regression null model
and spline alternative model
I compute a p-value based on a F-test for
-
Compute the median in a window around each point and NaN any data that is some quintile away. If more than a few data points are NaN we may throw away the entire trace.
-
Change the time window to (-10, 10).
-
In plots, plot regression lines for the model rather than the mean.
-
Randomly sample positive and negative samples with FDR rates .01 and .05. Manually annotate correctness and construct a confusion matrix.
-
In each quadrant of the confusion matrix, show a few representative samples.
-
With various FDR rates, manually construct a ROC curve.
-
Compare the confusion matrix with the logistic regression model’s confusion matrix, with representative samples.
-
In parallel, explore logistic regression on the connectome.