Skip to content

Instantly share code, notes, and snippets.

@rossant
Created February 14, 2015 15:54
Show Gist options
  • Save rossant/7155ac96c80cdd5401fa to your computer and use it in GitHub Desktop.
Save rossant/7155ac96c80cdd5401fa to your computer and use it in GitHub Desktop.
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"from phy.cluster import klusta"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"The PRM key-value pairs could be put directly here or could also be loaded from a text file."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"EXPERIMENT_NAME = 'myexperiment'\n",
"RAW_DATA_FILES = ['n6mab041109blahblah1.dat', 'n6mab041109blahblah2.dat']\n",
"PRB_FILE = 'buzsaki32.probe'\n",
"NCHANNELS = 32\n",
"SAMPLE_RATE = 20000.\n",
"NBITS = 16\n",
"VOLTAGE_GAIN = 10.\n",
"WAVEFORMS_NSAMPLES = 20\n",
"NFEATURES_PER_CHANNEL = 3\n",
"# ..."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Run SD2/KK using the parameters given above. We could also have `spikedetekt2()` and `klustakwik()` functions."
]
},
{
"cell_type": "code",
"execution_count": 5,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"klusta()"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Now we can launch the manual sorting web app."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"manual_sorting()"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"language": "python",
"name": "python3"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.4.2"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment