chongxi / spiketag

Next generation of spike sorting package for BMI
BSD 3-Clause "New" or "Revised" License
6 stars 4 forks source link

The electrode mapping format that co-used by Playground, Spiketag, Open-ephys GUI and spike-sorting consortium #11

Open chongxi opened 6 years ago

chongxi commented 6 years ago

Starting from group class:

grp = group(chs=[0,1,2,3])
grp.__shank__ = 0
grp.__group__ = 0
grp.pos = ...
grp.sort()

Then from group to shank

shk = shank(shank_id=0)
shk[0] = group(chs=[0,1,2,3]))
shk[0].pos = ...
shk[0].sort()

Then from shank to probe

prb = probe('bow_tie')
prb[0] = shk
prb[0]0].pos = ...
prb[0][0].sort()

To verify the probe geometry:

prb.show()

To save and load to co-used json format

prb.save(probe_file)
prb.load(probe_file)
chongxi commented 6 years ago

image

chongxi commented 6 years ago

bad_chs and mask_chs is important for disable those channels in FPGA by setting super high detection threshold.