From 0524d737629440813e145ff0ab00cba044c9e849 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 21 Feb 2024 02:06:51 +0100 Subject: [PATCH 1/3] rdme update Signed-off-by: neuronflow --- README.md | 34 +++++++++++++++++++++------------- 1 file changed, 21 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index e15f2c3..f0e3ea2 100644 --- a/README.md +++ b/README.md @@ -66,10 +66,30 @@ Please also cite the following original authors of the algorithms who make this | scan-20 & scan_lite-20 | McKinley, R., Rebsamen, M., Dätwyler, K., Meier, R., Radojewski, P., & Wiest, R. (2021). Uncertainty-driven refinement of tumor-core segmentation using 3d-to-2d networks with label uncertainty. In Brainlesion: Glioma, Multiple Sclerosis, Stroke and Traumatic Brain Injuries: 6th International Workshop, BrainLes 2020, (pp. 401-411). Springer International Publishing. | +## Usage +Checkout the Python examples in this repository for preprocessing (`0_preprocessing_single.py`), segmentation (`1_segmentation.py`) and fusion () TODO -## Brats Preprocessor +## Brats Segmentor +BraTS Segmentor enables orchestration of BraTS brain tumor segmentation algorithms for generation of fully-automated segmentations. +For segmentation your files should be `preprocessed`, meaning they should be co-registered and skullstripped in SRI-24 space. +You can preprocess your files using [BrainLes preprocessing](https://github.com/BrainLesion/preprocessing) (recommended) or the deprecated preprocessor of BraTS Toolkit (see below). + +### Python package +Please have a look at `1_segmentation.py` in this repository for a demo application. + +### Command Line Interface (CLI) +Type `brats-segment -h` after installing the python package to see available options. + +## Brats Fusionator +BraTS Fusionator can combine the resulting candidate segmentations into consensus segmentations using fusion methods such as majority voting and iterative SIMPLE fusion. +### Python package +Please have a look at `2_fusion.py` in this repository for a demo application. + +## Brats Preprocessor (deprecated) BraTS Preprocessor facilitates data standardization and preprocessing for researchers and clinicians alike. It covers the entire image analysis workflow prior to tumor segmentation, from image conversion and registration to brain extraction. +> WARNING: BraTS Preprocessor is deprecated. It still works but we recommended using [BrainLes preprocessing](https://github.com/BrainLesion/preprocessing) instead. + ### Processing Modi BraTS Preprocessor offers the following preprocessing modes: #### GPU brain extraction: "gpu" @@ -101,18 +121,6 @@ Type `brats-batch-preprocess -h` after installing the python package to see avai You can find instructions to use and download the GUI variant here: https://neuronflow.github.io/BraTS-Preprocessor/ > WARNING: The GUI is not nicely maintained. We encourage you to use the python package or the CLI instead. -## Brats Segmentor -BraTS Segmentor enables orchestration of BraTS brain tumor segmentation algorithms for generation of fully-automated segmentations. -### Python package -Please have a look at `1_segmentation.py` in this repository for a demo application. - -### Command Line Interface (CLI) -Type `brats-segment -h` after installing the python package to see available options. - -## Brats Fusionator -BraTS Fusionator can combine the resulting candidate segmentations into consensus segmentations using fusion methods such as majority voting and iterative SIMPLE fusion. -### Python package -Please have a look at `2_fusion.py` in this repository for a demo application. ### Command Line Interface (CLI) Type `brats-fuse -h` after installing the python package to see available options. From c9a24dbc8db0befcda3307aaa3204b634d9dc637 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 21 Feb 2024 11:12:25 +0100 Subject: [PATCH 2/3] update Signed-off-by: neuronflow --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index f0e3ea2..a1e9b8a 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,8 @@ Please also cite the following original authors of the algorithms who make this ## Usage -Checkout the Python examples in this repository for preprocessing (`0_preprocessing_single.py`), segmentation (`1_segmentation.py`) and fusion () TODO +BrainLes features [Jupyter notebook tutorials](https://github.com/BrainLesion/tutorials/tree/main/BraTS-Toolkit) for glioma segmentation with BraTS Toolkit. +Further, have a look at the Python examples in this repository for preprocessing (`0_preprocessing_single.py`), segmentation (`1_segmentation.py`) and fusion (`2_fusion.py`). ## Brats Segmentor BraTS Segmentor enables orchestration of BraTS brain tumor segmentation algorithms for generation of fully-automated segmentations. @@ -88,7 +89,7 @@ Please have a look at `2_fusion.py` in this repository for a demo application. ## Brats Preprocessor (deprecated) BraTS Preprocessor facilitates data standardization and preprocessing for researchers and clinicians alike. It covers the entire image analysis workflow prior to tumor segmentation, from image conversion and registration to brain extraction. -> WARNING: BraTS Preprocessor is deprecated. It still works but we recommended using [BrainLes preprocessing](https://github.com/BrainLesion/preprocessing) instead. +> WARNING: BraTS Preprocessor is deprecated. It still works but we recommended using [BrainLes preprocessing](https://github.com/BrainLesion/preprocessing) instead which offers much more flexibility. ### Processing Modi BraTS Preprocessor offers the following preprocessing modes: From da3420061505115c9ff081960a9c4edfcae49ef2 Mon Sep 17 00:00:00 2001 From: neuronflow Date: Wed, 21 Feb 2024 11:18:06 +0100 Subject: [PATCH 3/3] better notice Signed-off-by: neuronflow --- brats_toolkit/util/citation_reminder.py | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/brats_toolkit/util/citation_reminder.py b/brats_toolkit/util/citation_reminder.py index 271247f..f2075af 100644 --- a/brats_toolkit/util/citation_reminder.py +++ b/brats_toolkit/util/citation_reminder.py @@ -27,17 +27,22 @@ def wrapper(*args, **kwargs): console = Console() console.rule("[bold red]Deprecation note[/bold red]") console.print( - "Support for BraTS Toolkit's preprocessor will be deprecated soon, even though it should continue working.", + "Deprecation Notice: Support for the BraTS Toolkit's preprocessor is now deprecated, although it is expected to remain functional.", justify="center", ) console.print( - "You can already beta test the new BrainLes preprocessing: https://github.com/BrainLesion/preprocessing", + "Please note that this deprecation does not impact the segmentation and fusion module, which will continue to receive maintenance and support.", justify="center", ) console.print( - "Unlike the original preprocessing from BraTS Toolkit, the new pipeline allows for arbitrary sequences, implements multiple backends for registration and brain extration and does not require docker.", + "We recommend transitioning to the BrainLes preprocessing tool available at: https://github.com/BrainLesion/preprocessing for preprocessing tasks.", justify="center", ) + console.print( + "In contrast to the original BraTS Toolkit preprocessing, the new BrainLes pipeline offers the flexibility of arbitrary sequences, incorporates multiple backends for registration and brain extraction, and eliminates the need for Docker.", + justify="center", + ) + console.rule() console.line() func(*args, **kwargs)