Skip to content

Commit 11dbe9a

Browse files
authored
Updated Backsub and docs (#590)
Backsub version 0.5.1 -- more lightweight and now supports compression when writing the output TIFF. The default pipeline configuration applies zlib compression.
1 parent 99a5799 commit 11dbe9a

3 files changed

Lines changed: 12 additions & 11 deletions

File tree

config/defaults.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ options:
2020
ilastik: --num_channels 1
2121
mcquant: --masks cell*.tif *_cp_masks*.tif
2222
naivestates: -p png
23+
backsub: --compression zlib
2324
imagej-rolling-ball: 100 -n=4 -j="-Xmx4g"
2425
modules:
2526
illumination:
@@ -49,11 +50,11 @@ modules:
4950
-
5051
name: backsub
5152
container: ghcr.io/schapirolabor/background_subtraction
52-
version: v0.4.1
53+
version: v0.5.1
5354
cmd: |-
54-
python3 /background_subtraction/background_sub.py \
55-
-r ${image} -m ${marker} \
56-
-o ${image_id}_backsub.ome.tif -mo markers_bs.csv
55+
backsub \
56+
--input ${image} --markers ${marker} \
57+
--output "${image_id}_backsub.ome.tif" --marker-output markers_bs.csv
5758
-
5859
name: imagej-rolling-ball
5960
container: yuanchen12/imagej-rolling-ball

docs/parameters/core.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -836,16 +836,16 @@ workflow:
836836

837837
### Outputs
838838

839-
* A pyramidal, tiled `.ome.tif`. Nextflow will write the output file to `background/` within the project directory.
839+
* A pyramidal, tiled `.ome.tif`. Nextflow will write the output file to `background/` within the project directory. By default, the output is compressed.
840840
* A modified `markers.csv` to match the background subtracted image.
841841

842842
### Optional arguments
843843

844844
| Parameter | Default | Description |
845845
| --- | --- | --- |
846846
| `--pixel-size` | `None` | The resolution of the image in microns-per-pixel. If not provided, it is read from metadata. If that is not possible, 1 is assigned. |
847-
| `--tile-size` | `1024` | Tile size used for pyramid image generation.|
848-
| `--chunk-size` | `5000` | Chunk size used for lazy loading and processing the image.|
847+
| `--tile-size` | `256` | Tile size used for pyramid image generation.|
848+
| `--compression` | `zlib` | The output pyramidal OME-TIFF will be compressed using the specified compression. Set to "none" for no compression. "lzw", "zlib", or "none" are accepted options. |
849849

850850
[Back to Other Modules](./core.html#other-modules){: .btn .btn-purple} [Back to top](./core){: .btn .btn-outline}
851851

docs/parameters/other.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ Nextflow will write all outputs to the `cell-states/naivestates/` subdirectory w
374374

375375
### Usage
376376
By default, MCMICRO assumes background subtraction should not be performed. Add `background: true` to [module options]({{site.baseurl}}/parameters/workflow.html#background) to indicate it should be. By default, the `background-method` parameter is set to `backsub`.
377-
If channels are removed using this module, and `segmentation-channel` is specified, it should be kept in mind that the index provided with `segmentation-channel` would refer to the index after channel removal.
377+
If channels are removed using this module, and `segmentation-channel` is specified, it should be kept in mind that the index provided with `segmentation-channel` would refer to the index after channel removal. Note that if the corrected outputs are compressed, and a segmentation method fails, `segmentation-recyze` should be used to get around the issue.
378378

379379
* Example `params.yml`:
380380

@@ -393,15 +393,15 @@ workflow:
393393

394394
### Outputs
395395

396-
* A pyramidal, tiled `.ome.tif`. Nextflow will write the output file to `background/` within the project directory.
396+
* A pyramidal, tiled `.ome.tif`. Nextflow will write the output file to `background/` within the project directory. By default, the output is compressed.
397397
* A modified `markers.csv` to match the background subtracted image.
398398

399399
### Optional arguments
400400

401401
| Parameter | Default | Description |
402402
| --- | --- | --- |
403403
| `--pixel-size` | `None` | The resolution of the image in microns-per-pixel. If not provided, it is read from metadata. If that is not possible, 1 is assigned. |
404-
| `--tile-size` | `1024` | Tile size used for pyramid image generation.|
405-
| `--chunk-size` | `5000` | Chunk size used for lazy loading and processing the image.|
404+
| `--tile-size` | `256` | Tile size used for pyramid image generation.|
405+
| `--compression` | `zlib` | The output pyramidal OME-TIFF will be compressed using the specified compression. Set to "none" for no compression. "lzw", "zlib", or "none" are accepted options. |
406406

407407
[Back to Other Modules](./core.html#other-modules){: .btn .btn-purple} [Back to top](./core){: .btn .btn-outline}

0 commit comments

Comments
 (0)