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
The exact command that failed. This is what you typed at the command line, including any options.
TopoStats version, this is reported by topostats --version
Operating System and Python Version
Describe the bug
When processing some Highspeed images, for some reason the magnitude of the height is about 10 times higher than the real one.
For instance, while manually analyzing some images you get a height of around 1.5-1.8nm the output is giving around 11-8nm being 8 if I increase the above threshold for grains as maximum as possible for the mask to fit.
Could it be somehow that the channel is being read wrong? Using another set of images it worked fine
Copy of the output
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [318] [230523-01-0048_nigericina_61-1017_1015] : Coloured regions
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [416] [230523-01-0048_nigericina_61-1017_1015] : Extracted bounding boxes (above)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [171] [230523-01-0048_nigericina_61-1017_1015] : Grains found for direction above : 2
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [186] [230523-01-0048_nigericina_61-1017_1015] : Plotting Grain Finding Images
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [188] [230523-01-0048_nigericina_61-1017_1015] : Plotting above Grain Finding Images
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting mask_grains image
[Wed, 02 Oct 2024 18:08:55] [WARNING ] [topostats] [io.py] [1110] Item 'grain_trace_data' is None. Skipping.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [io.py] [1138] Cannot save key 'grain_trace_data' to HDF5. Item type: <class 'NoneType'>. Skipping. One of data, shape or dtype must be specified
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting labelled_regions_01 image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting tidied_border image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting removed_noise image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting removed_small_objects image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting labelled_regions_02 image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1015] : Plotting coloured_regions image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [plottingfuncs.py] [307] [230523-01-0048_nigericina_61-1017_1013_above_masked] : Image saved to : output\processed\230523-01-0048_nigericina_61-1017_1013_above_masked.png | DPI: 100
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [280] [230523-01-0048_nigericina_61-1017_1013] :*** Grain Statistics ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1013] : Processing grain: 0
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [plottingfuncs.py] [307] [230523-01-0048_nigericina_61-1017_1014_above_masked] : Image saved to : output\processed\230523-01-0048_nigericina_61-1017_1014_above_masked.png | DPI: 100
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [280] [230523-01-0048_nigericina_61-1017_1014] :*** Grain Statistics ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1014] : Processing grain: 0
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [plottingfuncs.py] [307] [230523-01-0048_nigericina_61-1017_1016] : Image saved to : output\processed\230523-01-0048_nigericina_61-1017_1016.png | DPI: 100
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [162] [230523-01-0048_nigericina_61-1017_1016] :*** Grain Finding ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [358] [230523-01-0048_nigericina_61-1017_1016] : Thresholding method (grains) : absolute
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [367] [230523-01-0048_nigericina_61-1017_1016] : Finding above grains, threshold: (5)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [utils.py] [165] [230523-01-0048_nigericina_61-1017_1016] : Masking (above) Threshold: 5
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [169] [230523-01-0048_nigericina_61-1017_1016] : Labelling Regions
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [147] [230523-01-0048_nigericina_61-1017_1016] : Tidying borders
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [386] [230523-01-0048_nigericina_61-1017_1016] : Removing noise (above)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [287] [230523-01-0048_nigericina_61-1017_1016] : Area thresholding grains | Thresholds: L: 1.12,U: 5625.00 px^2, L: 0.50, U: 2500.00 nm^2.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [392] [230523-01-0048_nigericina_61-1017_1016] : Removing small / large grains (above)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [287] [230523-01-0048_nigericina_61-1017_1016] : Area thresholding grains | Thresholds: L: 2.25,U: 6750.00 px^2, L: 1.00, U: 3000.00 nm^2.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [169] [230523-01-0048_nigericina_61-1017_1016] : Labelling Regions
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [411] [230523-01-0048_nigericina_61-1017_1016] : Region properties calculated (above)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [318] [230523-01-0048_nigericina_61-1017_1016] : Coloured regions
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grains.py] [416] [230523-01-0048_nigericina_61-1017_1016] : Extracted bounding boxes (above)
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [171] [230523-01-0048_nigericina_61-1017_1016] : Grains found for direction above : 1
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [186] [230523-01-0048_nigericina_61-1017_1016] : Plotting Grain Finding Images
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [188] [230523-01-0048_nigericina_61-1017_1016] : Plotting above Grain Finding Images
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting mask_grains image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting labelled_regions_01 image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting tidied_border image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting removed_noise image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting removed_small_objects image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting labelled_regions_02 image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [194] [230523-01-0048_nigericina_61-1017_1016] : Plotting coloured_regions image
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1013] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [480] [230523-01-0048_nigericina_61-1017_1013] Calculation of DNA Tracing disabled, returning grainstats data frame.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [647] [230523-01-0048_nigericina_61-1017_1013] :*** Image Statistics ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [io.py] [1189] [230523-01-0048_nigericina_61-1017_1013] : Saving image to .topostats file
[Wed, 02 Oct 2024 18:08:55] [WARNING ] [topostats] [io.py] [1110] Item 'grain_trace_data' is None. Skipping.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [io.py] [1138] Cannot save key 'grain_trace_data' to HDF5. Item type: <class 'NoneType'>. Skipping. One of data, shape or dtype must be specified
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1014] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1014] : Processing grain: 1
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [plottingfuncs.py] [307] [230523-01-0048_nigericina_61-1017_1015_above_masked] : Image saved to : output\processed\230523-01-0048_nigericina_61-1017_1015_above_masked.png | DPI: 100
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [280] [230523-01-0048_nigericina_61-1017_1015] :*** Grain Statistics ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1015] : Processing grain: 0
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1014] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [480] [230523-01-0048_nigericina_61-1017_1014] Calculation of DNA Tracing disabled, returning grainstats data frame.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [processing.py] [647] [230523-01-0048_nigericina_61-1017_1014] :*** Image Statistics ***
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [io.py] [1189] [230523-01-0048_nigericina_61-1017_1014] : Saving image to .topostats file
[Wed, 02 Oct 2024 18:08:55] [WARNING ] [topostats] [io.py] [1110] Item 'grain_trace_data' is None. Skipping.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [io.py] [1138] Cannot save key 'grain_trace_data' to HDF5. Item type: <class 'NoneType'>. Skipping. One of data, shape or dtype must be specified
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1015] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:55] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1015] : Processing grain: 1
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [plottingfuncs.py] [307] [230523-01-0048_nigericina_61-1017_1016_above_masked] : Image saved to : output\processed\230523-01-0048_nigericina_61-1017_1016_above_masked.png | DPI: 100
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [processing.py] [280] [230523-01-0048_nigericina_61-1017_1016] :*** Grain Statistics ***
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [grainstats.py] [220] [230523-01-0048_nigericina_61-1017_1016] : Processing grain: 0
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1015] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [processing.py] [480] [230523-01-0048_nigericina_61-1017_1015] Calculation of DNA Tracing disabled, returning grainstats data frame.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [processing.py] [647] [230523-01-0048_nigericina_61-1017_1015] :*** Image Statistics ***
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [io.py] [1189] [230523-01-0048_nigericina_61-1017_1015] : Saving image to .topostats file
[Wed, 02 Oct 2024 18:08:56] [WARNING ] [topostats] [io.py] [1110] Item 'grain_trace_data' is None. Skipping.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [io.py] [1138] Cannot save key 'grain_trace_data' to HDF5. Item type: <class 'NoneType'>. Skipping. One of data, shape or dtype must be specified
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [grainstats.py] [311] [230523-01-0048_nigericina_61-1017_1016] : Height profiles extracted.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [processing.py] [480] [230523-01-0048_nigericina_61-1017_1016] Calculation of DNA Tracing disabled, returning grainstats data frame.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [processing.py] [647] [230523-01-0048_nigericina_61-1017_1016] :*** Image Statistics ***
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [io.py] [1189] [230523-01-0048_nigericina_61-1017_1016] : Saving image to .topostats file
[Wed, 02 Oct 2024 18:08:56] [WARNING ] [topostats] [io.py] [1110] Item 'grain_trace_data' is None. Skipping.
[Wed, 02 Oct 2024 18:08:56] [INFO ] [topostats] [io.py] [1138] Cannot save key 'grain_trace_data' to HDF5. Item type: <class 'NoneType'>. Skipping. One of data, shape or dtype must be specified
![230523-01-0048_nigericina_61-1017_0_above_masked](https://github.com/user-attachments/assets/a12df6e1-02c1-4ac0-8e2b-98cadc10f57e)
The first thing to check is whether this problem persists in the most recent version of TopoStats which is v2.2.1.
Ideally this should be done in a clean virtual environment with the latest versions of all packages installed. This can be done after creating and activating your virtual environment using...
pip install --no-cache-dir topostats==2.2.1
I notice also that you've indicated that you are running GNU/Linux but some of the package paths that are listed by pip freeze point to files that look like they are on a Windows system as they include C:/ are you running Windows Subsystem for Linux perhaps?
Hi, I got an issue opening the tiket and it looks like the dropdown menues went to the default position
Topostats version 2.2.1
Python 3.10.13
OS: Windows
let me see if i can edit it from the top so it does not create confusion
Checklist
topostats process --core 1
.topostats --version
Describe the bug
When processing some Highspeed images, for some reason the magnitude of the height is about 10 times higher than the real one.
For instance, while manually analyzing some images you get a height of around 1.5-1.8nm the output is giving around 11-8nm being 8 if I increase the above threshold for grains as maximum as possible for the mask to fit.
Could it be somehow that the channel is being read wrong? Using another set of images it worked fine
Copy of the output
Include the configuration file
To Reproduce
https://drive.google.com/drive/folders/1qzD15wpRilwI6A57jkYdb2s6XaGluK8j?usp=sharing
TopoStats Version
2.2.1
Python Version
3.10.13
Operating System
Windows
Python Packages
The text was updated successfully, but these errors were encountered: