Skip to content

Commit 9cab934

Browse files
committed
2 parents 9d2de54 + ef1a40f commit 9cab934

File tree

10 files changed

+73
-55
lines changed

10 files changed

+73
-55
lines changed

db/db_example.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
%% % % % % % % % % % % % % % % % % % % % % % % % % % % % %
4545
% Running the Cell Explorer pipeline via the db
4646

47-
cell_metrics = calc_CellMetrics('sessionName',sessionName);
47+
cell_metrics = ProcessCellMetrics('sessionName',sessionName);
4848
cell_metrics = CellExplorer('metrics',cell_metrics);
4949

5050
%% % % % % % % % % % % % % % % % % % % % % % % % % % % % %

docs/datastructure/data-structure-and-format.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ A Matlab struct `session` stored in a .mat file: `sessionName.session.mat`. The
115115
* `equipment` : hardware used to acquire the data
116116

117117
### Spikes
118-
A Matlab struct `spikes` stored in a .mat file: `sessionName.spikes.cellinfo.mat`. It can be generated with [loadSpikes.m](https://github.com/petersenpeter/Cell-Explorer/blob/master/calc_CellMetrics/loadSpikes.m). The Cell Inspector's pipeline `calc_CellMetrics.m` used the script `loadSpikes.m`, to automatically load spike-data from either KiloSort, Phy or Neurosuite and saves it to a spikes struct. `sessionName.spikes.cellinfo.mat` should be located in the clustering path. The struct has the following fields:
118+
A Matlab struct `spikes` stored in a .mat file: `sessionName.spikes.cellinfo.mat`. It can be generated with [loadSpikes.m](https://github.com/petersenpeter/Cell-Explorer/blob/master/calc_CellMetrics/loadSpikes.m). The Cell Inspector's pipeline `ProcessCellMetrics.m` used the script `loadSpikes.m`, to automatically load spike-data from either KiloSort, Phy or Neurosuite and saves it to a spikes struct. `sessionName.spikes.cellinfo.mat` should be located in the clustering path. The struct has the following fields:
119119
* `ts`: a 1xN cell-struct for N units each containing a 1xM vector with M spike events in samples.
120120
* `times`: a 1xN cell-struct for N units each containing a 1xM vector with M spike events in seconds.
121121
* `cluID`: a 1xN vector with inherited IDs from the applied clustering algorithm.
@@ -158,7 +158,7 @@ A Matlab struct `eventName` stored in a .mat file: `sessionName.eventName.events
158158
* `duration`: duration of event (in seconds; calculated from timestamps; Px1).
159159
* `detectorinfo`: info about how the events were detected.
160160

161-
The `*.events.mat` files should be stored in the basepath. Any `events` files located in the basepath will be detected in the pipeline (calc_CellMetrics) and an average PSTHs will be generated.
161+
The `*.events.mat` files should be stored in the basepath. Any `events` files located in the basepath will be detected in the pipeline (ProcessCellMetrics.m) and an average PSTHs will be generated.
162162

163163
### Manipulations
164164
A Matlab struct `manipulationName` stored in a .mat file: `sessionName.eventName.manipulation.mat` with the following fields:
@@ -173,7 +173,7 @@ A Matlab struct `manipulationName` stored in a .mat file: `sessionName.eventName
173173
* `duration`: duration of event (in seconds; calculated from timestamps; Px1).
174174
* `detectorinfo`: info about how the events were detected.
175175

176-
The `*.manipulation.mat` files should be stored in the basepath. `events` and `manipulation` files are similar in content, but only manipulation intervals are excluded in the pipeline. Any `manipulation` files located in the basepath will be detected in the pipeline (calc_CellMetrics) and an average PSTH will be generated. Events and manipulation files are similar in content, but only manipulation intervals are excluded in the pipeline.
176+
The `*.manipulation.mat` files should be stored in the basepath. `events` and `manipulation` files are similar in content, but only manipulation intervals are excluded in the pipeline. Any `manipulation` files located in the basepath will be detected in the pipeline (ProcessCellMetrics.m) and an average PSTH will be generated. Events and manipulation files are similar in content, but only manipulation intervals are excluded in the pipeline.
177177

178178
### Channels
179179
A matlab struct `ChannelName` stored in a .mat file: `sessionName.ChannelName.channelinfo.mat` with the following fields:

docs/datastructure/standard-cell-metrics.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ The spatial metrics are all based on average firing rate map.
135135
## Response curve metrics
136136
* `responseCurves`: response curves.
137137

138-
## Ground truth metrics
139-
* `groundTruthClassification`: Opto-tagged/ground truth cell tags. More than one tag can be assigned to each cell.
140-
138+
## Group data
139+
* `groups`: Cell groups. Each cell can be assigned to one or more groups.
140+
* `tags`: Each cell can be assigned to one or more tags.
141+
* `groundTruthClassification`: Opto-tagged/ground truth cell groups. Each cell can be assigned to one or more groups.

docs/interface/capabilities.md

Lines changed: 14 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,25 @@ The Cell Explorer is a graphical user interface that allow you to explore your d
1414
1. TOC
1515
{:toc}
1616

17+
1718
## Classification
1819
You can do direct classification in the GUI. The following types of classification can be performed.
1920
* **Putative cell type**: You can create new cell types directly in the GUI.
2021
* **Brain region**: Allen institute atlas.
2122
* **Deep-superficial**: Deep superficial assignment can be done in the Cell Explorer cell-wise and in a separate gui channel-wise.
2223
* **Labels**: You can assign your own labels to any cell.
23-
* **Tags**: A selection of predetermined tags can also be assigned.
24+
* **Tags**: Tags can be assigned.
25+
* **Groups**: Groups can be created.
2426
* **Ground truth cell types**: Ground truth data can be analysed directly in the GUI.
2527

26-
### Interface for deep-superfial classification curation
27-
![](https://buzsakilab.com/wp/wp-content/uploads/2020/02/gui_deepSuperficial.png){: .mt-4}
28-
29-
## Monosynaptic connections
28+
### Monosynaptic connections
3029
Monosynaptic connections are determined in the pipeline, and you can visualize the connections in the GUI and redo the manual curation directly from the GUI. You can adjust connections from the Cell Explorer by launching the monosyn interface. [Please see the tutorial on manual curation of monosynaptic connections]({{"/tutorials/monosynaptic-connections-tutorial/"|absolute_url}}).
30+
![](https://buzsakilab.com/wp/wp-content/uploads/2020/02/monosyn.png){: .mt-4}
3131

32-
### Interface for monosynaptic connections curation
33-
![](https://buzsakilab.com/wp/wp-content/uploads/2020/02/monosyn.png)
32+
### Interface for deep-superfial classification curation
33+
![](https://buzsakilab.com/wp/wp-content/uploads/2020/02/gui_deepSuperficial.png){: .mt-4}
3434

35-
## Database capabilities
35+
### Database capabilities
3636
The Cell Explorer is capable of loading datasets from and writing to the Buzsaki lab database. Please setup your credentials and local paths as [described here]({{"/database/preparation/"|absolute_url}}).
3737

3838
### Reference data
@@ -44,16 +44,15 @@ To help you characterize your own data, you can load reference data provided by
4444
There are a subset of ground truth cell types provided.
4545

4646
### Raincloud plot
47-
To estimate single dimensional variations in your data you can generate a [raincloud plot](https://github.com/RainCloudPlots/RainCloudPlots). You can generate the plot from the top menu `View` -> `Generate rain cloud metrics plot`.
47+
To quantify single dimensional variations in your data you can generate a [raincloud plot](https://github.com/RainCloudPlots/RainCloudPlots). You can generate the plot from the top menu `View` -> `Generate rain cloud metrics plot`.
4848

4949
The comparison line widths signify significance levels, `linewidth=1` signifies p>0.05, `linewidth=2` signifies p<0.05 and `linewidth=3` signifies p<0.001. Significance levels is determined using [Two-sample Kolmogorov-Smirnov test](https://www.mathworks.com/help/stats/kstest2.html) (a nonparametric hypothesis test). You can generate a raincloud plot from any color grouping, e.g. cell types, deep-superficial or animal.
5050

5151
Below plot shows a raincloud a comparison across putative cell types:
5252
![raincloud cell types](https://buzsakilab.com/wp/wp-content/uploads/2020/02/raincloud-cell-types.png)
5353

54-
5554
### Significance matrix
56-
The significance matrix can help find metrics that your data into groups, e.g. deep-superfical labels. You can generate the plot from the top menu `View` -> `Generate significance matrix` or by pressing `K`. Please select a group of size 2 beforehand. This will show a dialog for selecting which metrics to use.
55+
The significance matrix can help quantify the modality of your data, e.g. using the deep-superficial labels or the cell types. You can generate the plot from the top menu `View` -> `Generate significance matrix` or by pressing `K`. Please select a group of size 2 beforehand. This will show a dialog for selecting which metrics to process.
5756
<p align="center"><img src="https://buzsakilab.com/wp/wp-content/uploads/2020/02/SignificanceMatrix.png" width="30%"></p>
5857

5958
The colors in the matrix signify significance level (right color bar in log10), `*` signifies p<0.05 and `**` signifies p<0.001. Selected metrics are shown on the left side of the matrix. Significance levels is determined using [Two-sample Kolmogorov-Smirnov test](https://www.mathworks.com/help/stats/kstest2.html) (a nonparametric hypothesis test).
@@ -62,17 +61,10 @@ The colors in the matrix signify significance level (right color bar in log10),
6261
You can save your combined cell metrics from a study into a single mat file that can be shared together with a publication. This allows peers to verify your classification or use your cell metrics directly. You can save the mat file from the Cell Explorer from the menu `File` -> `Save classification`.
6362

6463
### Export figures
65-
There are two ways to export figures.
66-
1. You can export the whole interface from the top menu from the top menu `File` -> `Export figure`. This will open the Matlab Figure Export Setup dialog box (`exportsetupdlg`).
67-
2. Single cell figures
68-
1. Select a number of cells, using the mouse and press `space`, this opens the action dialog. If no selection is done before pressing `space` a selection dialog will be shown.
69-
<p align="center"><img src="https://buzsakilab.com/wp/wp-content/uploads/2019/12/Cell-Explorer-group-action-dialog.png" width="70%"></p>
70-
2. Select either of the three `MULTI PLOT OPTIONS`
71-
3. In the new dialog, toogle `Save figures`, and define format and file path.
72-
<p align="center"><img src="https://buzsakilab.com/wp/wp-content/uploads/2019/12/Cell-Explorer-group-action-multiplot-dialog.png" width="70%"></p>
64+
Figures can be exported using the GUI, either the main Cell Explorer window or through cell selection actions dialog. For more information please see the [figure export tutorial]({{"/tutorials/export-figure/"|absolute_url}}).
7365

7466
### Work in batch-mode while handling metrics on a single session level
75-
Using the Cell Explorer on a batch of sessions, will load metrics into one struct allowing you to visualize and classify your data across recordings and classify cells across sessions, while still maintaining the data handling on a single session level, writing your changes back to the original files. You can save metrics from a batch of sessions, and still load the data back into the Cell Explorer.
67+
The Cell Explorer can handle batches of sessions. It will load metrics into one struct allowing you to visualize and classify your data across recordings and classify cells across sessions, while still maintaining the data handling on a single session level, writing your changes back to the original files. You can save metrics from a batch of sessions, and still load the data back into the Cell Explorer.
7668

77-
### Autosave
78-
The Cell Explorer automatically saves your manual curation every 6 classification action (actions include changes to cell-type, deep-superficial assignment and brain region). You can turn this feature off or adjust the autosave-interval in preferences. The autosave only saves your progress to the workspace and you have to save your changes to the original cell_metrics file through the Cell Explorer interface.
69+
### Track changes and autosave
70+
The Cell Explorer tracks your actions, which includes cell-type classifications, deep-superficial assignment, brain regions, labels, tags, groups and ground truth classifications. Reverse an action by pressing `ctrl+Z`. Further it autosaves your actions to your workspace every 6th action (You can turn the autosave feature off or adjust the autosave-interval in preferences). You still have to save your changes to the original cell_metrics file through the Cell Explorer interface.

docs/pipeline/custom-calculations.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ nav_order: 5
66
---
77
# Custom calculations
88
{: .no_toc}
9-
The Cell Explorer pipeline has a subfolder for calculations to exist outside the main pipeline, such that updates can be applied without affecting your own additions to the pipeline. Please save your scripts to the folder `calc_CellMetrics/+customCalculations/` and follow the template already in that folder to integrate your own calculations into the regular pipeline.
9+
The Cell Explorer pipeline has a subfolder for calculations to exist outside the main pipeline, such that updates can be applied without affecting your own additions to the pipeline. Please save your scripts to the folder `+customCalculations/` and follow the template already in that folder to integrate your own calculations into the regular pipeline.
1010

1111
Your metrics has to follow the Cell Explorer [cell_metrics standard]({{"/datastructure/your-own-metrics/"|absolute_url}}). Any `events` or `manipulation` files located in the basepath will be detected in the pipeline and PSTHs will be generated automatically. Events and manipulation files are similar in content, but only manipulation intervals are excluded in the pipeline.
1212

docs/pipeline/pipeline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ has_children: true
66
---
77
# Processing pipeline
88
{: .no_toc}
9-
Every metric is calculated in the same processing pipeline from a single call. To run the pipeline one have to prepare the compatible data structure and metadata. You can add your own metrics and custom calculations to the pipeline.
9+
The pipeline has three main processing steps: 1. Gathering metadata, 2. Processing cell_metrics and 3. Running Cell Explorer. All metrics are calculated using a single processing script. To run the pipeline one have to prepare the compatible data structure and metadata. You can add your own metrics and custom calculations to the pipeline.

0 commit comments

Comments
 (0)