imported.py
ImportedSpikeSorting
¶
Bases: SpyglassMixin
, Imported
Source code in src/spyglass/spikesorting/imported.py
14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
make(key)
¶
Make without transaction
Allows populate_all_common to work within a single transaction.
Source code in src/spyglass/spikesorting/imported.py
get_recording(key)
classmethod
¶
Placeholder for merge table to call on all sources.
get_sorting(key)
classmethod
¶
Placeholder for merge table to call on all sources.
add_annotation(key, id, label=[], annotations={}, merge_annotations=False)
¶
Manually add annotations to the spike sorting output
Parameters:
Name | Type | Description | Default |
---|---|---|---|
key |
dict
|
restriction key for ImportedSpikeSorting |
required |
id |
int
|
unit id |
required |
label |
List[str]
|
list of str labels for the unit, by default None |
[]
|
annotations |
dict
|
dictionary of other annotation values for unit, by default None |
{}
|
merge_annotations |
bool
|
whether to merge with existing annotations, by default False |
False
|
Source code in src/spyglass/spikesorting/imported.py
make_df_from_annotations()
¶
Convert the annotations part table into a dataframe that can be concatenated to the spikes dataframe in the nwb file.
Source code in src/spyglass/spikesorting/imported.py
fetch_nwb(*attrs, **kwargs)
¶
class method to fetch the nwb and add annotations to the spike dfs returned