Skip to content

Commit f5e12c3

Browse files
committed
demo script cleanup
1 parent 30ba4cf commit f5e12c3

File tree

4 files changed

+118
-4
lines changed

4 files changed

+118
-4
lines changed

py_bombcell/demos/BC_demo_open_ephys.ipynb

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,44 @@
252252
"pprint(param)"
253253
]
254254
},
255+
{
256+
"cell_type": "markdown",
257+
"metadata": {},
258+
"source": [
259+
"##### Optionally, customize parameters (more on this later, below)"
260+
]
261+
},
262+
{
263+
"cell_type": "code",
264+
"execution_count": null,
265+
"metadata": {},
266+
"outputs": [],
267+
"source": [
268+
"# you might to change:\n",
269+
"\n",
270+
"# 1. classification thresholds like: \n",
271+
"# param[\"maxRPVviolations\"] = 0.1\n",
272+
"\n",
273+
"\n",
274+
"# 2. or which quality metrics are computed (by default these are not): \n",
275+
"param[\"computeDistanceMetrics\"] = 0\n",
276+
"param[\"computeDrift\"] = 0\n",
277+
"param[\"splitGoodAndMua_NonSomatic\"] = 0\n",
278+
"\n",
279+
"\n",
280+
"# 3. how quality metricsa are calculated:\n",
281+
"# a. how refractory period window is defined\n",
282+
"param[\"tauR_valuesMin\"]= 0.5 / 1000 # minumum refractory period time (s), usually 0.002 s\n",
283+
"param[\"tauR_valuesMax\"]= 5 / 1000 # maximum refractory period time (s)\n",
284+
"param[\"tauR_valuesStep\"]= 0.5 / 1000 # if tauR_valuesMin and tauR_valuesMax are different, bombcell \n",
285+
"# will calculate refractory period violations from param[\"tauR_valuesMin\"] to param[\"tauR_valuesMax\"] param[\"tauR_valuesStep\"] \n",
286+
"# bins and determine the option window for each unit before calculating the violations. \n",
287+
" # tauR_valuesStep\n",
288+
"# b. or whether the recording is split into time chunks to detemrine \"good\" time chunks: \n",
289+
"# param[\"computeTimeChunks\"] = 0\n",
290+
"# full list in the wiki or in the bc.get_default_parameters function"
291+
]
292+
},
255293
{
256294
"cell_type": "code",
257295
"execution_count": 9,
@@ -393,7 +431,7 @@
393431
},
394432
{
395433
"cell_type": "code",
396-
"execution_count": 10,
434+
"execution_count": null,
397435
"metadata": {},
398436
"outputs": [
399437
{
@@ -801,7 +839,7 @@
801839
"# quality metric values\n",
802840
"quality_metrics_table = pd.DataFrame(quality_metrics)\n",
803841
"quality_metrics_table.insert(0, 'Bombcell_unit_type', unit_type_string)\n",
804-
"quality_metrics_table"
842+
"quality_metrics_table "
805843
]
806844
},
807845
{

py_bombcell/demos/BC_demo_spikeGLX.ipynb

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,44 @@
252252
"pprint(param)"
253253
]
254254
},
255+
{
256+
"cell_type": "markdown",
257+
"metadata": {},
258+
"source": [
259+
"##### Optionally, customize parameters (more on this later, below)"
260+
]
261+
},
262+
{
263+
"cell_type": "code",
264+
"execution_count": null,
265+
"metadata": {},
266+
"outputs": [],
267+
"source": [
268+
"# you might to change:\n",
269+
"\n",
270+
"# 1. classification thresholds like: \n",
271+
"# param[\"maxRPVviolations\"] = 0.1\n",
272+
"\n",
273+
"\n",
274+
"# 2. or which quality metrics are computed (by default these are not): \n",
275+
"param[\"computeDistanceMetrics\"] = 0\n",
276+
"param[\"computeDrift\"] = 0\n",
277+
"param[\"splitGoodAndMua_NonSomatic\"] = 0\n",
278+
"\n",
279+
"\n",
280+
"# 3. how quality metricsa are calculated:\n",
281+
"# a. how refractory period window is defined\n",
282+
"param[\"tauR_valuesMin\"]= 0.5 / 1000 # minumum refractory period time (s), usually 0.002 s\n",
283+
"param[\"tauR_valuesMax\"]= 5 / 1000 # maximum refractory period time (s)\n",
284+
"param[\"tauR_valuesStep\"]= 0.5 / 1000 # if tauR_valuesMin and tauR_valuesMax are different, bombcell \n",
285+
"# will calculate refractory period violations from param[\"tauR_valuesMin\"] to param[\"tauR_valuesMax\"] param[\"tauR_valuesStep\"] \n",
286+
"# bins and determine the option window for each unit before calculating the violations. \n",
287+
" # tauR_valuesStep\n",
288+
"# b. or whether the recording is split into time chunks to detemrine \"good\" time chunks: \n",
289+
"# param[\"computeTimeChunks\"] = 0\n",
290+
"# full list in the wiki or in the bc.get_default_parameters function"
291+
]
292+
},
255293
{
256294
"cell_type": "code",
257295
"execution_count": 9,

py_bombcell/demos/BC_demo_toy_data.ipynb

Lines changed: 39 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
},
156156
{
157157
"cell_type": "code",
158-
"execution_count": null,
158+
"execution_count": 4,
159159
"metadata": {},
160160
"outputs": [
161161
{
@@ -252,6 +252,44 @@
252252
"pprint(param)"
253253
]
254254
},
255+
{
256+
"cell_type": "markdown",
257+
"metadata": {},
258+
"source": [
259+
"##### Optionally, customize parameters (more on this later, below)"
260+
]
261+
},
262+
{
263+
"cell_type": "code",
264+
"execution_count": null,
265+
"metadata": {},
266+
"outputs": [],
267+
"source": [
268+
"# you might to change:\n",
269+
"\n",
270+
"# 1. classification thresholds like: \n",
271+
"# param[\"maxRPVviolations\"] = 0.1\n",
272+
"\n",
273+
"\n",
274+
"# 2. or which quality metrics are computed (by default these are not): \n",
275+
"param[\"computeDistanceMetrics\"] = 0\n",
276+
"param[\"computeDrift\"] = 0\n",
277+
"param[\"splitGoodAndMua_NonSomatic\"] = 0\n",
278+
"\n",
279+
"\n",
280+
"# 3. how quality metricsa are calculated:\n",
281+
"# a. how refractory period window is defined\n",
282+
"param[\"tauR_valuesMin\"]= 0.5 / 1000 # minumum refractory period time (s), usually 0.002 s\n",
283+
"param[\"tauR_valuesMax\"]= 5 / 1000 # maximum refractory period time (s)\n",
284+
"param[\"tauR_valuesStep\"]= 0.5 / 1000 # if tauR_valuesMin and tauR_valuesMax are different, bombcell \n",
285+
"# will calculate refractory period violations from param[\"tauR_valuesMin\"] to param[\"tauR_valuesMax\"] param[\"tauR_valuesStep\"] \n",
286+
"# bins and determine the option window for each unit before calculating the violations. \n",
287+
" # tauR_valuesStep\n",
288+
"# b. or whether the recording is split into time chunks to detemrine \"good\" time chunks: \n",
289+
"# param[\"computeTimeChunks\"] = 0\n",
290+
"# full list in the wiki or in the bc.get_default_parameters function"
291+
]
292+
},
255293
{
256294
"cell_type": "code",
257295
"execution_count": 5,

py_bombcell/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "bombcell"
7-
version = "0.69"
7+
version = "0.70"
88
description = "Python port of bombcell. Automated quality control, curation and neuron classification of spike-sorted electrophysiology data."
99
readme = "README.md"
1010
license = {text = "GPL-3.0"}

0 commit comments

Comments
 (0)