Image processing script for calculation of local curvature and growth of tumoroids based on their shape.
pip install -r requirements.txt
Script requires *.csv files with the coordinates of the shapes. The shape should be closed. Please see exmaple in /examples
python curvature_GUI_stats.py
Curvature analysis for single shape:
- Browse - Select the folder with the example file
- Select the *.csv datafile with the coordinates of shape
- Verify the import parameters (default: 1608x1608 px). If the datafile name fits the pattern (* 3.csv, where 3 is the day), the day will be recognized automatically
- Add the curve Note: If you want to change some of the settings, please enter the updated values and press "Update settings" button
- Press "Save data" to save the analyzed datasets.
- Press "Save image" to save the top left panel (color mapping the shape with curvature values).
- Press "Save plot" to save all the generated layots of panels.
- "Clear last" or "Clear all" to remove the last/all shapes
Estimation of the absolute growth of tumoroid (requires two or more shapes):
- Add multiple shapes assigning various days for each shape Note: If you want different colors for each day instead of color mapping, check in "DAYS" . The order of the addiing of files IS IMPROTANT!
- Once two or more shapes were added, the script will automatically calculate the growth for each shape point (based on the resolution), splitting samples in pairs based on the set "day" property Note: If you want to change some of the settings, please enter the updated values and press "Update settings" button. The changes will be applied for all loaded shapes
- Press "Save data" to save the analyzed datasets.
- Press "Save image" to save the top left panel (color mapping the shape with curvature values).
- Press "Save plot" to save all the generated layots of panels.
- "Clear last" or "Clear all" to remove the last/all shapes
Comparison of day0-shape with day21-shape and a simulated shape in the case of uniform growth (requires two shapes):
- Add multiple shapes assigning various days for each shape Note: the selection of the day 0 and day21 shapes is suggested
- Change the default value of simulation growth Note: if the value is negative, the program will calculate the median growth between the shapes as a simulation growth rate
- Press "Simulation growth Note: the generated image is saved in the selected folder
- "Clear all" to remove the last/all shapes and proceed with the next shape