A subscription to JoVE is required to view this content. Sign in or start your free trial.

Method Article

A Shape Analysis Algorithm Quantifies Spatial Morphology and Context of 2D to 3D Cell Culture for Novel Quantitation of Phenotypes

75 views

DOI:

10.3791/71066

July 21st, 2026

In This Article

Summary

This article explains how novel morphological features in cells and organoids can be quantified using the linearized compressed polar coordinates (LCPC) transform, a spatial algorithm that captures properties that traditional metrics, such as area, volume, and surface area, cannot. Best practices for shape orientation and alignment are discussed.

Abstract

Numerous studies have shown that the morphological phenotype of a cell or organoid correlates with its susceptibility to anti-cancer agents. However, traditional methods of measuring phenotype rely on spatial metrics such as area, volume, perimeter, and signal intensity, which work but are limited. These approaches cannot measure many crucial features of spatial context, such as chirality, a property of left- and right-handedness. Volume cannot be used to register chirality because the left and right shoes have the same volume. Though spatial context in the form of chirality, gravity direction, and polarity axis is intuitive to humans, the traditional metrics used by cell biologists, pathologists, radiologists, and machine learning practitioners to date cannot capture these fundamental notions. The linearized compressed polar coordinates (LCPC) transform is a novel algorithm that can capture spatial context unlike any other metric. The LCPC transform translates a two-dimensional (2D) contour into a discrete sinusoidal wave by overlaying a grid system that tracks the points of intersection between the contour and the grid lines. It turns the contour into a sequence of pairs of discrete coordinates, with the independent coordinate (x-coordinate) corresponding to consecutive positions in 2D space. Each dependent coordinate (y-coordinate) consists of the distance between an intersection of the contour and gridline to the origin or baseline of the grid system. In the form of a discrete sinusoid wave, the Fast Fourier Transform is then applied to the data. In this way, the shapes of cells in 2D and 3D cell culture are systematically and multidimensionally represented, enabling robust quantitative stratification that will reveal insights into treatment resistance.

Introduction

Three-dimensional (3D) organoid culture has proven superior to two-dimensional (2D) cell culture in mimicking in vivo biology1,2. Organoids have become indispensable in cancer research for screening for effective treatments and for gaining insights into disease progression3,4,5,6. While it is well known in cancer biology that distinctions in morphology correlate with distinct biological behavior of cells and tissues, the field relies on traditional shape metrics that are lim....

Access restricted. Please log in or start a trial to view this content.

Protocol

Primary human cells used in this study were obtained and cultured under ethics approvals and informed consent procedures previously reported17. Images presented here were generated from those approved cell cultures and are published for the first time. Tissue specimens were collected at Brigham and Women’s Hospital and the University of California, San Francisco under Institutional Review Board (IRB)-approved protocols from patients who provided informed consent for research use of their tissues, as previously described17. No additional human specimen collection was performed for this study.

Access restricted. Please log in or start a trial to view this content.

Results

The radial grid LCPC transform applied to breast cancer organoids

3D organoids and tumors can adopt a variety of shapes, some of which are obviously different to the human eye, even though traditional metrics yield statistically insignificant differences. On the other hand, organoids can also exhibit shapes that seem heterogeneous, and thus insignificant, to the human eye, masking recurring subtle morphologies that represent distinct subtypes. Human primary breast organoids we.......

Access restricted. Please log in or start a trial to view this content.

Discussion

As with any computational tool, the quality of the output depends on whether the inputs adhere to the expected rules around which the tool was designed. The following rules should be followed and used as quality control checks when utilizing the provided Python scripts. First, make sure that the open masks are blue lines on a white background. Blue was an arbitrary decision and has no significance, but the scripts that perform the LCPC transform were written to search for blue pixels on a white background. Second, do not.......

Access restricted. Please log in or start a trial to view this content.

Disclosures

