Mcd-stitcher

Latest version: v1.0.0

Safety actively analyzes 685525 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

1.0.0

Major Update - Enhanced Usability and Robustness


General Changes Across the Package

- **Enhanced progress monitoring** with new print statements.
- **Enhanced ReadMe documentation** updated with better examples and detailed usage cases.
- **Refined help commands** with clear descriptions and usage guidance.
- Help commands now link to detailed **README** on GitHub for more information.


Specific Changes


**Imc2Zarr Improvements:**

- **Optional `output_path` Argument:**
- Made the `output_path` argument optional in the main function using `click.argument`.

- **Default Output Path:**
- If `output_path` is not provided, it automatically creates the folder `<input_path>/Zarr_converted`.


**ZarrStitch Improvements:**

- **Channel Label Logic Enhancement:**
- Fixed the issue causing dimension mismatches due to inconsistent channel labels across ROIs.
- Addressed errors where empty or incorrect channel labels could disrupt the stitching process.

- **Enhanced Folder Detection:**
- Skips folders without a `mcd_schema.xml` file, improving robustness against empty or invalid folders.

- **Better ROI Anomaly Handling:**
- Maximum channels are determined by iterating through all ROIs.
- Stitching loop for ROIs now accommodates changing channel numbers for stitching.

- **Error Handling and Logging:**
- Added error logging to a file (`error_log.txt`) within the input directory.
- Continues processing remaining folders even if an error occurs, ensuring uninterrupted execution.

- **Output Messages:**
- Prints a message indicating successful stitching for each processed folder.
- Prints error messages and directs users to the log file for details when an error occurs.


**mcd_stitch Command:**

- **Optional `zarr_folder` Argument:**
- The `zarr_folder` argument is optional and aligns with changes to IMC2Zarr.


**tiff_subset Command Enhancements:**

- **Compactified Arguments and Changes:**
- `-c` now lists channels in the specified OME-TIFF file.
- `-f` filters and subsets channels (if no channel number is given, defaults to 141-193 filtering).
- `-p` enables pyramid and tiles based OME-TIFF structure.

- **Help Command:**
- Added `-h` or `--help` for displaying detailed command usage.
- Improved descriptions and usage examples in the help command output.

- **Error Handling and Logging:**
- Errors encountered during processing are logged to a file (`error_log.txt`) within the input directory.
- Continues processing remaining files even if an error occurs, ensuring uninterrupted execution.

- **Script Level Changes:**
- Removed pyramid level and tiles argument. The script now uses the default tile size of (256 by 256 pixels) and the default number of pyramid levels as 4 directly in the code.
- Improved auto channel subsetting logic; previous logic unexpectedly skipped some channels.
- `-f` is now a mandatory argument, and the script returns custom help if not specified.

0.1.7

Minor Update

---

Added

- **Pyramidal OME-TIFF Generation:** Added the ability to generate pyramidal OME-TIFF files with multiple resolution levels for efficient visualization and analysis. This feature allows for faster and more efficient opening of TIFF files in software like QuPath, especially on systems with low RAM.
- **Usage Example:**
~~~bash
tiff_subset "path/to/file.ome.tiff" --pyramid --tile-size 256 256 --levels 4
~~~
- **Arguments:**
- `--tile-size TILE-SIZE`: Tile size for pyramidal OME-TIFF. (Default: 256x256)
- `--levels LEVELS`: Number of pyramid levels. (Default: 4)

---

This update ensures that large OME-TIFF files can be handled more effectively, improving performance and usability in resource-constrained environments.

0.1.6

Added

- **LZW Compression**: Added optional LZW compression for the output OME-TIFF files.
- **Channel Subsetting for Directories**: `tiff_subset` script can now handle directories and apply channel subsetting to all OME-TIFF files within. (Previously would ignore -c if <directories_path> was provided)

Changed

- **Improved Stitching Logic**: Enhanced the stitching logic to correctly handle Y-axis transformations, ensuring proper placement of ROIs.

0.1.5

New Features
- **tiff_subset Functionality**: Added a new utility to subset specific channels or ranges of channels in OME-TIFF files.
- List all channels in an OME-TIFF file.
- Subset specific channels by indices or ranges.
- Process all OME-TIFF files in a specified directory.

Improvements
- **README Overhaul**: Enhanced the README.md file with comprehensive documentation, usage examples, and improved formatting for better clarity and usability.

0.1.4

-stitched images have proper metadata

0.1.3

Links

Releases

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.