utils.py
generate_nwb_uuid(nwb_file_name, initial, len_uuid=6)
¶
Generates a unique identifier related to an NWB file.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
nwb_file_name |
str
|
description |
required |
initial |
str
|
R if recording; A if artifact; S if sorting etc |
required |
len_uuid |
int
|
how many digits of uuid4 to keep |
6
|
Source code in src/spyglass/spikesorting/v1/utils.py
get_spiking_sorting_v1_merge_ids(restriction)
¶
Parses the SpikingSorting V1 pipeline to get a list of merge ids for a given restriction.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
restriction |
dict
|
A dictionary containing some or all of the following key-value pairs: nwb_file_name : str name of the nwb file interval_list_name : str name of the interval list sort_group_name : str name of the sort group artifact_param_name : str name of the artifact parameter curation_id : int, optional id of the curation (if not specified, uses the latest curation) |
required |
Returns:
Name | Type | Description |
---|---|---|
merge_id_list |
list
|
list of merge ids for the given restriction |