The authors have no conflicts of interest to disclose. The LCPC transform was commercialized as the software product “Shape Genie” by BrainScanology, Inc., but the patent applications were withdrawn, and the company was dissolved. This study is available as a preprint in BioRxiv, as cited in the listed reference47. Figure 4 shows previously unpublished views generated from the 3D imaging dataset reported31 and provided by Gkontra; we have rightfully acknowledged them. Figure 3 and Supplementary Figure 1 show previously unpublished images derived from primary human cell cultures established under the ethics approvals and informed consent procedures reported21 by a co-author. No additional human specimen collection was performed for this study.

Acknowledgements

We would like to acknowledge Duane Nichols, a high school science teacher who passed away from colon cancer. This inspired the invention of the LCPC transform to characterize the morphology of colon polyps. Second, we would also like to thank Thuan Trinh, who suffered from Bipolar Disorder 2 and inspired the enhancement of the LCPC transform, such as adding markers to capture spatial context. The LCPC transform is informally called the Nguyen-Nichols-Trinh (NNT) transform. Third, we would like to thank Paul Leal, the lead angel investor, who supported the startup that attempted to commercialize the LCPC transform. Fourth, we would like to thank Polyxeni Gkontra, Ph.D.....

Access restricted. Please log in or start a trial to view this content.

Materials

List of materials used in this article
NameCompanyCatalog NumberComments
Add 100 pixels to margins.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Average K-means Nearest Neighbor via sklearn version 1.6.1SciKit Learnhttps://scikit-learn.org/stable/modules/generated/sklearn.neighbors.NearestNeighbors.htmlUsed the NearestNeighbors function within the sklearn.neighbors package
BLUE_Color Extraction.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Chamfer Distance via scipy version 1.15.1SciPyhttps://docs.scipy.org/doc/scipy/reference/generated/scipy.spatial.cKDTree.htmlUsed cKDTree function within scipy.spatial package
Cliff's DeltaTissue Spatial Geometrics Labhttps://github.com/dh2nguyen/Cliffs-DeltaCreated an implementation of Cliff's Delta via the Python language
Enlarge Image Size by 3X.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Fiji/ImageJ v2.14.0ImageJ.nethttps://imagej.net/
Flip images HORIZontally.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Flip images VERTically.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
GREEN_Color Extraction.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Isolate Objects Empty Blue.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
MacOS Preview Version 11.0 Apple Inchttps://support.apple.com/guide/preview/welcome/mac
Master Script_Parallel Grid LCPC_DN_071025.ipynbTissue Spatial Geometrics LabGitHub Repo Address: https://github.com/dh2nguyen/Radial-Grid-LCPC-TransformPython Script in a Jupyter Notebook
Master Script_Radial Grid LCPC_bBoxCentered.ipynbTissue Spatial Geometrics LabGitHub Repo Address: https://github.com/dh2nguyen/Parallel-Grid-LCPC-TransformPython Script in a Jupyter Notebook
Microsoft PaintMicrosofthttps://www.microsoft.com/en-us/windows/tips/paintWas mentinoed as a potential useful tool for manual segmentation, but not used in this study
Microsoft Powerpoint Version 16.109.3Microsofthttps://www.microsoft.com/en-us/microsoft-365/p/powerpoint/cfq7ttc0pbmc
PINK_Color Extraction.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Principal Component Analysis (PCA) via sklearn version 1.6.1SciKit Learnhttps://scikit-learn.org/stable/api/sklearn.decomposition.htmlUsed the PCA function with the sklearn.decomposition package
RED_Color Extraction (Mac).ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
RED_Color Extraction (Windows).ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Resize width to 400 pixels but constrain aspect ratio.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Rotate CLOSED Object Horizontal by Longest Internal Length.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Rotate Green Line_v3.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Rotate images 90CCW.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Rotate images 90CW.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Thicken Blue Lines.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook
Trim margin to 1-pixel border.ipynbTissue Spatial Geometrics LabGitHub Repo Name: Pre-Processing-Tools-for-LCPC-Transform | GitHub Repo Address: https://github.com/dh2nguyen/Pre-Processing-Tools-for-LCPC-TransformPython Script in a Jupyter Notebook

Reprints and Permissions

Tags

Morphological PhenotypeSpatial ContextLCPC TransformChirality AnalysisFast Fourier TransformQuantitative Stratification3D Cell Phenotypes
Video Coming Soon