You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/index.md
+1-2Lines changed: 1 addition & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,7 @@ includes the following modules:
15
15
For examples of how the output looks and how the GUI works, check out
16
16
this twitter [thread](https://twitter.com/marius10p/status/1032804776633880583).
17
17
18
-
This code was written by Carsen Stringer and Marius Pachitariu. For
19
-
support, please open an [issue](https://github.com/MouseLand/suite2p/issues).
18
+
For software support, please open an [issue](https://github.com/MouseLand/suite2p/issues). For general questions, please use [forum.image.sc](https://forum.image.sc)
20
19
21
20
The reference paper is [here](https://www.biorxiv.org/content/10.64898/2026.02.04.703741v1). The deconvolution algorithm is based on
22
21
[this paper](https://journals.plos.org/ploscompbiol/article?id=10.1371/journal.pcbi.1005423), with settings based on [this
Copy file name to clipboardExpand all lines: notebooks/example_run_suite2p_2026.ipynb
+19-8Lines changed: 19 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -8,11 +8,20 @@
8
8
"source": [
9
9
"# Running suite2p on example data\n",
10
10
"\n",
11
+
"[](https://colab.research.google.com/github/MouseLand/suite2p/blob/main/notebooks/example_run_suite2p_2026.ipynb)\n",
12
+
"\n",
11
13
"This notebook will guide you through the various stages and outputs of suite2p by running it on a real-life dataset. This is data collected from a wild-type mouse injected with GCaMP6s in primary visual cortex. The recording was collected at 13Hz (there were 3 planes in the recording, 1 is included here).\n",
12
14
"\n",
13
15
"The code cell below installs and imports the necessary packages to use suite2p in this Colab notebook."
14
16
]
15
17
},
18
+
{
19
+
"cell_type": "markdown",
20
+
"metadata": {},
21
+
"source": [
22
+
"To use the GPU-acceleration, connect to a hosted runtime with a GPU in colab."
23
+
]
24
+
},
16
25
{
17
26
"cell_type": "code",
18
27
"execution_count": null,
@@ -198,6 +207,7 @@
198
207
"settings['detection']['threshold_scaling'] = 2.0 # we are increasing the threshold for finding ROIs to limit the number of non-cell ROIs found (sometimes useful in gcamp injections)\n",
199
208
"settings['fs'] = 13 # sampling rate of recording, determines binning for cell detection\n",
200
209
"settings['tau'] = 1.25 # timescale of gcamp to use for deconvolution\n",
210
+
"settings['device'] = 'cuda' if torch.cuda.is_available() else 'cpu' # use GPU if available for faster processing\n",
201
211
"print(settings)"
202
212
]
203
213
},
@@ -234,6 +244,8 @@
234
244
"## Run entire suite2p pipeline on data\n",
235
245
"The suite2p.run_s2p function runs the pipeline and returns a list of output dictionaries containing the pipeline parameters used and extra data calculated along the way, one for each plane.\n",
236
246
"\n",
247
+
"To see the logs during running, you now need to run `logger_setup`, optionally providing the `save_path` for the logs to be written to a text file.\n",
248
+
"\n",
237
249
"The following cell might take a couple of minutes to run."
238
250
]
239
251
},
@@ -249,6 +261,8 @@
249
261
},
250
262
"outputs": [],
251
263
"source": [
264
+
"from suite2p.run_s2p import logger_setup\n",
265
+
"logger_setup()\n",
252
266
"suite2p.run_s2p(settings=settings, db=db)"
253
267
]
254
268
},
@@ -355,7 +369,8 @@
355
369
},
356
370
"outputs": [],
357
371
"source": [
358
-
"device = torch.device(\"cuda\")"
372
+
"settings['device'] = 'cuda' if torch.cuda.is_available() else 'cpu' # use GPU if available for faster processing\n",
0 commit comments