Background

Overview

Pain serves an important biological function. It acts as a system that helps us survive. It tells us when we need to rest and recover, what places and activities to avoid, and ultimately is a very powerful biological driving force for behavior. Some pain, however, does not serve those purposes, and, in fact, has the opposite, detrimental, effect on our health. Pain that persists after the wound has healed, or chronic pain, serves no purpose and is extremely distressing and destructive for those who suffer from it1. Chronic pain is a growing public health concern2 3 and, yet, adequate treatment options are lacking4 5. A decent understanding of the neuronal basis on pain circuitry is essential for coming up with effective treatment of such idiopathic pains.

Recently, we have been discovering more and more about the way these types of pain work. Scientists have made enormous strides to understanding the areas of the brain that process this type of pain, but the exact mechanisms that control this interaction remain unknown. In order for medications and interventions to be produced to counteract it, the mechanisms must be understood on a very detailed level.

The area of the brain that specifically has been shown to manage this pain is called RVM (rostral ventromedial medulla)6. RVM does this by communicating with neurons in the spinal cord that transmit pain information to our brain. It has been shown that RVM has an inhibitory effect on the spinal cord neurons7 8, but the exact mechanisms and cell to cell connectivity patterns remains a mystery9. Our project seeks to better understand these connections by using state of the art techniques to record the exact ways these cells are communicating (click on the “Experimental Details” tab for more information).

Experimental Details

Refer to the picture below to see an overall experimental desigh of the study:



Click on the “Original Data” tab to see the data with the results from the above experiment.

Original Data

These results come from adult mouse#2 which had 50 nl of ChR2 and YFP-producing viruses injected for 8 weeks. Axon Instruments electrophysiological equipment was used to record lamina I neuron cells’ responses from the Lumbar (L1–6) area of the spinal cord in the whole-cell mode. Optogenetic techniques (both monochromator and laser) were applied for the activation of RVM descending axons. 5 cells were successfully patched and had the data recorded on them.

‘Order’: order in which the data was recorded.

‘FileName’: the name of the file where the data was taken from.

‘Trace_Number’: every protocol of stimulation is recorded multiple times. Trace# (different sweeps on a graph) denotes each of those times. With the existing protocol, the first sweep was without any optogenetic stimulation for an additional control.

‘Ra’: Access Resistance and is measured in \(M\Omega\) - resistance between electrodes and the inside environment of the cell, or, in other words, the sum of the pipette resistance and the residual resistance of the ruptured patch. Note, when the laser was used Ra is unknown due to a current lack of instructions for finding it when using the laser in the design of the existing protocol.

‘Stimulation_Type’: denotes what type of stimulation was performed for a particular data piece. There were three different types:

  1. “control” - when only the electrical stimulation of the dorsal root was performed.

  2. “monochromator” - when both electrical stimulations of the dorsal root and optogenetic stimulation of RVM descending fibers using 480nm 5Hz 5ms monochromator were performed.

  3. “laser” - when both electrical stimulations of the dorsal root and optogenetic stimulation of RVM descending fibers using 5Hz 1ms laser were performed.

‘Total_Area’: integral of the overall response curve which is proportional to total charge transfer through the membrane and is measure in \(pA*ms\). For excitatory responses values are negative because the current was directed into the opposite direction; for inhibitory responses the values are positive.

‘First_Peak’: the amplitude of the first peak of the cell’s response and is measured in \(pA\). For excitatory responses values are negative because the current was directed into the opposite direction; for inhibitory responses the values are positive.

Cell 1

datatable(cell1)

Cell 2

datatable(cell2)

Cell 3

datatable(cell3)

Cell 4

datatable(cell4)

Cell 5

datatable(cell5)

Analysis

To better understand the connectivity patterns of the RVM descending axons with the lamina I neurons of the spinal cord, we will first need to know if we have stimulated the RVM axons. To know that, we will need to compare if we get different responses from the patched cell when we use light stimulation (monochromator or laser) and when we don’t (control). If we see that the responses from either “laser” or “monochromator” are different than from the “control” group, this would tell us that we have activated something other than just the dorsal root neurons, which most likely is the RVM descending axons since we are activating the area where those axons reside (although we would need to do futher checking if we are only activating ChR2 in the RVM axons and nothing else with the negative control). So below are the results of the One-way ANOVA test checking if we get different responses in at least one group for the first 3 cells (note, both “monochromator” and “laser” were used only on the first 3 cells. The last two cells only had “monochromator” and “control” used as ‘Stimulation_Types’).

