Sorts multichannel arf data. Uses the klusta* suite.
For each program, try --help
to see options
- collect data using Intan's RHD2000 interface software, which creates *.rhd files in a single directory.
- use
rhd2arf.m
(Matlab script) to create arf files. code You can run the script from the command line from within the *.rhd directory by typingmatlab -nodisplay -r "path(path, '~/code/rhd2arf');rhd2arf;exit"
- use
label_stim
to annotate arf file with stimulus times anddumber_sums.py
to get an estimate of stimulus response. - convert those arf files to .kwd (hdf5 format for klusta suite) with
arf2kwd.py
. - also create/use appropriate .prm and prb files (see klusta suite docs). and run
klusta EXPERIMENT.prm
- merge spikes back into the arf file with ...(TODO)
- run
arftodat.py
on .arf(s) - run
detectspikes.py
on generated .dat files - generate a clustering script with
gen_klusta_command.py
, then run the resulting script, which is very memory intensive and may take 1-2 days. - After clustering, use klustaviewer to review
- use
clutoarf.py
to create spike-sorted arf file for analysis!