Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions neuroplatform-docs/np_core/db_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"```{seealso}\n",
":class: dropdown\n",
"- [Spike sorting](../np_utils/spikesorting) : Utility to perform basic spike sorting on the data.\n",
"- [Database FAQ](faq:stimulation) : Frequently asked questions about the database.\n",
"```\n",
"\n",
"\n",
Expand Down Expand Up @@ -84,13 +85,19 @@
"\n",
"A **spike event** is logged whenever the voltage from an electrode crosses a threshold of six times the standard deviation of the noise.\n",
"\n",
"```{caution}\n",
"By default, the threshold is **dynamic**, which means it is computed based on the standard deviation of the noise at a certain time interval.<br>\n",
"During bursts or stimulation, this standard deviation may increase, which will overall lower the amount of events recorded.\n",
"See [Variable threshold](np-core:variance-threshold) for more information.\n",
"```\n",
"\n",
"You can query a list of spike events with the timestamp, the amplitude (maximum absolute voltage of the peak across 3ms around the spike) and the channel number using `get_spike_event`\n",
"\n",
"To avoid returning large amounts of data, keep the time window small.<br>\n",
"We recommed starting with 5 minutes, and increasing/decreasing the window as needed.\n",
"\n",
"```{caution}\n",
"The database WILL record stimulation events. Any event with an amplitude above 200 uV is very likely to be a stimulation artifact.\n",
"```{note}\n",
"The database will record stimulation events. See the [relevant question in FAQ](faq:stim-artifacts) for more information.\n",
"```"
]
},
Expand Down
24 changes: 22 additions & 2 deletions neuroplatform-docs/np_core/faq.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,7 @@
"````{margin}\n",
"```{seealso}\n",
"[Stimulation does not elicit any response from the organoid](faq:low-response)\n",
"[How are spike events obtained ? Why is the minimal inter-spike interval always 3ms ?](faq:spike-events)\n",
"```\n",
"````\n",
"\n",
Expand All @@ -148,15 +149,15 @@
"\n",
"A spiking rate of up to 1500 per minute is still normal (especially in the presence of bursts), but an order of magnitude more would indicate an issue with the event threshold.\n",
"\n",
"For instance, during a burst event, the voltage will nearly always be above the threshold, which will result in an artificial event every 3ms during the burst. However, this will show as a single event in the database, not as multiple events.\n",
"\n",
"For instance, during a burst event, the voltage will nearly always be above the threshold, which will result in an artificial event every 3ms during the burst. However, the many spikes that occur will be merged under several events of 3ms duration.\n",
"Feel free to ask if you have further doubts regarding the activity of a channel. \n",
"\n",
"```{tip}\n",
"Make sure to reset the variable threshold to True whenever you start or finish an experiment.<br>\n",
"See the [relevant API section](np-core:variance-threshold).\n",
"```\n",
"\n",
"(faq:stimulation)=\n",
"### Stimulation and parameters\n",
"\n",
"#### I am unsure about triggers/parameters, and how I can parallelize my experiments or dynamically change parameters\n",
Expand Down Expand Up @@ -230,8 +231,27 @@
"- Neurons require resources to fire, so fatigue may eventually occur after repeated stimulations. Use a higher delay between stimulations (1-10s) to avoid this issue.\n",
"- If all else is ineffective, please contact us so we can change the organoids.\n",
"\n",
"(faq:database)=\n",
"### Database and experiment tokens\n",
"\n",
"(faq:spike-events)=\n",
"#### How are spike events obtained ? Why is the minimal inter-spike interval always 3ms ?\n",
"\n",
"````{margin}\n",
"```{seealso}\n",
"[How to differentiate between noise and activity?](faq:noise-vs-events)\n",
"```\t\n",
"````\n",
"\n",
"Events are recorded whenever the voltage crosses the event threshold of $6\\sigma$. This means that whenever the voltage crosses the threshold, an event is recorded for 3ms.\n",
"As such, several spikes may be merged under several events, especially during bursts.\n",
"\n",
"```{caution}\n",
"By default, the threshold is **dynamic**, which means it is computed based on the standard deviation of the noise at a certain time interval.<br>\n",
"During bursts or stimulation, this standard deviation may increase, which will overall lower the amount of events recorded.<br>\n",
"See [Variable threshold](np-core:variance-threshold) for more information.\n",
"```\n",
"\n",
"#### I do not have an Experiment token, or it is no longer valid\n",
"\n",
"Please contact us.\n",
Expand Down
7 changes: 5 additions & 2 deletions neuroplatform-docs/np_core/np_usage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"```{seealso}\n",
":class: dropdown\n",
"- [StimParamLoader](../np_utils/stimparamloader) : Utility to help you manage, preview and load stimulation parameters.\n",
"- [Stimulation FAQ](faq:stimulation) : Frequently asked questions and troubleshooting tips for stimulation.\n",
"```\n"
]
},
Expand Down Expand Up @@ -606,10 +607,12 @@
"\n",
"You can set the threshold for spike events to be fixed, which means it will be constant throughout the experiment.\n",
"\n",
"As mentioned earlier, the threshold is six times the standard deviation of the noise. This is recomputed when the variance threshold is enabled.\n",
"As mentioned earlier, the threshold is six times the standard deviation of the noise. This is recomputed when the variable threshold is enabled.\n",
"\n",
"During bursts or stimulation, this standard deviation may increase, which will overall lower the amount of events recorded.\n",
"\n",
"```{caution}\n",
"**ALWAYS** set back the variance threshold to **enabled** after finishing your experiment.\n",
"**ALWAYS** set back the variable threshold to **enabled** after finishing your experiment.\n",
"```\n",
"\n",
"If you need to set a fixed threshold, for example to account for a drift in the noise or activity, you can use:"
Expand Down