From 8856f19f2705fa7f6cd59bf63f1f580bdbbe17db Mon Sep 17 00:00:00 2001 From: Eric Denovellis Date: Wed, 31 Jan 2024 09:48:25 -0800 Subject: [PATCH] Update 51_MUA_Detection.ipynb --- notebooks/51_MUA_Detection.ipynb | 1138 ++++++++++++++++++++-- notebooks/py_scripts/51_MUA_Detection.py | 48 +- 2 files changed, 1098 insertions(+), 88 deletions(-) diff --git a/notebooks/51_MUA_Detection.ipynb b/notebooks/51_MUA_Detection.ipynb index 807ccd9d9..e8e51f66d 100644 --- a/notebooks/51_MUA_Detection.ipynb +++ b/notebooks/51_MUA_Detection.ipynb @@ -32,9 +32,9 @@ "name": "stderr", "output_type": "stream", "text": [ - "[2024-01-29 10:36:58,134][INFO]: Connecting root@localhost:3306\n", - "[2024-01-29 10:36:58,205][INFO]: Connected root@localhost:3306\n", - "[10:36:59][WARNING] Spyglass: Please update position_tools to >= 0.1.0\n" + "[2024-01-29 13:51:25,319][INFO]: Connecting root@localhost:3306\n", + "[2024-01-29 13:51:25,405][INFO]: Connected root@localhost:3306\n", + "[13:51:26][WARNING] Spyglass: Please update position_tools to >= 0.1.0\n" ] }, { @@ -666,7 +666,7 @@ } ], "source": [ - "from spyglass.spikesorting.analysis.v1.group import SortedSpikesGroup\n", + "from spyglass.spikesorting.unit_inclusion_merge import SortedSpikesGroup\n", "\n", "unit_inclusion_merge_ids = (\n", " UnitInclusionOutput.ImportedUnitInclusionV1\n", @@ -834,29 +834,29 @@ "name": "stderr", "output_type": "stream", "text": [ - "[2024-01-29 10:37:03,344][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", - "[2024-01-29 10:37:03,720][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", - "[2024-01-29 10:37:04,075][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", - "[2024-01-29 10:37:04,418][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", - "[2024-01-29 10:37:04,768][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", - "[2024-01-29 10:37:05,106][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", - "[2024-01-29 10:37:05,475][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", - "[2024-01-29 10:37:05,830][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", - "[2024-01-29 10:37:06,162][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", - "[2024-01-29 10:37:06,508][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", - "[2024-01-29 10:37:06,907][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", - "[2024-01-29 10:37:07,243][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", - "[2024-01-29 10:37:07,589][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", - "[2024-01-29 10:37:07,940][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", - "[2024-01-29 10:37:08,299][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", - "[2024-01-29 10:37:08,654][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", - "[2024-01-29 10:37:09,032][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", - "[2024-01-29 10:37:09,387][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", - "[2024-01-29 10:37:09,744][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", - "[2024-01-29 10:37:10,108][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", - "[2024-01-29 10:37:10,490][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", - "[2024-01-29 10:37:10,862][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", - "[2024-01-29 10:37:11,237][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" + "[2024-01-29 13:51:31,631][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", + "[2024-01-29 13:51:32,089][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", + "[2024-01-29 13:51:32,499][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", + "[2024-01-29 13:51:32,924][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", + "[2024-01-29 13:51:33,306][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", + "[2024-01-29 13:51:33,741][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", + "[2024-01-29 13:51:34,202][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", + "[2024-01-29 13:51:34,735][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", + "[2024-01-29 13:51:35,159][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", + "[2024-01-29 13:51:35,536][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", + "[2024-01-29 13:51:35,889][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", + "[2024-01-29 13:51:36,277][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", + "[2024-01-29 13:51:36,679][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", + "[2024-01-29 13:51:37,056][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", + "[2024-01-29 13:51:37,738][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", + "[2024-01-29 13:51:38,180][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", + "[2024-01-29 13:51:38,798][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", + "[2024-01-29 13:51:39,249][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", + "[2024-01-29 13:51:39,931][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", + "[2024-01-29 13:51:40,547][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", + "[2024-01-29 13:51:40,963][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", + "[2024-01-29 13:51:41,407][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", + "[2024-01-29 13:51:41,819][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" ] }, { @@ -885,8 +885,8 @@ "name": "stderr", "output_type": "stream", "text": [ - "[10:37:11][WARNING] Spyglass: Upsampled position data, frame indices are invalid. Setting add_frame_ind=False\n", - "[2024-01-29 10:37:11,578][WARNING]: Skipped checksum for file with hash: 0cd40383-03e0-44ec-5dac-36c66063796a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_FUSH604NQA.nwb\n" + "[13:51:42][WARNING] Spyglass: Upsampled position data, frame indices are invalid. Setting add_frame_ind=False\n", + "[2024-01-29 13:51:42,217][WARNING]: Skipped checksum for file with hash: 0cd40383-03e0-44ec-5dac-36c66063796a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_FUSH604NQA.nwb\n" ] }, { @@ -1098,29 +1098,29 @@ "name": "stderr", "output_type": "stream", "text": [ - "[2024-01-29 10:37:11,995][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", - "[2024-01-29 10:37:12,247][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", - "[2024-01-29 10:37:12,562][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", - "[2024-01-29 10:37:12,897][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", - "[2024-01-29 10:37:13,206][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", - "[2024-01-29 10:37:13,550][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", - "[2024-01-29 10:37:13,857][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", - "[2024-01-29 10:37:14,195][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", - "[2024-01-29 10:37:14,444][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", - "[2024-01-29 10:37:14,705][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", - "[2024-01-29 10:37:14,958][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", - "[2024-01-29 10:37:15,213][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", - "[2024-01-29 10:37:15,510][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", - "[2024-01-29 10:37:15,830][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", - "[2024-01-29 10:37:16,166][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", - "[2024-01-29 10:37:16,431][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", - "[2024-01-29 10:37:16,699][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", - "[2024-01-29 10:37:16,974][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", - "[2024-01-29 10:37:17,236][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", - "[2024-01-29 10:37:17,521][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", - "[2024-01-29 10:37:17,788][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", - "[2024-01-29 10:37:18,075][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", - "[2024-01-29 10:37:18,406][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" + "[2024-01-29 13:51:42,682][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", + "[2024-01-29 13:51:43,058][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", + "[2024-01-29 13:51:43,392][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", + "[2024-01-29 13:51:43,770][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", + "[2024-01-29 13:51:44,190][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", + "[2024-01-29 13:51:44,536][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", + "[2024-01-29 13:51:44,845][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", + "[2024-01-29 13:51:45,223][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", + "[2024-01-29 13:51:45,600][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", + "[2024-01-29 13:51:45,991][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", + "[2024-01-29 13:51:46,369][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", + "[2024-01-29 13:51:46,765][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", + "[2024-01-29 13:51:47,172][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", + "[2024-01-29 13:51:47,527][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", + "[2024-01-29 13:51:47,895][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", + "[2024-01-29 13:51:48,301][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", + "[2024-01-29 13:51:48,671][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", + "[2024-01-29 13:51:49,020][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", + "[2024-01-29 13:51:49,400][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", + "[2024-01-29 13:51:49,798][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", + "[2024-01-29 13:51:50,175][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", + "[2024-01-29 13:51:50,560][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", + "[2024-01-29 13:51:50,963][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" ] }, { @@ -1156,29 +1156,29 @@ "name": "stderr", "output_type": "stream", "text": [ - "[2024-01-29 10:37:18,728][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", - "[2024-01-29 10:37:18,988][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", - "[2024-01-29 10:37:19,276][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", - "[2024-01-29 10:37:19,587][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", - "[2024-01-29 10:37:19,874][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", - "[2024-01-29 10:37:20,186][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", - "[2024-01-29 10:37:20,495][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", - "[2024-01-29 10:37:20,796][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", - "[2024-01-29 10:37:21,083][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", - "[2024-01-29 10:37:21,348][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", - "[2024-01-29 10:37:21,755][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", - "[2024-01-29 10:37:22,072][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", - "[2024-01-29 10:37:22,332][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", - "[2024-01-29 10:37:22,655][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", - "[2024-01-29 10:37:22,961][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", - "[2024-01-29 10:37:23,284][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", - "[2024-01-29 10:37:23,599][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", - "[2024-01-29 10:37:23,899][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", - "[2024-01-29 10:37:24,196][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", - "[2024-01-29 10:37:24,490][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", - "[2024-01-29 10:37:24,785][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", - "[2024-01-29 10:37:25,096][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", - "[2024-01-29 10:37:25,388][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" + "[2024-01-29 13:51:51,323][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", + "[2024-01-29 13:51:51,656][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", + "[2024-01-29 13:51:52,034][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", + "[2024-01-29 13:51:52,374][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", + "[2024-01-29 13:51:52,694][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", + "[2024-01-29 13:51:53,025][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", + "[2024-01-29 13:51:53,389][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", + "[2024-01-29 13:51:53,744][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", + "[2024-01-29 13:51:54,114][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", + "[2024-01-29 13:51:54,482][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", + "[2024-01-29 13:51:54,884][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", + "[2024-01-29 13:51:55,251][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", + "[2024-01-29 13:51:55,600][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", + "[2024-01-29 13:51:55,989][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", + "[2024-01-29 13:51:56,379][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", + "[2024-01-29 13:51:56,740][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", + "[2024-01-29 13:51:57,159][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", + "[2024-01-29 13:51:57,506][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", + "[2024-01-29 13:51:57,880][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", + "[2024-01-29 13:51:58,241][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", + "[2024-01-29 13:51:58,599][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", + "[2024-01-29 13:51:58,991][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", + "[2024-01-29 13:51:59,349][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n" ] }, { @@ -1312,7 +1312,7 @@ } ], "source": [ - "from spyglass.spikesorting.analysis.v1.mua import MuaEventsParameters, MuaEventsV1\n", + "from spyglass.mua.v1.mua import MuaEventsParameters, MuaEventsV1\n", "\n", "MuaEventsParameters().insert_default()\n", "MuaEventsParameters()" @@ -1322,13 +1322,51 @@ "cell_type": "code", "execution_count": 13, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stderr", + "output_type": "stream", + "text": [ + "[13:51:59][WARNING] Spyglass: Upsampled position data, frame indices are invalid. Setting add_frame_ind=False\n", + "[2024-01-29 13:52:00,002][WARNING]: Skipped checksum for file with hash: 0cd40383-03e0-44ec-5dac-36c66063796a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_FUSH604NQA.nwb\n", + "[2024-01-29 13:52:00,421][WARNING]: Skipped checksum for file with hash: 148d9058-e6dc-e959-4c4d-75db9aa0b6e4, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_EF6N6XI3AH.nwb\n", + "[2024-01-29 13:52:00,785][WARNING]: Skipped checksum for file with hash: b4b6404f-aaf8-c4cc-9abe-ceea56e103f3, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_O7ZZ0F1XN7.nwb\n", + "[2024-01-29 13:52:01,131][WARNING]: Skipped checksum for file with hash: 4357905c-c6b9-3990-4d62-740a54cfc667, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_X84BYVM2B0.nwb\n", + "[2024-01-29 13:52:01,498][WARNING]: Skipped checksum for file with hash: ff81d274-17f7-702d-a2b4-92ac43c29316, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_Y2YF504C5D.nwb\n", + "[2024-01-29 13:52:01,888][WARNING]: Skipped checksum for file with hash: 8993754e-7dbe-94a1-403d-8c55aa9c6c42, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JN4A4GSLZB.nwb\n", + "[2024-01-29 13:52:02,230][WARNING]: Skipped checksum for file with hash: 7d05460d-7366-27c9-2ba7-de2ad5d402f2, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_4JXWFJ3JRI.nwb\n", + "[2024-01-29 13:52:02,608][WARNING]: Skipped checksum for file with hash: 6629fd95-636a-4ad4-c9af-cee507de2130, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AMBBKQ9RIY.nwb\n", + "[2024-01-29 13:52:02,984][WARNING]: Skipped checksum for file with hash: fa76d419-77a4-697a-325d-5c2ddbe517f9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0R6AWXMC6G.nwb\n", + "[2024-01-29 13:52:03,365][WARNING]: Skipped checksum for file with hash: f64f34ee-e72d-e566-a048-65f2ea31708a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_USMRXAAV8I.nwb\n", + "[2024-01-29 13:52:03,762][WARNING]: Skipped checksum for file with hash: e282a8e5-844b-20f6-345c-cded12e761a9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_DUNM1TZUGR.nwb\n", + "[2024-01-29 13:52:04,194][WARNING]: Skipped checksum for file with hash: d740eb7d-ce29-e140-06a2-c56655e0842a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L92EE1VRPB.nwb\n", + "[2024-01-29 13:52:04,662][WARNING]: Skipped checksum for file with hash: e43f95ff-9779-b980-00a3-99e104864462, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_AKOI7OTASI.nwb\n", + "[2024-01-29 13:52:05,074][WARNING]: Skipped checksum for file with hash: 6d04cbdb-e1e4-f44f-7274-0e1ab0356d75, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_W1MLF0Q86S.nwb\n", + "[2024-01-29 13:52:05,558][WARNING]: Skipped checksum for file with hash: 9e24661c-b021-6ad4-f224-89e331334f18, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_T2DBO3EMZ8.nwb\n", + "[2024-01-29 13:52:05,938][WARNING]: Skipped checksum for file with hash: 1f386cd3-89da-0233-03ff-76ba94e91a3a, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_TX2ZX3DAP4.nwb\n", + "[2024-01-29 13:52:06,285][WARNING]: Skipped checksum for file with hash: fde8b240-6adc-86f0-6391-f3f6fad72ee9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_HWU3E4EKP4.nwb\n", + "[2024-01-29 13:52:06,641][WARNING]: Skipped checksum for file with hash: 6d13e338-41bd-b011-beb5-4de53d9d467b, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_JA2OA12RPN.nwb\n", + "[2024-01-29 13:52:07,019][WARNING]: Skipped checksum for file with hash: c202eb9e-ca43-0a72-4086-57a5bb6eb937, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_5TY04H3B5T.nwb\n", + "[2024-01-29 13:52:07,412][WARNING]: Skipped checksum for file with hash: 26f7bdc7-da8d-6ad5-3f4a-554ceb48755e, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0TKF5589B7.nwb\n", + "[2024-01-29 13:52:07,806][WARNING]: Skipped checksum for file with hash: 023c874f-8114-3ef6-7fcf-813844787d5f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_L7HDY9IDHO.nwb\n", + "[2024-01-29 13:52:08,189][WARNING]: Skipped checksum for file with hash: ce4cb0c3-3dd0-70fd-8ea0-98a8b84592d9, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_7UIA2ILMG6.nwb\n", + "[2024-01-29 13:52:08,553][WARNING]: Skipped checksum for file with hash: c592e63b-4db1-40be-632e-0180e6fa02d7, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_SGAU9PX7US.nwb\n", + "[2024-01-29 13:52:08,875][WARNING]: Skipped checksum for file with hash: 4c1103ac-eaca-b282-e5ff-aa2194e65a43, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_2R6VQ8EDL4.nwb\n", + "/Users/edeno/miniconda3/envs/spyglass/lib/python3.9/site-packages/pynwb/ecephys.py:90: UserWarning: ElectricalSeries 'e-series': The second dimension of data does not match the length of electrodes. Your data may be transposed.\n", + " warnings.warn(\"%s '%s': The second dimension of data does not match the length of electrodes. \"\n", + "/Users/edeno/miniconda3/envs/spyglass/lib/python3.9/site-packages/pynwb/base.py:193: UserWarning: TimeSeries 'analog': Length of data does not match length of timestamps. Your data may be transposed. Time should be on the 0th dimension\n", + " warn(\"%s '%s': Length of data does not match length of timestamps. Your data may be transposed. \"\n", + "[13:52:10][INFO] Spyglass: Writing new NWB file mediumnwb20230802_0ADLJ3W6MJ.nwb\n" + ] + } + ], "source": [ "selection_key = {\n", " \"mua_param_name\": \"default\",\n", " \"nwb_file_name\": nwb_copy_file_name,\n", " \"sorted_spikes_group_name\": \"test_group\",\n", " \"pos_merge_id\": position_merge_id,\n", + " \"artifact_interval_list_name\": \"test_artifact_times\",\n", "}\n", "\n", "MuaEventsV1.populate(selection_key)" @@ -1410,6 +1448,9 @@ "

pos_merge_id

\n", " \n", "
\n", + "

artifact_interval_list_name

\n", + " descriptive name of this interval list\n", + "
\n", "

analysis_file_name

\n", " name of the file\n", "
\n", @@ -1420,17 +1461,18 @@ "mediumnwb20230802_.nwb\n", "test_group\n", "6dfae23d-6034-e483-06e7-28ab4c29282f\n", - "mediumnwb20230802_MQU2DSMQL9.nwb\n", - "813cf5b3-1f1f-40ef-8c4a-47b75ebf09ab \n", + "test_artifact_times\n", + "mediumnwb20230802_0ADLJ3W6MJ.nwb\n", + "56d076f9-8751-4cec-b7b4-21a14058fcff \n", " \n", " \n", "

Total: 1

\n", " " ], "text/plain": [ - "*mua_param_nam *nwb_file_name *sorted_spikes *pos_merge_id analysis_file_ mua_times_obje\n", - "+------------+ +------------+ +------------+ +------------+ +------------+ +------------+\n", - "default mediumnwb20230 test_group 6dfae23d-6034- mediumnwb20230 813cf5b3-1f1f-\n", + "*mua_param_nam *nwb_file_name *sorted_spikes *pos_merge_id *artifact_inte analysis_file_ mua_times_obje\n", + "+------------+ +------------+ +------------+ +------------+ +------------+ +------------+ +------------+\n", + "default mediumnwb20230 test_group 6dfae23d-6034- test_artifact_ mediumnwb20230 56d076f9-8751-\n", " (Total: 1)" ] }, @@ -1452,7 +1494,7 @@ "name": "stderr", "output_type": "stream", "text": [ - "[2024-01-29 10:37:25,850][WARNING]: Skipped checksum for file with hash: ca5f2044-7f84-1ca9-a288-c208261ccb7f, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_MQU2DSMQL9.nwb\n" + "[2024-01-29 13:52:11,975][WARNING]: Skipped checksum for file with hash: 6b7e200d-7337-6c3e-ae61-b52ac7b9d6ca, and path: /Users/edeno/Documents/GitHub/spyglass/DATA/analysis/mediumnwb20230802/mediumnwb20230802_0ADLJ3W6MJ.nwb\n" ] }, { @@ -1804,6 +1846,936 @@ "axes[1].set_xlim((time[0], time[-1]))" ] }, + { + "cell_type": "code", + "execution_count": 17, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " Time intervals used for analysis\n", + "
\n", + " \n", + " \n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
\n", + "

nwb_file_name

\n", + " name of the NWB file\n", + "
\n", + "

interval_list_name

\n", + " descriptive name of this interval list\n", + "
\n", + "

valid_times

\n", + " numpy array with start/end times for each interval\n", + "
\n", + "

pipeline

\n", + " type of interval list (e.g. 'position', 'spikesorting_recording_v1')\n", + "
mediumnwb20230802_.nwb0e848c38-9105-4ea4-b6ba-dbdd5b46a088=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb0f91197e-bebb-4dc6-ad41-5bf89c3eed28=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb15c8a3e8-5ce9-4654-891e-6ee4109d6f1a=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb2b93bcd0-7b05-457c-8aab-c41ef543ecf2=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb2b9fbf14-74a0-4294-a805-26702340aac9=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb3a34ab35-eca6-406b-abab-c866a9f41fb9=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb3fecf0af-6ce7-474c-b933-9feb746993a0=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb45f6b9a1-eef3-46eb-866d-d0999afebda6=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb5c68f0f0-f577-4905-8a09-e4d171d0a22d=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb686d9951-1c0f-4d5e-9f5c-09e6fd8bdd4c=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb69f7d164-efc8-4621-b83c-77bc7459dbc2=BLOB=spikesorting_artifact_v1
mediumnwb20230802_.nwb719e8a86-fcf1-4ffc-8c1f-ea912f67ad5d=BLOB=spikesorting_artifact_v1
\n", + "

...

\n", + "

Total: 24

\n", + " " + ], + "text/plain": [ + "*nwb_file_name *interval_list valid_time pipeline \n", + "+------------+ +------------+ +--------+ +------------+\n", + "mediumnwb20230 0e848c38-9105- =BLOB= spikesorting_a\n", + "mediumnwb20230 0f91197e-bebb- =BLOB= spikesorting_a\n", + "mediumnwb20230 15c8a3e8-5ce9- =BLOB= spikesorting_a\n", + "mediumnwb20230 2b93bcd0-7b05- =BLOB= spikesorting_a\n", + "mediumnwb20230 2b9fbf14-74a0- =BLOB= spikesorting_a\n", + "mediumnwb20230 3a34ab35-eca6- =BLOB= spikesorting_a\n", + "mediumnwb20230 3fecf0af-6ce7- =BLOB= spikesorting_a\n", + "mediumnwb20230 45f6b9a1-eef3- =BLOB= spikesorting_a\n", + "mediumnwb20230 5c68f0f0-f577- =BLOB= spikesorting_a\n", + "mediumnwb20230 686d9951-1c0f- =BLOB= spikesorting_a\n", + "mediumnwb20230 69f7d164-efc8- =BLOB= spikesorting_a\n", + "mediumnwb20230 719e8a86-fcf1- =BLOB= spikesorting_a\n", + " ...\n", + " (Total: 24)" + ] + }, + "execution_count": 17, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "from spyglass.common import IntervalList\n", + "\n", + "IntervalList() & {\"nwb_file_name\": nwb_copy_file_name, \"pipeline\": \"spikesorting_artifact_v1\"}" + ] + }, + { + "cell_type": "code", + "execution_count": 18, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + " \n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
\n", + "

artifact_param_name

\n", + " \n", + "
\n", + "

recording_id

\n", + " \n", + "
\n", + "

artifact_id

\n", + " \n", + "
\n", + "

artifact_params

\n", + " \n", + "
\n", + "

analysis_file_name

\n", + " name of the file\n", + "
\n", + "

object_id

\n", + " Object ID for the processed recording in NWB file\n", + "
nonef1427e00-2974-4301-b2ac-b4dc29277c510e848c38-9105-4ea4-b6ba-dbdd5b46a088=BLOB=mediumnwb20230802_3BWJOEGAO1.nwb8366dcfd-bd90-470f-b08c-183bd44dcd1f
none3c40ebdc-0b61-4105-9971-e1348bd49bc70f91197e-bebb-4dc6-ad41-5bf89c3eed28=BLOB=mediumnwb20230802_85VG1GLTSR.nwb2d6e841c-4f98-42b7-9cbf-097fa8ba0766
none1e3f3707-613e-4a44-93f1-c7e5484112cd15c8a3e8-5ce9-4654-891e-6ee4109d6f1a=BLOB=mediumnwb20230802_H70AAE9UEI.nwb34550b0b-36c7-4dfb-b1ba-900fc9247da8
none72f70c5a-bc0f-46cb-b22f-33bafe2315df2b93bcd0-7b05-457c-8aab-c41ef543ecf2=BLOB=mediumnwb20230802_OFQSUAGB74.nwb3a1b3df6-fa85-4006-ab9b-4bff45680516
none3a2c3eed-413a-452a-83c8-0e4648141bde2b9fbf14-74a0-4294-a805-26702340aac9=BLOB=mediumnwb20230802_G0STLTBOSC.nwbec5170e0-277a-4626-9120-b24574eae650
noned14ae25a-2796-4203-ba0b-f28768536cbe3a34ab35-eca6-406b-abab-c866a9f41fb9=BLOB=mediumnwb20230802_IG73IGEYPA.nwba3406f7e-1137-4c34-8715-e0323d074153
none76ee4ab3-da3e-4a68-9159-635fbf5f8a043fecf0af-6ce7-474c-b933-9feb746993a0=BLOB=mediumnwb20230802_LFO7YW7IIA.nwbcfe309be-3748-4dc8-9c71-81bd5c1067b7
none449b64e3-db0b-437e-a1b9-0d29928aa2dd45f6b9a1-eef3-46eb-866d-d0999afebda6=BLOB=mediumnwb20230802_R19M5A499A.nwb68db8ac5-d008-4720-a3f8-162b0671313d
nonef07bc0b0-de6b-4424-8ef9-766213aaca265c68f0f0-f577-4905-8a09-e4d171d0a22d=BLOB=mediumnwb20230802_GF6Z0P5KYV.nwb80c14292-a179-4c0f-9ff9-79016038ce95
none328da21c-1d9c-41e2-9800-76b3484b707b686d9951-1c0f-4d5e-9f5c-09e6fd8bdd4c=BLOB=mediumnwb20230802_YSZXPEGP4X.nwb623a46f8-be44-434b-8aee-49155070f3f7
noneb81f1ed9-fb2e-4f5c-93d8-d9cc0f11887569f7d164-efc8-4621-b83c-77bc7459dbc2=BLOB=mediumnwb20230802_QBQBH0I2OO.nwb101d753a-72fb-47a4-8734-962f8ef4f477
noneaff78f2f-2ba0-412a-95cc-447c3a2f4683719e8a86-fcf1-4ffc-8c1f-ea912f67ad5d=BLOB=mediumnwb20230802_42H3PR863Y.nwb6c5f3cd0-903a-42b5-ad68-261789bfd1a8
\n", + "

...

\n", + "

Total: 24

\n", + " " + ], + "text/plain": [ + "*artifact_para *recording_id *artifact_id artifact_p analysis_file_ object_id \n", + "+------------+ +------------+ +------------+ +--------+ +------------+ +------------+\n", + "none f1427e00-2974- 0e848c38-9105- =BLOB= mediumnwb20230 8366dcfd-bd90-\n", + "none 3c40ebdc-0b61- 0f91197e-bebb- =BLOB= mediumnwb20230 2d6e841c-4f98-\n", + "none 1e3f3707-613e- 15c8a3e8-5ce9- =BLOB= mediumnwb20230 34550b0b-36c7-\n", + "none 72f70c5a-bc0f- 2b93bcd0-7b05- =BLOB= mediumnwb20230 3a1b3df6-fa85-\n", + "none 3a2c3eed-413a- 2b9fbf14-74a0- =BLOB= mediumnwb20230 ec5170e0-277a-\n", + "none d14ae25a-2796- 3a34ab35-eca6- =BLOB= mediumnwb20230 a3406f7e-1137-\n", + "none 76ee4ab3-da3e- 3fecf0af-6ce7- =BLOB= mediumnwb20230 cfe309be-3748-\n", + "none 449b64e3-db0b- 45f6b9a1-eef3- =BLOB= mediumnwb20230 68db8ac5-d008-\n", + "none f07bc0b0-de6b- 5c68f0f0-f577- =BLOB= mediumnwb20230 80c14292-a179-\n", + "none 328da21c-1d9c- 686d9951-1c0f- =BLOB= mediumnwb20230 623a46f8-be44-\n", + "none b81f1ed9-fb2e- 69f7d164-efc8- =BLOB= mediumnwb20230 101d753a-72fb-\n", + "none aff78f2f-2ba0- 719e8a86-fcf1- =BLOB= mediumnwb20230 6c5f3cd0-903a-\n", + " ...\n", + " (Total: 24)" + ] + }, + "execution_count": 18, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "(sgs.ArtifactDetectionParameters\n", + "* sgs.SpikeSortingRecording\n", + "* sgs.ArtifactDetectionSelection)" + ] + }, + { + "cell_type": "code", + "execution_count": 29, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + " \n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
\n", + "

merge_id

\n", + " \n", + "
\n", + "

artifact_param_name

\n", + " \n", + "
\n", + "

recording_id

\n", + " \n", + "
\n", + "

artifact_id

\n", + " \n", + "
\n", + "

sorting_id

\n", + " \n", + "
\n", + "

curation_id

\n", + " \n", + "
\n", + "

artifact_params

\n", + " \n", + "
\n", + "

analysis_file_name

\n", + " name of the file\n", + "
\n", + "

object_id

\n", + " Object ID for the processed recording in NWB file\n", + "
485a4ddf-332d-35b5-3ad4-0561736c1844nonef15351b3-d8e9-49a1-a306-4f366f1ee535a5470cef-fc31-4723-9e1b-a024e73ef3b108a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_JVBY43AQFF.nwbf639dd9a-fc4f-483e-a9c5-f487ecd11292
485a4ddf-332d-35b5-3ad4-0561736c1844nonef1427e00-2974-4301-b2ac-b4dc29277c510e848c38-9105-4ea4-b6ba-dbdd5b46a08808a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_3BWJOEGAO1.nwb8366dcfd-bd90-470f-b08c-183bd44dcd1f
485a4ddf-332d-35b5-3ad4-0561736c1844nonef07bc0b0-de6b-4424-8ef9-766213aaca265c68f0f0-f577-4905-8a09-e4d171d0a22d08a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_GF6Z0P5KYV.nwb80c14292-a179-4c0f-9ff9-79016038ce95
485a4ddf-332d-35b5-3ad4-0561736c1844nonee59e77e9-dd41-4f58-a75b-17271b78c0d88cc7a814-8e4a-4b87-ae71-80ca1f5771b108a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_8SB3X7Y9YA.nwbc880110b-1dbf-4cc1-99ff-3766ade81fed
485a4ddf-332d-35b5-3ad4-0561736c1844noned14ae25a-2796-4203-ba0b-f28768536cbe3a34ab35-eca6-406b-abab-c866a9f41fb908a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_IG73IGEYPA.nwba3406f7e-1137-4c34-8715-e0323d074153
485a4ddf-332d-35b5-3ad4-0561736c1844noneb81f1ed9-fb2e-4f5c-93d8-d9cc0f11887569f7d164-efc8-4621-b83c-77bc7459dbc208a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_QBQBH0I2OO.nwb101d753a-72fb-47a4-8734-962f8ef4f477
485a4ddf-332d-35b5-3ad4-0561736c1844noneaff78f2f-2ba0-412a-95cc-447c3a2f4683719e8a86-fcf1-4ffc-8c1f-ea912f67ad5d08a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_42H3PR863Y.nwb6c5f3cd0-903a-42b5-ad68-261789bfd1a8
485a4ddf-332d-35b5-3ad4-0561736c1844nonea9b7cec0-1256-49cf-abf0-8c45fd15537974270cba-36ee-4afb-ab50-2a6cc948e68c08a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_5GUFKQ59T6.nwb498d52a8-47d1-41c2-bd45-2ac796fce4cd
485a4ddf-332d-35b5-3ad4-0561736c1844nonea3f5b9e7-7c79-4eb4-b5ed-910191c615c2f9cc9158-bea2-4de2-811d-1fb895c048a908a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_OQZ8C41NHS.nwbd49e9245-149c-4725-bd0f-d69b78e0a33a
485a4ddf-332d-35b5-3ad4-0561736c1844none9e332d82-1daf-4e92-bb50-12e4f94308759ed11db5-c42e-491a-8caf-7d9a37a65f1308a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_30PFKCH9HH.nwba45a4c86-d748-48f8-b406-4da381a74737
485a4ddf-332d-35b5-3ad4-0561736c1844none7f128981-6868-4976-ba20-248655dcac21f4b9301f-bc91-455b-9474-c801093f385608a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_F9B938GB2N.nwbb06a3ec5-17a2-49a3-bd7f-475cb07081a0
485a4ddf-332d-35b5-3ad4-0561736c1844none7cc37209-7c28-443d-8f65-d8b01ca49a9af8650c19-8964-44ea-bd87-0245f1d2f93408a302b6-5505-40fa-b4d5-62162f8eef580=BLOB=mediumnwb20230802_XAQMO7WRC5.nwb38522acb-ba02-4fe1-b715-3c7485cca749
\n", + "

...

\n", + "

Total: 552

\n", + " " + ], + "text/plain": [ + "*merge_id *artifact_para *recording_id *artifact_id sorting_id curation_id artifact_p analysis_file_ object_id \n", + "+------------+ +------------+ +------------+ +------------+ +------------+ +------------+ +--------+ +------------+ +------------+\n", + "485a4ddf-332d- none f15351b3-d8e9- a5470cef-fc31- 08a302b6-5505- 0 =BLOB= mediumnwb20230 f639dd9a-fc4f-\n", + "485a4ddf-332d- none f1427e00-2974- 0e848c38-9105- 08a302b6-5505- 0 =BLOB= mediumnwb20230 8366dcfd-bd90-\n", + "485a4ddf-332d- none f07bc0b0-de6b- 5c68f0f0-f577- 08a302b6-5505- 0 =BLOB= mediumnwb20230 80c14292-a179-\n", + "485a4ddf-332d- none e59e77e9-dd41- 8cc7a814-8e4a- 08a302b6-5505- 0 =BLOB= mediumnwb20230 c880110b-1dbf-\n", + "485a4ddf-332d- none d14ae25a-2796- 3a34ab35-eca6- 08a302b6-5505- 0 =BLOB= mediumnwb20230 a3406f7e-1137-\n", + "485a4ddf-332d- none b81f1ed9-fb2e- 69f7d164-efc8- 08a302b6-5505- 0 =BLOB= mediumnwb20230 101d753a-72fb-\n", + "485a4ddf-332d- none aff78f2f-2ba0- 719e8a86-fcf1- 08a302b6-5505- 0 =BLOB= mediumnwb20230 6c5f3cd0-903a-\n", + "485a4ddf-332d- none a9b7cec0-1256- 74270cba-36ee- 08a302b6-5505- 0 =BLOB= mediumnwb20230 498d52a8-47d1-\n", + "485a4ddf-332d- none a3f5b9e7-7c79- f9cc9158-bea2- 08a302b6-5505- 0 =BLOB= mediumnwb20230 d49e9245-149c-\n", + "485a4ddf-332d- none 9e332d82-1daf- 9ed11db5-c42e- 08a302b6-5505- 0 =BLOB= mediumnwb20230 a45a4c86-d748-\n", + "485a4ddf-332d- none 7f128981-6868- f4b9301f-bc91- 08a302b6-5505- 0 =BLOB= mediumnwb20230 b06a3ec5-17a2-\n", + "485a4ddf-332d- none 7cc37209-7c28- f8650c19-8964- 08a302b6-5505- 0 =BLOB= mediumnwb20230 38522acb-ba02-\n", + " ...\n", + " (Total: 552)" + ] + }, + "execution_count": 29, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "SpikeSortingOutput.CurationV1() * (\n", + " sgs.ArtifactDetectionParameters\n", + " * sgs.SpikeSortingRecording\n", + " * sgs.ArtifactDetectionSelection\n", + ")" + ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [ + "(\n", + " IntervalList()\n", + " & {\n", + " \"nwb_file_name\": nwb_copy_file_name,\n", + " \"pipeline\": \"spikesorting_artifact_v1\",\n", + " }\n", + ").proj(artifact_id=\"interval_list_name\")" + ] + }, + { + "cell_type": "code", + "execution_count": 20, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + " \n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
\n", + "

recording_id

\n", + " \n", + "
\n", + "

artifact_id

\n", + " \n", + "
\n", + "

analysis_file_name

\n", + " name of the file\n", + "
\n", + "

object_id

\n", + " Object ID for the processed recording in NWB file\n", + "
\n", + "

artifact_param_name

\n", + " \n", + "
04f3ecb4-a18c-4ffb-85d8-2f5f62d4d6d47a93bd27-5108-4290-89a2-2f8770664b35mediumnwb20230802_F7HG9E9J3I.nwb16bded49-3fc2-4e37-9ac6-385eec091740none
1d2b5966-415a-4c65-955a-0e422d8b5b00e4921df8-99b5-4f52-b3c2-988b9433e0cfmediumnwb20230802_C0I26JVUNV.nwba07a4fcc-ac84-4d07-a036-b32c7e2ceb28none
1e3f3707-613e-4a44-93f1-c7e5484112cd15c8a3e8-5ce9-4654-891e-6ee4109d6f1amediumnwb20230802_H70AAE9UEI.nwb34550b0b-36c7-4dfb-b1ba-900fc9247da8none
2402805a-04f9-4a88-9ccf-071376c8de19d581b117-160e-4311-b096-7781a4de4394mediumnwb20230802_5MEOIHZ5E5.nwbbf877f6e-5daf-4d70-ab23-fc2b7c132370none
24107d8c-ce26-4c77-8f6a-bf6955d8a3c7d1925dc7-e3b0-47ef-adbc-1af129b67048mediumnwb20230802_MKQ2TG5YZC.nwb7f55e942-7563-466a-ba56-b82ea5089be4none
257c077b-8f3b-4abb-a631-6b8084d6a1eae289e03d-32ad-461a-a1cc-c88537343149mediumnwb20230802_C2DEV7V2C6.nwbc19ca39e-50a4-4e87-a8e7-22ccf5979f27none
328da21c-1d9c-41e2-9800-76b3484b707b686d9951-1c0f-4d5e-9f5c-09e6fd8bdd4cmediumnwb20230802_YSZXPEGP4X.nwb623a46f8-be44-434b-8aee-49155070f3f7none
3a2c3eed-413a-452a-83c8-0e4648141bde2b9fbf14-74a0-4294-a805-26702340aac9mediumnwb20230802_G0STLTBOSC.nwbec5170e0-277a-4626-9120-b24574eae650none
3c40ebdc-0b61-4105-9971-e1348bd49bc70f91197e-bebb-4dc6-ad41-5bf89c3eed28mediumnwb20230802_85VG1GLTSR.nwb2d6e841c-4f98-42b7-9cbf-097fa8ba0766none
449b64e3-db0b-437e-a1b9-0d29928aa2dd45f6b9a1-eef3-46eb-866d-d0999afebda6mediumnwb20230802_R19M5A499A.nwb68db8ac5-d008-4720-a3f8-162b0671313dnone
72f70c5a-bc0f-46cb-b22f-33bafe2315df2b93bcd0-7b05-457c-8aab-c41ef543ecf2mediumnwb20230802_OFQSUAGB74.nwb3a1b3df6-fa85-4006-ab9b-4bff45680516none
76ee4ab3-da3e-4a68-9159-635fbf5f8a043fecf0af-6ce7-474c-b933-9feb746993a0mediumnwb20230802_LFO7YW7IIA.nwbcfe309be-3748-4dc8-9c71-81bd5c1067b7none
\n", + "

...

\n", + "

Total: 24

\n", + " " + ], + "text/plain": [ + "*recording_id *artifact_id analysis_file_ object_id artifact_param\n", + "+------------+ +------------+ +------------+ +------------+ +------------+\n", + "04f3ecb4-a18c- 7a93bd27-5108- mediumnwb20230 16bded49-3fc2- none \n", + "1d2b5966-415a- e4921df8-99b5- mediumnwb20230 a07a4fcc-ac84- none \n", + "1e3f3707-613e- 15c8a3e8-5ce9- mediumnwb20230 34550b0b-36c7- none \n", + "2402805a-04f9- d581b117-160e- mediumnwb20230 bf877f6e-5daf- none \n", + "24107d8c-ce26- d1925dc7-e3b0- mediumnwb20230 7f55e942-7563- none \n", + "257c077b-8f3b- e289e03d-32ad- mediumnwb20230 c19ca39e-50a4- none \n", + "328da21c-1d9c- 686d9951-1c0f- mediumnwb20230 623a46f8-be44- none \n", + "3a2c3eed-413a- 2b9fbf14-74a0- mediumnwb20230 ec5170e0-277a- none \n", + "3c40ebdc-0b61- 0f91197e-bebb- mediumnwb20230 2d6e841c-4f98- none \n", + "449b64e3-db0b- 45f6b9a1-eef3- mediumnwb20230 68db8ac5-d008- none \n", + "72f70c5a-bc0f- 2b93bcd0-7b05- mediumnwb20230 3a1b3df6-fa85- none \n", + "76ee4ab3-da3e- 3fecf0af-6ce7- mediumnwb20230 cfe309be-3748- none \n", + " ...\n", + " (Total: 24)" + ] + }, + "execution_count": 20, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "sgs.SpikeSortingRecording() * sgs.ArtifactDetectionSelection()" + ] + }, + { + "cell_type": "code", + "execution_count": 21, + "metadata": {}, + "outputs": [ + { + "data": { + "text/html": [ + "\n", + " \n", + " \n", + " \n", + " \n", + "
\n", + " \n", + " \n", + " \n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "\n", + "
\n", + "

merge_id

\n", + " \n", + "
\n", + "

recording_id

\n", + " \n", + "
\n", + "

sorting_id

\n", + " \n", + "
\n", + "

curation_id

\n", + " \n", + "
\n", + "

analysis_file_name

\n", + " name of the file\n", + "
\n", + "

object_id

\n", + " Object ID for the processed recording in NWB file\n", + "
485a4ddf-332d-35b5-3ad4-0561736c1844f15351b3-d8e9-49a1-a306-4f366f1ee53508a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_JVBY43AQFF.nwbf639dd9a-fc4f-483e-a9c5-f487ecd11292
485a4ddf-332d-35b5-3ad4-0561736c1844f1427e00-2974-4301-b2ac-b4dc29277c5108a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_3BWJOEGAO1.nwb8366dcfd-bd90-470f-b08c-183bd44dcd1f
485a4ddf-332d-35b5-3ad4-0561736c1844f07bc0b0-de6b-4424-8ef9-766213aaca2608a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_GF6Z0P5KYV.nwb80c14292-a179-4c0f-9ff9-79016038ce95
485a4ddf-332d-35b5-3ad4-0561736c1844e59e77e9-dd41-4f58-a75b-17271b78c0d808a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_8SB3X7Y9YA.nwbc880110b-1dbf-4cc1-99ff-3766ade81fed
485a4ddf-332d-35b5-3ad4-0561736c1844d14ae25a-2796-4203-ba0b-f28768536cbe08a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_IG73IGEYPA.nwba3406f7e-1137-4c34-8715-e0323d074153
485a4ddf-332d-35b5-3ad4-0561736c1844b81f1ed9-fb2e-4f5c-93d8-d9cc0f11887508a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_QBQBH0I2OO.nwb101d753a-72fb-47a4-8734-962f8ef4f477
485a4ddf-332d-35b5-3ad4-0561736c1844aff78f2f-2ba0-412a-95cc-447c3a2f468308a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_42H3PR863Y.nwb6c5f3cd0-903a-42b5-ad68-261789bfd1a8
485a4ddf-332d-35b5-3ad4-0561736c1844a9b7cec0-1256-49cf-abf0-8c45fd15537908a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_5GUFKQ59T6.nwb498d52a8-47d1-41c2-bd45-2ac796fce4cd
485a4ddf-332d-35b5-3ad4-0561736c1844a3f5b9e7-7c79-4eb4-b5ed-910191c615c208a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_OQZ8C41NHS.nwbd49e9245-149c-4725-bd0f-d69b78e0a33a
485a4ddf-332d-35b5-3ad4-0561736c18449e332d82-1daf-4e92-bb50-12e4f943087508a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_30PFKCH9HH.nwba45a4c86-d748-48f8-b406-4da381a74737
485a4ddf-332d-35b5-3ad4-0561736c18447f128981-6868-4976-ba20-248655dcac2108a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_F9B938GB2N.nwbb06a3ec5-17a2-49a3-bd7f-475cb07081a0
485a4ddf-332d-35b5-3ad4-0561736c18447cc37209-7c28-443d-8f65-d8b01ca49a9a08a302b6-5505-40fa-b4d5-62162f8eef580mediumnwb20230802_XAQMO7WRC5.nwb38522acb-ba02-4fe1-b715-3c7485cca749
\n", + "

...

\n", + "

Total: 552

\n", + " " + ], + "text/plain": [ + "*merge_id *recording_id sorting_id curation_id analysis_file_ object_id \n", + "+------------+ +------------+ +------------+ +------------+ +------------+ +------------+\n", + "485a4ddf-332d- f15351b3-d8e9- 08a302b6-5505- 0 mediumnwb20230 f639dd9a-fc4f-\n", + "485a4ddf-332d- f1427e00-2974- 08a302b6-5505- 0 mediumnwb20230 8366dcfd-bd90-\n", + "485a4ddf-332d- f07bc0b0-de6b- 08a302b6-5505- 0 mediumnwb20230 80c14292-a179-\n", + "485a4ddf-332d- e59e77e9-dd41- 08a302b6-5505- 0 mediumnwb20230 c880110b-1dbf-\n", + "485a4ddf-332d- d14ae25a-2796- 08a302b6-5505- 0 mediumnwb20230 a3406f7e-1137-\n", + "485a4ddf-332d- b81f1ed9-fb2e- 08a302b6-5505- 0 mediumnwb20230 101d753a-72fb-\n", + "485a4ddf-332d- aff78f2f-2ba0- 08a302b6-5505- 0 mediumnwb20230 6c5f3cd0-903a-\n", + "485a4ddf-332d- a9b7cec0-1256- 08a302b6-5505- 0 mediumnwb20230 498d52a8-47d1-\n", + "485a4ddf-332d- a3f5b9e7-7c79- 08a302b6-5505- 0 mediumnwb20230 d49e9245-149c-\n", + "485a4ddf-332d- 9e332d82-1daf- 08a302b6-5505- 0 mediumnwb20230 a45a4c86-d748-\n", + "485a4ddf-332d- 7f128981-6868- 08a302b6-5505- 0 mediumnwb20230 b06a3ec5-17a2-\n", + "485a4ddf-332d- 7cc37209-7c28- 08a302b6-5505- 0 mediumnwb20230 38522acb-ba02-\n", + " ...\n", + " (Total: 552)" + ] + }, + "execution_count": 21, + "metadata": {}, + "output_type": "execute_result" + } + ], + "source": [ + "SpikeSortingOutput.CurationV1() * sgs.SpikeSortingRecording()" + ] + }, + { + "cell_type": "code", + "execution_count": 22, + "metadata": {}, + "outputs": [ + { + "ename": "DuplicateError", + "evalue": "(\"Duplicate entry 'mediumnwb20230802_.nwb-test_artifact_times' for key 'interval_list.PRIMARY'\", 'To ignore duplicate entries in insert, set skip_duplicates=True')", + "output_type": "error", + "traceback": [ + "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", + "\u001b[0;31mDuplicateError\u001b[0m Traceback (most recent call last)", + "Cell \u001b[0;32mIn[22], line 1\u001b[0m\n\u001b[0;32m----> 1\u001b[0m \u001b[43mIntervalList\u001b[49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43minsert1\u001b[49m\u001b[43m(\u001b[49m\u001b[43m{\u001b[49m\n\u001b[1;32m 2\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mnwb_file_name\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43mnwb_copy_file_name\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 3\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43minterval_list_name\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mtest_artifact_times\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m,\u001b[49m\n\u001b[1;32m 4\u001b[0m \u001b[43m \u001b[49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[38;5;124;43mvalid_times\u001b[39;49m\u001b[38;5;124;43m\"\u001b[39;49m\u001b[43m:\u001b[49m\u001b[43m \u001b[49m\u001b[43m[\u001b[49m\u001b[43m]\u001b[49m\u001b[43m,\u001b[49m\n\u001b[1;32m 5\u001b[0m \u001b[43m}\u001b[49m\u001b[43m)\u001b[49m\n", + "File \u001b[0;32m~/miniconda3/envs/spyglass/lib/python3.9/site-packages/datajoint/table.py:337\u001b[0m, in \u001b[0;36mTable.insert1\u001b[0;34m(self, row, **kwargs)\u001b[0m\n\u001b[1;32m 330\u001b[0m \u001b[38;5;28;01mdef\u001b[39;00m \u001b[38;5;21minsert1\u001b[39m(\u001b[38;5;28mself\u001b[39m, row, \u001b[38;5;241m*\u001b[39m\u001b[38;5;241m*\u001b[39mkwargs):\n\u001b[1;32m 331\u001b[0m \u001b[38;5;250m \u001b[39m\u001b[38;5;124;03m\"\"\"\u001b[39;00m\n\u001b[1;32m 332\u001b[0m \u001b[38;5;124;03m Insert one data record into the table. For ``kwargs``, see ``insert()``.\u001b[39;00m\n\u001b[1;32m 333\u001b[0m \n\u001b[1;32m 334\u001b[0m \u001b[38;5;124;03m :param row: a numpy record, a dict-like object, or an ordered sequence to be inserted\u001b[39;00m\n\u001b[1;32m 335\u001b[0m \u001b[38;5;124;03m as one row.\u001b[39;00m\n\u001b[1;32m 336\u001b[0m \u001b[38;5;124;03m \"\"\"\u001b[39;00m\n\u001b[0;32m--> 337\u001b[0m \u001b[38;5;28;43mself\u001b[39;49m\u001b[38;5;241;43m.\u001b[39;49m\u001b[43minsert\u001b[49m\u001b[43m(\u001b[49m\u001b[43m(\u001b[49m\u001b[43mrow\u001b[49m\u001b[43m,\u001b[49m\u001b[43m)\u001b[49m\u001b[43m,\u001b[49m\u001b[43m \u001b[49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[38;5;241;43m*\u001b[39;49m\u001b[43mkwargs\u001b[49m\u001b[43m)\u001b[49m\n", + "File \u001b[0;32m~/miniconda3/envs/spyglass/lib/python3.9/site-packages/datajoint/table.py:453\u001b[0m, in \u001b[0;36mTable.insert\u001b[0;34m(self, rows, replace, skip_duplicates, ignore_extra_fields, allow_direct_insert)\u001b[0m\n\u001b[1;32m 449\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m err\u001b[38;5;241m.\u001b[39msuggest(\n\u001b[1;32m 450\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mTo ignore extra fields in insert, set ignore_extra_fields=True\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 451\u001b[0m )\n\u001b[1;32m 452\u001b[0m \u001b[38;5;28;01mexcept\u001b[39;00m DuplicateError \u001b[38;5;28;01mas\u001b[39;00m err:\n\u001b[0;32m--> 453\u001b[0m \u001b[38;5;28;01mraise\u001b[39;00m err\u001b[38;5;241m.\u001b[39msuggest(\n\u001b[1;32m 454\u001b[0m \u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mTo ignore duplicate entries in insert, set skip_duplicates=True\u001b[39m\u001b[38;5;124m\"\u001b[39m\n\u001b[1;32m 455\u001b[0m )\n", + "\u001b[0;31mDuplicateError\u001b[0m: (\"Duplicate entry 'mediumnwb20230802_.nwb-test_artifact_times' for key 'interval_list.PRIMARY'\", 'To ignore duplicate entries in insert, set skip_duplicates=True')" + ] + } + ], + "source": [ + "IntervalList.insert1({\n", + " \"nwb_file_name\": nwb_copy_file_name,\n", + " \"interval_list_name\": \"test_artifact_times\",\n", + " \"valid_times\": [],\n", + "})" + ] + }, { "cell_type": "code", "execution_count": null, diff --git a/notebooks/py_scripts/51_MUA_Detection.py b/notebooks/py_scripts/51_MUA_Detection.py index f0c77ca52..506217553 100644 --- a/notebooks/py_scripts/51_MUA_Detection.py +++ b/notebooks/py_scripts/51_MUA_Detection.py @@ -72,7 +72,7 @@ ] # + -from spyglass.spikesorting.analysis.v1.group import SortedSpikesGroup +from spyglass.spikesorting.unit_inclusion_merge import SortedSpikesGroup unit_inclusion_merge_ids = ( UnitInclusionOutput.ImportedUnitInclusionV1 @@ -145,10 +145,7 @@ axes[1].set_xlabel("time (s)") # + -from spyglass.spikesorting.analysis.v1.mua import ( - MuaEventsParameters, - MuaEventsV1, -) +from spyglass.mua.v1.mua import MuaEventsParameters, MuaEventsV1 MuaEventsParameters().insert_default() MuaEventsParameters() @@ -159,6 +156,7 @@ "nwb_file_name": nwb_copy_file_name, "sorted_spikes_group_name": "test_group", "pos_merge_id": position_merge_id, + "artifact_interval_list_name": "test_artifact_times", } MuaEventsV1.populate(selection_key) @@ -200,4 +198,44 @@ axes[1].set_ylim((0, 80)) axes[1].axhline(4, color="black", linestyle="--") axes[1].set_xlim((time[0], time[-1])) + +# + +from spyglass.common import IntervalList + +IntervalList() & { + "nwb_file_name": nwb_copy_file_name, + "pipeline": "spikesorting_artifact_v1", +} # - + +( + sgs.ArtifactDetectionParameters + * sgs.SpikeSortingRecording + * sgs.ArtifactDetectionSelection +) + +SpikeSortingOutput.CurationV1() * ( + sgs.ArtifactDetectionParameters + * sgs.SpikeSortingRecording + * sgs.ArtifactDetectionSelection +) + +( + IntervalList() + & { + "nwb_file_name": nwb_copy_file_name, + "pipeline": "spikesorting_artifact_v1", + } +).proj(artifact_id="interval_list_name") + +sgs.SpikeSortingRecording() * sgs.ArtifactDetectionSelection() + +SpikeSortingOutput.CurationV1() * sgs.SpikeSortingRecording() + +IntervalList.insert1( + { + "nwb_file_name": nwb_copy_file_name, + "interval_list_name": "test_artifact_times", + "valid_times": [], + } +)