Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: SpikeInterface/spikeinterface
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 3fa34607d8d8aa018227dba0034fdce17d75f21c
Choose a base ref
..
head repository: SpikeInterface/spikeinterface
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 536c267d6125a97d62001c5c362b3fc126add31e
Choose a head ref
Showing with 6 additions and 6 deletions.
  1. +6 −6 src/spikeinterface/working/load_kilosort_utils.py
12 changes: 6 additions & 6 deletions src/spikeinterface/working/load_kilosort_utils.py
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ def compute_spike_amplitude_and_depth(
"""
Compute the indicies, amplitudes and locations for all detected spikes from the kilosort output.
This function is based on code in Nick Steinmetz's `spikes` repository,
This function is based on code in Cortex Lab's's `spikes` repository,
https://github.com/cortex-lab/spikes
Parameters
@@ -124,7 +124,7 @@ def _get_locations_from_pc_features(params):
decompoisition is performed to compute c basis waveforms. Scores for each
channel onto the top three PCs are stored (these recover the waveform well.
This function is based on code in Nick Steinmetz's `spikes` repository,
This function is based on code in Cortex Lab's `spikes` repository,
https://github.com/cortex-lab/spikes
"""
pc_features = params["pc_features"][:, 0, :].copy()
@@ -172,7 +172,7 @@ def get_unwhite_template_info(
Amplitude is calculated for each spike as the template amplitude
multiplied by the `template_scaling_amplitudes`.
This function is based on code in Nick Steinmetz's `spikes` repository,
This function is based on code in Cortex Lab's `spikes` repository,
https://github.com/cortex-lab/spikes
Parameters
@@ -250,7 +250,7 @@ def compute_template_amplitudes_from_spikes(templates, spike_templates, spike_am
Take the average of all spike amplitudes to get actual template amplitudes
(since tempScalingAmps are equal mean for all templates)
This function is ported from Nick Steinmetz's `spikes` repository,
This function is ported from Cortex Lab's `spikes` repository,
https://github.com/cortex-lab/spikes
"""
num_indices = templates.shape[0]
@@ -270,7 +270,7 @@ def load_ks_dir(sorter_output: Path, exclude_noise: bool = True, load_pcs: bool
"""
Loads the output of Kilosort into a `params` dict.
This function was ported from Nick Steinmetz's `spikes` repository MATLAB
This function was ported from Cortex Lab's `spikes` repository MATLAB
code, https://github.com/cortex-lab/spikes
Parameters
@@ -383,7 +383,7 @@ def _load_cluster_groups(cluster_path: Path) -> tuple[np.ndarray, ...]:
There is some slight formatting differences between the `.tsv` and `.csv`
versions, presumably from different kilosort versions.
This function was ported from Nick Steinmetz's `spikes` repository MATLAB code,
This function was ported from Cortex Lab's `spikes` repository MATLAB code,
https://github.com/cortex-lab/spikes
Parameters