-
Notifications
You must be signed in to change notification settings - Fork 2
slideCompare
slideCompare is designed to compare two images using ImageMagick's compare function. Here's a breakdown of its functionality:
Display Functions Several functions are defined to format text output with different colors, styles, and effects. Required | General Variables IMG_FILE: The variable is set to the first argument provided when running the script, representing the slidenumber with stain. Log File A log file (slideCompare.logfile.txt) is created or updated for recording relevant information during script execution. Module Loading The script activates the CellProfiler-Anaconda3.8 environment. Message Functions Functions for displaying copyright information and script arguments error are defined. Script Execution Argument Check: The script checks if the correct number of arguments is provided. If not, it displays an error message and exits. Loading Required Modules: The script loads the required Anaconda environment containing the slideToolKit-CellProfiler4.1.3 installation. Comparing Images: If the image file has a .ndpi extension, the script proceeds to create macro images and compares them using ImageMagick's compare function. The results of the comparison are stored in the log file. If the image file has a different extension (.tif, .TIF), an error message is displayed, and the script exits. Logging: Information about the comparison duration is recorded in the log file.
Example usage:
python slideExtract --input AE1234.SR.ndpi --levels m,6
Argument(s):
-
-i,--inputInput (directory containing files). Try: IMG012.ndpi (or .TIF or /path_to/images/.ndpi). Required. -
-l,--levelsComma seperated list of magnification levels to extract, with 'm' as thumbnail and '6' as level 6. Try: m,6. Required.
Optional argument(s):
-
-o,--outdirOutput dir, default is present working directory. Optional. -
-s,--suffixSuffix to append to end of file, default is 'm' for thumbnail and '#' for a given level. Optional. -
-t,--typeOutput file type, default is png (which is slower), other options are tif. Optional. -
-f,--forceForce output even if it exists. Optional. -
-v,--verboseWhile writing images also display image properties. Optional. -
-h,--helpShow this help message and exit. Optional.
Licence. The MIT License (MIT): http://opensource.org/licenses/MIT.
Copyright (c) 2014-2024, Bas G.L. Nelissen & Sander W. van der Laan, UMC Utrecht, Utrecht, the Netherlands.
Introduction
General instructions
slide2Tiles
slideAppend.sh
slideAppendGCT.sh
slideConvert
slideDirectory
slideDupIdentify.py
slideEMask
slideEntropySegmentation.py
slideExtract.py
slideExtractTiles.py
slideInfo
slideInfo.py
slideJobChecker
slideLookup
slideMacro
slideMacro.py
slideMask
slideMoveNewWSI.py
slideNormalize
slideRename
slideRename.py
slideThumb
slideThumb.py
slideQuantify_v1
slideQuantify_v1_1_expresshist_mask.sh
slideQuantify_v1_2_expresshist_tile.sh
slideQuantify_v1_3_tile_normalizing.sh
slideQuantify_v1_4_cellprofiler.sh
slideQuantify_v1_5_wrapup.sh
slideQuantify_v2
slideQuantify_v2_1_entropy_segmentation.sh
slideQuantify_v2_2_extract_tiles.sh
slideQuantify_v2_3_tile_normalizing.sh
slideQuantify_v2_4_cellprofiler.sh
slideQuantify_v2_5_wrapup.sh
slideQuantifyOSX
slideQuantify_cellprofiler.sh
slideQuantify_mask.sh
slideQuantify_normalizing.sh
slideQuantify_tiling.sh
slideQuantify_wrapup.sh
Conda version (default/preferred)
Homebrew version
Rocky 8 Conda version (default/preferred)
Ubuntu 16.04 LTS
Ubuntu 12.04
CentOS7 Conda version with modules
Administrator version