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: README.md
+20-4Lines changed: 20 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,13 +16,15 @@
16
16
Rastermap is a discovry algorithm for neural data. The algorithm was written by
17
17
Carsen Stringer and Marius Pachitariu. To learn about Rastermap, read the [paper]() or watch the [talk](). For support, please open an [issue](https://github.com/MouseLand/rastermap/issues). Please see install instructions [below](README.md/#Installation).
18
18
19
-
Rastermap runs in python 3.8+ and has a graphical user interface (GUI) for running it easily. Rastermap can also be run in a jupyter notebook locally or on google colab:
19
+
Rastermap runs in python 3.8+ and has a graphical user interface (GUI) for running it easily. Rastermap can also be run in a jupyter notebook locally or on google colab, see these demos:
20
20
*[rastermap_largescale.ipynb](notebooks/rastermap_largescale.ipynb)[](https://colab.research.google.com/github/MouseLand/rastermap/blob/main/notebooks/rastermap_largescale.ipynb) shows how to use it with large-scale data from mouse cortex (> 200 neurons)
21
21
*[rastermap_singleneurons.ipynb](notebooks/rastermap_singleneurons.ipynb)[](https://colab.research.google.com/github/MouseLand/rastermap/blob/main/notebooks/rastermap_singleneurons.ipynb) shows how to use it with small to medium sized data (< 200 neurons), in this case recorded from rat hippocampus
22
22
*[rastermap_zebrafish.ipynb](notebooks/rastermap_zebrafish.ipynb)[](https://colab.research.google.com/github/MouseLand/rastermap/blob/main/notebooks/rastermap_zebrafish.ipynb) shows how to use it with large-scale data from zebrafish
23
23
*[rastermap_widefield.ipynb](notebooks/rastermap_widefield.ipynb)[](https://colab.research.google.com/github/MouseLand/rastermap/blob/main/notebooks/rastermap_widefield.ipynb) shows how to use it with widefield imaging data, or other types of datasets that are too large to fit into memory
24
24
*[tutorial.ipynb](notebooks/tutorial.ipynb)[](https://colab.research.google.com/github/MouseLand/rastermap/blob/main/notebooks/tutorial.ipynb) is a guided tutorial for integrating rastermap and facemap to visualize behavioral representations
25
25
26
+
**all demo data available [here](https://osf.io/xn4cm/)**
27
+
26
28
Here is what the output looks like for a segment of a mesoscope recording in a mouse during spontaneous activity (3.2Hz sampling rate), compared to random neural sorting:
27
29
28
30
<imgsrc="https://www.suite2p.org/static/images/rastermap_spont.png"width="800"alt="random sorting and rastermap sorting of spontaneous activity"/>
@@ -86,7 +88,7 @@ The quickest way to start is to open the GUI from a command line terminal. You m
86
88
python -m rastermap
87
89
~~~
88
90
89
-
To start using the GUI, save your data into an npy file that is just a matrix that is neurons x timepoints. Then "File > Load data matrix" and choose this file. Next click "Run > Run rastermap" and click run. See the parameters section to learn about the parameters.
91
+
To start using the GUI, save your data into an npy file that is just a matrix that is neurons x timepoints. Then "File > Load data matrix" and choose this file (or drag and drop your file). Next click "Run > Run rastermap" and click run. See the parameters section to learn about the parameters.
90
92
91
93
The GUI will start with a highlighted region that you can drag to visualize the average activity of neurons in a given part of the plot. To draw more regions, you right-click to start a region, then right-click to end it. The neurons' activity traces then show up on the botton of the GUI, and if the neuron positions are loaded, you will see them colored by the region color. You can delete a region by holding CTRL and clicking on it. You can save the ROIs you've drawn with the "Save > Save processed data" button. They will save along with the embedding so you can reload the file with the "Load processed data" option.
92
94
@@ -230,8 +232,8 @@ Here is the list of all variables assigned from `fit`:
230
232
231
233
***embedding** : array, shape (n_samples, 1)
232
234
embedding of each neuron / voxel
233
-
***isort** : sorting along first dimension of input matrix
234
-
use this to get neuron / voxel sorting
235
+
***isort** : array, shape (n_samples,)
236
+
sorting along first dimension of input matrix - use this to get neuron / voxel sorting
235
237
***igood** : array, shape (n_samples, 1)
236
238
neurons/voxels which had non-zero activity and were used for sorting
237
239
***Usv** : array, shape (n_samples, n_PCs)
@@ -253,6 +255,20 @@ Here is the list of all variables assigned from `fit`:
0 commit comments