Note: The data can only be compared if the Ra (acess resistence) is approximately the same between the compared data chunks. Thus, if you click on ‘Show how the data was filtered’ tab under each cell, you will see the way that rule was implemented and achieved for each of the cells.

Two Experimental Groups vs Control

Since we are interested in knowing if there is a difference in the response of the spinal cord cells after electrical stimulation of dorsal root with and without simultaneous RVM axons stimulation by light our null and alternative hypotheses for all 3 cells are as follows:

\[ H_0: \mu_{control} = \mu_{laser} = \mu_{monochromator} = \mu \] \[ H_a: \mu_i \neq \mu \ \text{for at least one}\ i\in\text{ `Stimulation_Type`} \]

The level of significance is set at \(\alpha\) = 0.05 for this study.

If we reject the null, that would mean that at least one of the optogenetic methods is working and is activating the descending axons of RVM (or something other than just dorsal root neurons). If we fail to reject the null, that would mean that none of the experimental groups are working.

Cell 1

Since the First Peak of Cell1 is not monosynaptic, we are going to only compare values of Total_Area of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

Total Area Response:

Below is the boxplot comparison between all the three groups for the filtered chunk of data (click ‘Show how the data was filtered’ for more details on this):

boxplot(Total_Area~Stimulation_Type, data = cell1Filterlm, col=c("skyblue","yellow","orange"), main = "Lamina I Cell1 Inhibitory Currents Comparison in mouse#2", xlab =" Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

 cell1Filterlm %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell1 with the Ra difference within 20%", split.table=Inf)
Summary Statistics of Total_Area Cell1 with the Ra difference within 20%
Stimulation_Type min Q1 med Q3 max mean sd sample size
control 16645 19129 20235 21661 22420 20124 1835 12
laser 12257 14911 15881 20301 21849 16955 3323 20
monochromator 10237 13690 14983 15986 18893 14547 2151 25

Show the diagnostic plots(click to view)

Analysis of Variance Model of Total_Area Cell1 of ‘laser’, ‘control’, ‘monochromator’
  Df Sum Sq Mean Sq F value Pr(>F)
Stimulation_Type 2 256878906 128439453 19.38 4.53e-07
Residuals 54 357899212 6627763    

Since p-value < \(\alpha\) (4.53e-07<0.05), we reject the null and conclude that at least one of the means of all three groups is different, and, thus, one of the Stimulation Types (either monochromator or laser, or both) is working.


From the above results, we see that consistently at least one of the optogenetic methods (monochromator or laser) is working. While “monochromator” works the same way in all 3 cells inhibiting both the excitatory and inhibitory currents, “laser” seems to not give consistent results. To further confirm on which one of the two methods is activating RVM axons consistently and how the responses of a cell change, we will have to perform the Independent Samples t-Test on each experimental group separately.


Cell 2

Since the First Peak of Cell2 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

First Peak Response:

Below is the boxplot comparison between all the three groups for the filtered chunk of data (click ‘Show how the data was filtered’ for more details on this):

boxplot(First_Peak~Stimulation_Type, data = cell2Filterlm, col=c("skyblue","yellow","orange"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab = " Stimulation Type of RVM Descending Fibers", ylab="First Peak of Monosynaptic Response (pA)")

cell2Filterlm %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First_Peak Cell2 With the Ra Difference Within 20%", split.table=Inf)
Summary Statistics of First_Peak Cell2 With the Ra Difference Within 20%
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -254.9 -233.1 -225.2 -210.3 -193.3 -221.5 16.91 20
laser -278 -244.2 -236.4 -216.9 -189.1 -232.3 24.8 10
monochromator -227.9 -176.9 -173.5 -159.2 -151.4 -174.8 21.91 10

Show the diagnostic plots(click to view)

Analysis of Variance Model of Total_Area Cell2 of ‘laser’, ‘control’, ‘monochromator’
  Df Sum Sq Mean Sq F value Pr(>F)
Stimulation_Type 2 19780 9890 23.94 2.132e-07
Residuals 37 15285 413.1    

Since p-value < \(\alpha\) (2.132e-07<0.05), we reject the null and conclude that at least one of the means of all three groups is different, and, thus, one of the Stimulation Types (either monochromator or laser, or both) is working.

Total Area Response:

Below is the boxplot comparison between all the three groups for the filtered chunk of data (click ‘Show how the data was filtered’ for more details on this):

boxplot(Total_Area~Stimulation_Type, data = cell2Filterlm, col=c("skyblue","yellow","orange"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell2Filterlm %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell2 With the Ra Difference Within 20%", split.table=Inf)
Summary Statistics of Total_Area Cell2 With the Ra Difference Within 20%
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -3016 -2788 -2668 -2334 -2124 -2598 273.9 20
laser -3215 -2697 -2413 -2191 -1412 -2409 476.3 10
monochromator -2735 -2280 -2109 -1948 -1483 -2081 374.4 10

Show the diagnostic plots(click to view)

Analysis of Variance Model of Total_Area Cell2 of ‘laser’, ‘control’, ‘monochromator’
  Df Sum Sq Mean Sq F value Pr(>F)
Stimulation_Type 2 1785982 892991 6.987 0.002665
Residuals 37 4728758 127804    

Since p-value < \(\alpha\) (0.002665<0.05), we reject the null and conclude that at least one of the means of all three groups is different, and, thus, one of the Stimulation Types (either monochromator or laser, or both) is working.


From the above results, we see that consistently at least one of the optogenetic methods (monochromator or laser) is working. While “monochromator” works the same way in all 3 cells inhibiting both the excitatory and inhibitory currents, “laser” seems to not give consistent results. To further confirm on which one of the two methods is activating RVM axons consistently and how the responses of a cell change, we will have to perform the Independent Samples t-Test on each experimental group separately.


Cell 3

Since the First Peak of Cell3 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

First Peak Response:

Below is the boxplot comparison between all the three groups for the filtered chunk of data (click ‘Show how the data was filtered’ for more details on this):

boxplot(First_Peak~Stimulation_Type, data = cell3Filterlm, col=c("skyblue","yellow","orange"), main = "Lamina I Cell3 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Monosynaptic Response (pA)")

cell3Filterlm %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First_Peak Cell3 With the Ra Difference Within 20%", split.table=Inf)
Summary Statistics of First_Peak Cell3 With the Ra Difference Within 20%
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -153.6 -118.8 -107.4 -100.9 -69.55 -108.4 19.85 22
laser -105.5 -89.62 -84.69 -77.62 -47.09 -82.38 15.07 10
monochromator -105.9 -83.52 -72.88 -65.92 -41.13 -73.12 18.38 12

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell3 of ‘laser’, ‘control’, ‘monochromator’
F value Pr(>F) Number of Iterations
16.21 0 2000

Since p-value < \(\alpha\) (0<0.05), we reject the null and conclude that at least one of the means of all three groups is different, and, thus, one of the Stimulation Types (either monochromator or laser, or both) is working.

Total Area Response:

Below is the boxplot comparison between all the three groups for the filtered chunk of data (click ‘Show how the data was filtered’ for more details on this):

boxplot(Total_Area~Stimulation_Type, data = cell3Filterlm, col=c("skyblue","yellow","orange"), main = "Lamina I Cell3 Excitatory Currents Comparison in mouse#2", xlab =" Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell3Filterlm %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell3 With the Ra Difference Within 20%", split.table=Inf)
Summary Statistics of Total_Area Cell3 With the Ra Difference Within 20%
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -3340 -2527 -2441 -2201 -1704 -2430 395.5 22
laser -2948 -2609 -2360 -2173 -1500 -2350 428.1 10
monochromator -2181 -1792 -1294 -1037 -574 -1383 531.8 12

Show the diagnostic plots(click to view)

Analysis of Variance Model of Total_Area Cell3 of ‘laser’, ‘control’, ‘monochromator’
  Df Sum Sq Mean Sq F value Pr(>F)
Stimulation_Type 2 9160244 4580122 23.34 1.707e-07
Residuals 41 8045137 196223    

Since p-value < \(\alpha\) (1.707e-07<0.05), we reject the null and conclude that at least one of the means of all three groups is different, and, thus, one of the Stimulation Types (either monochromator or laser, or both) is working.


From the above results, we see that consistently at least one of the optogenetic methods (monochromator or laser) is working. While “monochromator” works the same way in all 3 cells inhibiting both the excitatory and inhibitory currents, “laser” seems to not give consistent results. To further confirm on which one of the two methods is activating RVM axons consistently and how the responses of a cell change, we will have to perform the Independent Samples t-Test on each experimental group separately.


One Experimental group vs Control

Monochromator vs Control

Since we are interested in knowing if there is a difference in the response of the spinal cord cells after electrical stimulation of dorsal root with and without simultaneous RVM axons stimulation by the monochromator, our null and alternative hypotheses for all 5 cells are as follows:

\[ H_0: \mu_{control} = \mu_{monochromator} \]

\[ H_a: \mu_{control} \neq \mu_{monochromator} \] where,

\(\mu_{control}\) is the mean Total_Area (in \(pA*ms\))/First_Peak (in \(pA\)) of the patched cell’s response after the axons of RVM were electrically stimulated (in pA*ms);

\(\mu_{monochromator}\) is the mean Total_Area (in \(pA*ms\))/First_Peak (in \(pA\)) of the patched cell’s response after the axons of RVM were simultaneously stimulated electrically and with a monochromator.

The level of significance is set at \(\alpha\) = 0.05 for this study.

Cell 1

Since the First Peak of Cell1 is not monosynaptic, we are going to only compare values of Total_Area of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

Total Area Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell1 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell1Filter1, col=c("skyblue","orange"), main = "Lamina I Cell1 Inhibitory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell1Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), sd =sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell1 First Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell1 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control 13689 16733 18034 18814 23635 18069 2564 11
monochromator 10392 13468 15146 16131 18893 14650 2470 12

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell1 First Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
3.251 0.004 2000 two.sided

P-value is significant (0.004<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different from that when there is no light stimulation.

From this data segment, we can conclude that, on average, monochromator decreases the Total_Area cell’s response values from 18069 to 14650 which is 18.9%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell1 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell1Filter2, col=c("skyblue","orange"), main = "Lamina I Cell1 Inhibitory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell1Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell1 Second Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell1 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control 16645 19617 20348 21749 22420 20300 1816 11
monochromator 10237 13690 14410 15888 17433 14452 1909 13

Show the diagnostic plots(click to view)

Welch Two Sample t-test: Total_Area Cell1 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
7.678 21.66 1.287e-07 * * * two.sided

P-value is significant (1.287e-07<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different from that when there is no light stimulation.

From this data segment, we can conclude that, on average, monochromator decreases the Total_Area cell’s response values from 20300 to 14452 which is 28.8%.

Cell 2

Since the First Peak of Cell2 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulation.

Show how the data was filtered (click to view)

First Peak Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell2 for the ‘First_Peak’ column.

boxplot(First_Peak~Stimulation_Type, data = cell2Filter1, col=c("skyblue","orange"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Mosynaptic Response (pA)")

cell2Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First_Peak Cell2 First Data Segment", split.table=Inf)
Summary Statistics of First_Peak Cell2 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -254.9 -233.1 -225.2 -210.3 -193.3 -221.5 16.91 20
monochromator -227.9 -176.9 -173.5 -159.2 -151.4 -174.8 21.91 10

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell2 First Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-5.916 0 2000 two.sided

P-value is very significant (0<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different from that when there is no light stimulation.

From this data segment, we can conclude that, on average, in the excitatory cell monochromator decreases the negative response from -221.5 to -174.8 which is 21.1%.

Second Data Segment:

Below is the boxplot comparison of the second half of the data gathered in Cell2 for the ‘Total_Area’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

cell2Filter2<-filter(cell2, Order > 71)
boxplot(First_Peak~Stimulation_Type, data = cell2Filter2, col=c("gray58","gray82"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Monosynaptic Response (pA)")

cell2Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample Size'=n()) %>% pander(caption="Summary Statistics of First_Peak Cell2 Second Data Segment", split.table=Inf)
Summary Statistics of First_Peak Cell2 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -240.8 -206.9 -193.6 -170.1 -114.1 -187.9 30.02 19
monochromator -220.9 -194.2 -173.2 -159 -138 -175.8 27.46 10

Show the diagnostic plots(click to view)

Welch Two Sample t-test: First_Peak Cell2 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-1.087 19.94 0.2899 two.sided

P-value is not significant (0.2899>\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that monochromator changes the overall cell’s response.

From this data segment, on average, in the excitatory cell monochromator decreased the negative response from -187.9 to -175.8 which is 6.4%.

Total Area Response:

First Data Segment:

Below is the boxplot comparison of the first half of the data gathered in Cell2 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell2Filter1, col=c("skyblue","orange"), main = "Lamina I Cell2 Excitatory  Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell2Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'Sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell2 First Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell2 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd Sample Size
control -3016 -2788 -2668 -2334 -2124 -2598 273.9 20
monochromator -2735 -2280 -2109 -1948 -1483 -2081 374.4 10

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell2 First Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-3.881 13.99 0.001 two.sided

P-value is significant (0.001<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that monochromator changes the overall cell’s response.

From this data segment, we can conclude that, on average, monochromator decreases the Total_Area cell’s response from -2598 to -2081 which is 19.9%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell2 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell2Filter2, col=c("skyblue","orange"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell2Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell2 Second Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell2 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -2822 -2428 -2227 -2082 -1305 -2209 373.1 19
monochromator -2346 -2076 -1957 -1768 -1432 -1923 294 10

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell2 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-2.263 22.6 0.027 two.sided

P-value is significant ( 0.027<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that monochromator changes the overall cell’s response.

From this data segment, we can conclude that, on average, monochromator decreases the Total_Area cell’s response from -2209 to -1923 which is 12.9%.

Cell 3

Since the First Peak of Cell3 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulation.

Show how the data was filtered (click to view)

First Peak Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell3 for the ‘First_Peak’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(First_Peak~Stimulation_Type, data = cell3Filter1,  col=c("gray58","gray82"), main = "Lamina I Cell3 Excitatory Currents Comparison in mouse#2", xlab =" Stimulation Type of RVM Descending Fibers", ylab="First Peak of Mosynaptic Response (pA)")

cell3Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample Size'=n()) %>% pander(caption="Summary Statistics of First_Peak Cell3 First Data Segment", split.table=Inf)
Summary Statistics of First_Peak Cell3 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -142.8 -126.9 -109.5 -98.35 -71.3 -112.9 20.61 15
monochromator -136.3 -99.26 -92.64 -86.74 -62.04 -95.23 23.79 9

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell3 First Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-1.851 0.082 2000 two.sided

P-value is not significant (0.082<\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that the monochromator changes the overall cell’s response.

From this data segment, on average, in the excitatory cell monochromator decreased the negative response from -112.9 to -95.23 which is 15.7%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell3 for the ‘First_Peak’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(First_Peak~Stimulation_Type, data = cell3Filter2, col=c("gray58","gray82"), main = "Lamina I Cell3 Excitatory Currents Comparison in mouse#2", xlab =" Stimulation Type of RVM Descending Fibers", ylab="First Peak of Mosynaptic Response (pA)")

cell3Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'Sample Size'=n()) %>% pander(caption="
Summary Statistics of First_Peak Cell3 Second Data Segment", split.table=Inf)
Summary Statistics of First_Peak Cell3 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd Sample Size
control -240.8 -206.9 -193.6 -170.1 -114.1 -187.9 30.02 19
monochromator -227.9 -186.7 -175.4 -163.8 -138 -177.2 24.78 18

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell3 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-1.179 0.247 2000 two.sided

P-value is not significant ( 0.247<\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that the monochromator changes the overall cell’s response.

From this data segment, on average, in the excitatory cell monochromator decreased the negative response from -187.9 to -177.2 which is 5.7%.

Total Area Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell3 for the ‘Total_Area’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(Total_Area~Stimulation_Type, data = cell3Filter1,  col=c("skyblue","orange"), main = "Lamina I Cell3 Excitatory   Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell3Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell3 First Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell3 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -3617 -2631 -2290 -2198 -1500 -2451 615.5 15
monochromator -2481 -1936 -1595 -1412 -1232 -1683 395.5 9

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell3 First Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-3.724 0.002 2000 two.sided

P-value is very significant (0.002<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that monochromator changes the overall cell’s response.

From this data segment, we can conclude that, on average, in the excitatory cell monochromator decreases the negative response from -2451 to -1683 which is 31.3%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell3 for the ‘Total_Area’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(Total_Area~Stimulation_Type, data = cell3Filter2,  col=c("gray58","gray82"), main = "Lamina I Cell3 Excitatory  Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell3Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell3 Second Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell3 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -2822 -2428 -2227 -2082 -1305 -2209 373.1 19
monochromator -2735 -2212 -2029 -1872 -1432 -2015 326.2 18

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell3 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-1.69 0.099 2000 two.sided

P-value is not significant ( 0.099>\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that the monochromator changes the overall cell’s response.

From this data segment, on average, in the excitatory cell monochromator decreased the negative response from -2209 to -2015 which is 8.8%.

Cell 4

Since the First Peak of Cell4 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulation.

Show how the data was filtered (click to view)

First Peak Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell4 for the ‘First_Peak’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(First_Peak~Stimulation_Type, data = cell4Filter1, col=c("gray58","gray82"), main = "Lamina I Cell4 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Mosynaptic Response (pA)")

cell4Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First Peak Amplitude Cell4 First Data Segment", split.table=Inf)
Summary Statistics of First Peak Amplitude Cell4 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -225 -170.7 -158.6 -128.9 -96 -154.2 34.62 22
monochromator -203.8 -162.2 -137.9 -114 -71.03 -138.1 38.09 13

Show the diagnostic plots(click to view)

Welch Two Sample t-test: First_Peak Cell4 First Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-1.247 23.39 0.2249 two.sided

P-value is not significant (0.2899>\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that the monochromator changes the overall cell’s response.

From this data segment, on average, in the excitatory cell monochromator inhibited the negative response from -154.2 to -138.1 which is 10.4%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell4 for the ‘First_Peak’ column.

boxplot(First_Peak~Stimulation_Type, data = cell4Filter2, col=c("skyblue","orange"), main = "Lamina I Cell4 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Monosynaptic Response (pA)")

cell4Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample Size'=n()) %>% pander(caption="
Summary Statistics of First Peak Amplitude Cell4 Second Data Segment", split.table=Inf)
Summary Statistics of First Peak Amplitude Cell4 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -188.4 -163.3 -150.9 -132.8 -94.53 -146.5 27.16 23
monochromator -214.6 -153.4 -117.1 -96.18 -63.8 -124.6 38.2 19

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell4 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-2.098 0.037 2000 two.sided

P-value is significant (0.037<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that monochromator changes the overall cell’s response.

From this data segment, we can conclude that, on average, monochromator decreases the First_Peak cell’s response from -146.5 to -124.6 which is 14.9%.

Total Area Response:

First Data Segment:

Below is the boxplot comparison of the First Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell4 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell4Filter1, col=c("skyblue","orange"), main = "Lamina I Cell4 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell4Filter1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell4 First Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell4 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -2917 -2222 -1963 -1869 -1150 -2043 374.4 22
monochromator -2513 -1969 -1689 -1487 -1107 -1730 402.3 13

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell4 First Data Segment of ‘control’ and ‘monochromator’
Test statistic P value Number of Iterations Alternative hypothesis
-2.276 0.027 2000 two.sided

P-value is significant (0.027<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different.

From this data segment, on average, in the excitatory cell monochromator inhibited the negative response from -2043 to -1730 which is 15.3%.

Second Data Segment:

Below is the boxplot comparison of the Second Data Segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell4 for the ‘Total_Area’ column.

boxplot(Total_Area~Stimulation_Type, data = cell4Filter2, col=c("skyblue","orange"), main = "Lamina I Cell4 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell4Filter2 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell4 Second Data Segment", split.table=Inf)
Summary Statistics of Total_Area Cell4 Second Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -2494 -2223 -2058 -1848 -1382 -2022 291.4 23
monochromator -2778 -1860 -1677 -1332 -1074 -1617 406.9 19

Show the diagnostic plots(click to view)

Welch Two Sample t-test: Total_Area Cell4 Second Data Segment of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-3.637 31.81 0.000966 * * * two.sided

P-value is significant (0.000966<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different.

From this data segment, on average, in the excitatory cell monochromator inhibited the negative response from -2022 to -1617 which is 20.0%.

Cell 5

Since the First Peak of Cell5 is not monosynaptic, we are going to only compare values of Total_Area of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

Total Area Response:

Below is the boxplot comparison of the data gathered from Cell5 for the ‘Total_Area’ column:

boxplot(Total_Area~Stimulation_Type, data = cell5, col=c("skyblue","orange"), main = "Lamina I Cell5 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell5 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell5", split.table=Inf)
Summary Statistics of Total_Area Cell5
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -2391 -2094 -1931 -1663 -1260 -1865 320.4 16
monochromator -1846 -1762 -1588 -1419 -1080 -1568 242.6 10

Show the diagnostic plots(click to view)

Welch Two Sample t-test: Total_Area Cell5 of ‘control’ and ‘monochromator’
Test statistic df P value Alternative hypothesis
-2.677 22.95 0.01349 * two.sided

P-value is significant (0.01349<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the axons of RVM are stimulated with monochromator the overall cell’s response is different.

From this data, on average in the excitatory cell, monochromator decreases the negative response from -1865 to -1568 which is 15.9%.

Lazer vs Control

Since we are interested in knowing if there is a difference in the response of the spinal cord cells after electrical stimulation of dorsal root with and without simultaneous RVM axons stimulation by laser, our null and alternative hypotheses for all 3 cells are as follows (note, “laser” was used only on the first 3 cells. The last two cells only had “monochromator” and “control” used as ‘Stimulation_Types’):

\[ H_0: \mu_{control} = \mu_{laser} \]

\[ H_a: \mu_{control} \neq \mu_{laser} \] where,

\(\mu_{control}\) is the mean Total_Area (in \(pA*ms\))/First_Peak (in \(pA\)) of the patched cell’s response after the axons of RVM were electrically stimulated (in pA*ms);

\(\mu_{laser}\) is the mean Total_Area (in \(pA*ms\))/First_Peak (in \(pA\)) of the patched cell’s response after the axons of RVM were simultaneously stimulated electrically and with a laser.

The level of significance is set at \(\alpha\) = 0.05 for this study.

Cell 1

Since the First Peak of Cell1 is not monosynaptic, we are going to only compare values of Total_Area of the cell’s response after the stimulations.

Show how the data was filtered (click to view)

Total Area Response:

Below is the boxplot comparison of the data segment with laser vs control gathered in Cell1 for the ‘Total_Area’ column. The gray color indicates non-significance of the p-value for the below boxplots.

boxplot(Total_Area~Stimulation_Type, data = cell1Filterl1, col=c("gray58","gray82"), main = "Lamina I Cell1 Inhibitory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell1Filterl1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), sd =sd(Total_Area), 'sample size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell1", split.table=Inf)
Summary Statistics of Total_Area Cell1
Stimulation_Type min Q1 med Q3 max mean sd sample size
control 11556 15225 15992 17249 19279 15986 2120 12
laser 12220 13194 15343 16363 20824 15480 2619 22

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell1 of ‘control’ and ‘laser’
Test statistic P value Number of Iterations Alternative hypothesis
1.017 0.317 2000 two.sided

P-value is not significant (0.317>\(\alpha\)), so we fail to reject the null. This means that there is no significant evidence to conclude that when the axons of RVM are stimulated with laser the overall cell’s response is different than that from the control.

Cell 2

Since the First Peak of Cell2 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulation.

Show how the data was filtered (click to view)

First Peak Response:

Below is the boxplot comparison of the chosen data segment gathered in Cell2 for “laser” vs “control” the ‘First_Peak’ column. The gray color indicates a non-significance of the p-value for the below boxplots.

boxplot(First_Peak~Stimulation_Type, data = cell2Filterl1, col=c("gray58","gray82"), main = "Lamina I Cell2 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak Amplitude of Mosynaptic Response (pA)")

 cell2Filterl1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First Peak Amplitude Cell2", split.table=Inf)
Summary Statistics of First Peak Amplitude Cell2
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -283.5 -269.4 -262.8 -245.3 -221 -256.8 22.68 6
laser -281.4 -277.8 -262.1 -233.2 -215.4 -255.4 25.33 8

Show the diagnostic plots(click to view)

Welch Two Sample t-test: First_Peak Cell2 of ‘control’ and ‘laser’
Test statistic df P value Alternative hypothesis
-0.1156 11.53 0.91 two.sided

P-value is not significant (0.91>\(\alpha\)), so we fail to reject the null. This means that there is insignificant evidence to conclude that when the laser was used the overall cell’s response was different.

Total Area Response:

Below is the boxplot comparison of our data segment gathered in Cell2 for the ‘Total_Area’ column. The gray color indicates non-significance of the p-value for the below boxplots.

boxplot(Total_Area~Stimulation_Type, data = cell2Filterl1, col=c("gray58","gray82"), main = "Lamina I Cell2 Excitatory  Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell2Filterl1 %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'Sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell2", split.table=Inf)
Summary Statistics of Total_Area Cell2
Stimulation_Type min Q1 med Q3 max mean sd Sample Size
control -4073 -3640 -3477 -3365 -2976 -3504 365.6 6
laser -3962 -3782 -3447 -3046 -2689 -3395 462.5 8

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell2 of ‘control’ and ‘laser’
Test statistic P value Number of Iterations Alternative hypothesis
-0.4919 0.622 2000 two.sided

P-value is not significant (0.622>\(\alpha\)), so we fail to reject the null. This means that there is insignificant evidence to conclude that when the axons of RVM are stimulated with laser the overall cell’s response is different.

Cell 3

Since the First Peak of Cell3 is monosynaptic, we are going to compare both the Total_Area and the First_Peak amplitude of the cell’s response after the stimulation.

Show how the data was filtered (click to view)

First Peak Response:

Below is the boxplot comparison of the chosen data segment [click on ‘Show how the data was filtered’ for more information on that] of the data gathered in Cell3 for the ‘First_Peak’ column.

boxplot(First_Peak~Stimulation_Type, data = cell3Filterl, col=c("skyblue","yellow"), main = "Lamina I Cell3 Excitatory Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="First Peak of Mosynaptic Response (pA)")

cell3Filterl %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(First_Peak), Q1 = quantile(First_Peak, 0.25), med = median(First_Peak), Q3 = quantile(First_Peak, 0.75), max = max(First_Peak), mean=mean(First_Peak), 'sd'=sd(First_Peak), 'sample size'=n()) %>% pander(caption="Summary Statistics of First Peak Amplitude Cell2 First Data Segment", split.table=Inf)
Summary Statistics of First Peak Amplitude Cell2 First Data Segment
Stimulation_Type min Q1 med Q3 max mean sd sample size
control -153.6 -119.3 -107.4 -100.6 -69.55 -108.6 20.32 21
laser -105.5 -89.62 -84.69 -77.62 -47.09 -82.38 15.07 10

Show the diagnostic plots(click to view)

Permutation Test of First_Peak Cell3 First Data Segment of ‘control’ and ‘laser’
Test statistic P value Number of Iterations Alternative hypothesis
-4.086 0.002 2000 two.sided

P-value is significant (0.002<\(\alpha\)), so we reject the null. This means that there is significant evidence to conclude that when the laser was used the overall cell’s response was different.

Total Area Response:

Below is the boxplot comparison of our data segment gathered in Cell3 for the ‘Total_Area’ column. The gray color indicates non-significance of the p-value for the below boxplots.

boxplot(Total_Area~Stimulation_Type, data = cell3Filterl , col=c("gray58","gray82"), main = "Lamina I Cell3 Excitatory  Currents Comparison in mouse#2", xlab ="Stimulation Type of RVM Descending Fibers", ylab="Total Area of the Cell's Response (pA*ms)")

cell3Filterl  %>%
group_by(Stimulation_Type) %>%
  summarise(min = min(Total_Area), Q1 = quantile(Total_Area, 0.25), med = median(Total_Area), Q3 = quantile(Total_Area, 0.75), max = max(Total_Area), mean=mean(Total_Area), 'sd'=sd(Total_Area), 'sample Size'=n()) %>% pander(caption="Summary Statistics of Total_Area Cell3", split.table=Inf)
Summary Statistics of Total_Area Cell3
Stimulation_Type min Q1 med Q3 max mean sd sample Size
control -3340 -2510 -2436 -2195 -1704 -2425 404.5 21
laser -2948 -2609 -2360 -2173 -1500 -2350 428.1 10

Show the diagnostic plots(click to view)

Permutation Test of Total_Area Cell3 First Data Segment of ‘control’ and ‘laser’
Test statistic P value Number of Iterations Alternative hypothesis
-0.502 0.615 2000 two.sided

P-value is not significant (0.615>\(\alpha\)), so we fail to reject the null. This means that there is insignificant evidence to conclude that when the axons of RVM are stimulated with laser the overall cell’s response is different.

Conclusion

“Laser” stimulation type has consistently given us non-significant results, except for just one significant result in Cell3 for the First_Peak response for just one data segment. It has also given us results without any distinct patterns, which simply means laser does not work and does not activate RVM descending fibers.

The fact that 10 out of 15 tests that we performed on monochromator data gave us significant results and that in all 15 tests and all the different data segments monochromator behaved the same way - inhibiting both the excitatory and inhibitory exits from the dorsal root stimulation, we can conclude that monochromator was effective in changing (inhibiting) lamina I cells’ responses after the dorsal root stimulation. From all the data on the monochromator we could see that on average First_Peak response was inhibited by 12.4% and the Total_Area was inhibited by an average of 19.1%.

If our assumption of monochromator activating only RVM descending fibers proves to be correct (with the negative control), then the exact connectivity pattern of the cells that were patched in lamina I and the RVM descending axons most likely looks like this: