Skip to content

Commit

Permalink
Added shank information to phy export
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobpennington committed Aug 7, 2024
1 parent af39662 commit 5a1e630
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions kilosort/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ def save_to_phy(st, clu, tF, Wall, probe, ops, imin, results_dir=None,
channel_positions.npy : shape (n_channels,2)
Same as probe['xc'] and probe['yc'], but combined in a single array.
Indicates x- and y- positions (in microns) of probe contacts.
channel_shanks.npy : shape (n_channels,)
Indicates shank index for each channel on the probe.
cluster_Amplitude.tsv : shape (n_templates,)
Per-template amplitudes, computed as the L2 norm of the template.
cluster_ContamPct.tsv : shape (n_templates,)
Expand Down Expand Up @@ -346,6 +348,7 @@ def save_to_phy(st, clu, tF, Wall, probe, ops, imin, results_dir=None,
channel_positions = np.stack((probe['xc'], probe['yc']), axis=-1)
np.save((results_dir / 'channel_map.npy'), chan_map)
np.save((results_dir / 'channel_positions.npy'), channel_positions)
np.save((results_dir / 'channel_shanks.npy'), probe['kcoords'])

# whitening matrix
whitening_mat = ops['Wrot']
Expand Down

0 comments on commit 5a1e630

Please sign in to comment.