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
+23-9Lines changed: 23 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,6 +4,7 @@ Data processing for light-sheet microscopy, specifically for data from [Flamingo
4
4
5
5
The `flamingo_tools` library implements functionality for:
6
6
- converting the lightsheet data into a format compatible with [BigDataViewer](https://imagej.net/plugins/bdv/) and [BigStitcher](https://imagej.net/plugins/bigstitcher/).
7
+
- Cell / nucleus segmentation via a 3D U-net.
7
8
- ... and more functionality is planned!
8
9
9
10
This is work in progress!
@@ -12,25 +13,38 @@ This is work in progress!
12
13
## Requirements & Installation
13
14
14
15
You need a python environment with the following dependencies: [pybdv](https://github.com/constantinpape/pybdv) and [z5py](https://github.com/constantinpape/z5).
15
-
You can for example install these dependencies with [mamba](https://github.com/mamba-org/mamba)(a faster implementation of [conda](https://docs.conda.io/en/latest/)) via:
16
+
You install these dependencies with [mamba](https://github.com/mamba-org/mamba)or [conda](https://docs.conda.io/en/latest/) via:
16
17
```bash
17
-
$ mamba install -c conda-forge z5py pybdv
18
+
conda install -c conda-forge z5py pybdv
18
19
```
19
-
You can also set up a new environment with these dependencies using the file `environment.yaml`:
20
+
(for an existing conda environment). You can also set up a new environment with all required dependencies using the file `environment.yaml`:
20
21
```bash
21
-
$ mamba env create -f environment.yaml
22
+
conda env create -f environment.yaml
23
+
```
24
+
This will create the environment `flamingo`, which you can then activate via `conda activate flamingo`.
25
+
Finally, to install `flamingo_tools` into the environment run
26
+
```bash
27
+
pip install -e .
22
28
```
23
29
24
30
## Usage
25
31
26
-
We provide the follwoing scripts:
32
+
We provide a command line tool, `convert_flamingo`, for converting data from the flamingo microscope to a data format compatible with BigDataViewer / BigStitcher:
Here, `/path/to/data` is the filepath to the folder with the flamingo data to be converted, `/path/to/output.n5` is the filepath where the converted data will be stored, and `--file_ext .tif` declares that the files are stored as tif stacks.
37
+
Use `--file_ext .raw` isntead if the data is stored in raw files.
38
+
39
+
The data will be converted to the [bdv.n5 format](https://github.com/bigdataviewer/bigdataviewer-core/blob/master/BDV%20N5%20format.md).
40
+
It can be opened with BigDataViewer via `Plugins->BigDataViewer->Open XML/HDF5`.
41
+
Or with BigStitcher as described [here](https://imagej.net/plugins/bigstitcher/open-existing).
42
+
43
+
You can also check out the following example scripts:
27
44
-`create_synthetic_data.py`: create small synthetic test data to check that the scripts work.
28
-
-`convert_flamingo_data.py`: convert flamingo data to a file format comatible with BigDataViewer / BigStitcher via command line interface. Run `python convert_flamingo_data.py -h` for details.
29
45
-`convert_flamingo_data_examples.py`: convert flamingo data to a file format comatible with BigDataViewer / BigStitcher with parameters defined in the python script. Contains two example functions:
30
46
-`convert_synthetic_data` to convert the synthetic data created via `create_synthetic_data.py`.
31
47
-`convert_flamingo_data_moser` to convert sampled flamingo data from the Moser group.
32
48
-`load_data.py`: Example script for how to load sub-regions from the converted data into python.
33
49
34
-
The data will be converted to the [bdv.n5 format](https://github.com/bigdataviewer/bigdataviewer-core/blob/master/BDV%20N5%20format.md).
35
-
It can be opened with BigDataViewer via `Plugins->BigDataViewer->Open XML/HDF5`.
36
-
Or with BigStitcher as described [here](https://imagej.net/plugins/bigstitcher/open-existing).
50
+
For advanced examples to segment data with a U-Net, check out the `scripts` folder.
0 commit comments