Skip to content

Commit 83cd6d7

Browse files
committed
Merge branch 'main' into v0.9.0
2 parents ffcc083 + 108921c commit 83cd6d7

File tree

1 file changed

+21
-16
lines changed

1 file changed

+21
-16
lines changed

README.md

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,24 @@ A napari-plugin for clustering objects according to their properties.
2121
Jump to:
2222
- [Usage](#usage)
2323
- [Starting point](#starting-point)
24-
- [Measurements](#measurements)
25-
- [Time-Lapse Measurements](#time-lapse-measurements)
26-
- [Plotting](#plotting)
27-
- [Time-Lapse Plotting](#time-lapse-plotting)
28-
- [Dimensionality reduction: UMAP, t-SNE or PCA](#dimensionality-reduction-umap-t-sne-or-pca)
29-
- [Clustering](#clustering)
30-
- [Plotting clustering results](#plotting-clustering-results)
24+
- [Labels layer with Segmentation Results](#1-labels-layer-with-segmentation-results)
25+
- [Measurements](#measurements)
26+
- [Plotting](#plotting)
27+
- [Manual clustering](#manual-clustering)
28+
- [Saving manual clustering](#saving-manual-clustering)
29+
- [Time-Lapse analysis](#time-lapse-analysis)
30+
- [Points Layer with Coordinates](#2-points-layer-with-coordinates)
31+
- [Surface Layer with Segmentation Results](#3-surface-layer-with-segmentation-results)
32+
- [Labels Layer with Tracking Results](#4-labels-layer-with-tracking-results)
33+
- [Dimensionality reduction](#4-dimensionality-reduction)
34+
- [Clustering](#5-clustering)
35+
- [Plotting clustering results](#6-plotting-clustering-results)
3136
- [Installation](#installation)
3237
- [Troubleshooting installation](#troubleshooting-installation)
3338
- [Contributing](#contributing)
3439
- [License](#license)
3540
- [Acknowledgements](#acknowledgements)
36-
41+
- [Issues](#issues)
3742

3843
## Usage
3944

@@ -56,7 +61,7 @@ in the napari plugin [napari-segment-blobs-and-things-with-membranes](https://ww
5661

5762
In case you have 2D time-lapse data you need to convert it into a suitable shape using the menu `Tools > Utilities > Convert 3D stack to 2D time-lapse (time-slicer)` ([documentation](https://www.napari-hub.org/plugins/napari-time-slicer)).
5863

59-
### Measurements
64+
#### Measurements
6065
The first step is deriving measurements from the labeled image and the corresponding pixels in the grey-value image.
6166
Use the menu `Tools > Measurement tables > Regionprops (scikit-image, nsr)` to get to the measurement widget ([documentation](https://www.napari-hub.org/plugins/napari-skimage-regionprops)).
6267
Select the image, the corresponding label image and the measurements to analyse and click on `Run`.
@@ -67,7 +72,7 @@ You can also load your own measurements. You can do this using the menu `Tools >
6772
If you load custom measurements, please make sure that there is a `label` column that specifies which measurement belongs to which labeled object.
6873
Make sure to avoid the label `0` as this is reserved for the background. Tables for time-lapse data need to include an additional column named `frame`.
6974

70-
### Plotting
75+
#### Plotting
7176

7277
Once measurements were saved in the labels layer which was analysed, you can then plot these measurements using the menu `Tools > Visualization > Plot measurements (ncp)`.
7378

@@ -87,7 +92,7 @@ If you choose the same measurement for the X and the Y axis, a histogram will be
8792
Under advanced options you will also find the checkbox determining whether not-selected data points should be hidden (shown in grey) or automatically
8893
clustered as another cluster.
8994

90-
### Manual clustering
95+
#### Manual clustering
9196

9297
You can manually select a region in the plot. To use lasso (freehand) tool use left mouse click, and to use a
9398
rectangle - right click. The resulting manual clustering will also be visualized in the original image. To optimize
@@ -99,12 +104,12 @@ Hold down the SHIFT key while annotating regions in the plot to manually select
99104

100105
![](https://github.com/BiAPoL/napari-clusters-plotter/raw/main/images/multi-select-manual-clustering.gif)
101106

102-
### Saving manual clustering
107+
#### Saving manual clustering
103108

104109
Manual clustering results can be saved by going to `Tools > Measurement > Show table (nsr)`, and clicking on `Save as csv`.
105110
The saved table will contain a "MANUAL_CLUSTER_ID" column. This column is overwritten every time different clusters are manually selected.
106111

107-
### Time-Lapse analysis
112+
#### Time-Lapse analysis
108113

109114
When you plot your time-lapse datasets you will notice that the plots look slightly different.
110115
Datapoints of the current time frame are highlighted in bright color and you can see the datapoints move through the plot while you navigate through time:
@@ -172,7 +177,7 @@ For example, if you have a time-lapse labeled image where each label number repr
172177

173178
Check [this notebook](./example_data/tracking_data/loading_tracking_data_example.ipynb) to learn how to load these data from code.
174179

175-
### Dimensionality reduction
180+
### 4. Dimensionality reduction
176181

177182
For getting more insights into your data, you can reduce the dimensionality of the measurements, using these algorithms:
178183
* [Uniform Manifold Approximation Projection (UMAP)](https://umap-learn.readthedocs.io/en/latest/)
@@ -192,7 +197,7 @@ These columns are automatically saved in the labels layer and can be further pro
192197

193198
Afterwards, you can again save and/or close the table.
194199

195-
### Clustering
200+
### 5. Clustering
196201
If manual clustering, as shown above, is not an option, you can automatically cluster your data, using these implemented algorithms:
197202
* [k-means clustering (KMEANS)](https://towardsdatascience.com/k-means-clustering-algorithm-applications-evaluation-methods-and-drawbacks-aa03e644b48a)
198203
* [Hierarchical Density-Based Spatial Clustering of Applications with Noise (HDBSCAN)](https://hdbscan.readthedocs.io/en/latest/how_hdbscan_works.html)
@@ -211,7 +216,7 @@ ID of each datapoint.
211216

212217
Afterwards, you can save and/or close the table.
213218

214-
### Plotting clustering results
219+
### 6. Plotting clustering results
215220

216221
Return to the Plotter widget using the menu `Tools > Visualization > Plot measurement (ncp)`.
217222
Select `UMAP_0` and `UMAP_1` as X- and Y-axis and the `ALGORITHM_NAME_CLUSTERING_ID` as `Clustering`, and click on `Plot`.

0 commit comments

Comments
 (0)