$$\rightleftharpoonup{xx}$$
$$\longleftharp{xx}$$,
$$\longrightharp{xx}$$,
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 were extracted from patients and cultured in 3D following a previously published protocol17,20,21. Figure 3A shows three morphological categories accessible based on visual inspection: a cystic phenotype, a polycystic phenotype, and a dense polycystic phenotype. Figure 3B shows that the outer contours of these organoids were manually segmented and their pure shape was extracted, which removes the effect of size on their shapes. Because the contours were circular in nature, the radial grid LCPC transform was applied to the pure shapes, followed by PCA. Note that the contours overlayed on Figure 3B were rotated such that the longest internal line is vertical, meaning their orientations are not the same as in their source images. Figure 3B shows a dot plot of the first two principal components (PCs), and K-means clustering identified three clusters: 0, 1, and 2. Silhouette Scores (SS) confirmed the likely existence of two separate clusters between Clusters 0 vs. 1 (SS = 0.68) and Clusters 1 vs. 2 (SS = 0.69), while indicating a weak separation between Clusters 0 vs 2 (SS = 0.27). Despite the weak Silhouette Score between Clusters 0 and 2, labeling the data points with the pure shape of each data point justifies that Cluster 2 represents the most distinct phenotype: highly asymmetrical, non-circular contours (the thickness of the contours does not matter in this case).
While pure shape removes the effect of size on shape, which is impossible when measuring area and volume, measuring the organoid contours at scale also reveals interesting insights. Figure 3C shows a 3D dot plot of the first three PCs resulting from the radial grid LCPC transform performed on contours as they were segmented from the images without any resizing. This approach means that the LCPC transform is measuring both the shape and size of the organoids simultaneously. Figure 3C shows that the polycystic and dense polycystic organoids are less densely packed compared to the cystic organoids. To quantify this expansion, Figure 3D shows the scatter of each phenotype in its shared PCA space. The average K-nearest Neighbor Distance (KNND) is calculated for each phenotype, which supports the visual assessment of decreasing density of the dots going from cystic organoids (KNND = 1.061) to polycystic organoids (KNND = 1.575) to dense polycystic organoids (KNND = 2.247); this decreased density of dots can also be interpreted as increased morphological heterogeneity of outer contours. Lastly, for a comparison of the LCPC transform to the traditional metric of area, Figure 3E shows that while there is a statistical significance between the area of cystic organoids vs. dense polycystic organoids (p = 0.016, Wilcoxon Rank-Sum Test), there is no indication based on area that there are three distinct morphological groups across the phenotypes as identified by K-means Clustering after pure shape LCPC analysis (Figure 3B) or that there is increasing morphological heterogeneity as shown by at-scale LCPC analysis (Figure 3C–D). Figure 3E shows a decreasing scatter of the data points going from cystic to polycystic to dense polycystic organoids, which is the opposite of what is observed by at-scale LCPC analysis (Figure 3C), highlighting that the spatial information captured by the LCPC transform is different from what area captures.
The same approach applied to individual 2D shapes in Figure 3, and Supplementary Figure 1 also applies to the contour of cells in 2D cell culture: single-cells (such as red blood cells) or clusters of cells (such as in cervical Pap smears). Pilot studies for each of these cases are described on videos: shape analysis of brain organoids that exhibit varying degrees of folding in their outer contour22; shape analysis of lung alveoli in situ, the same principles can be applied to analyzing 2D cell culture23; shape analysis of cervical tissue from Pap smears in which both the contour of the nucleus and of the cell membrane are simultaneously quantified via the radial grid LCPC transform24; shape analysis of red blood cells infected by malaria and cells adjacent to infected cells but are not themselves infected25; shape analysis of red blood cells affected by Sickle Cell Disease26.
The parallel grid system for measuring density or texture as an index of spatial information
Spatial information involves more than the usual notions of shape, such as squareness, roundness, and curvature, because it encompasses concepts such as texture and density. Complex tubular networks, such as blood vessels, or branching networks, such as cytoskeletal filaments, do not fit the notion of shape in the same sense as our geometry-based intuition of shapes, such as circles and polygons. However, density and texture are very useful notions of spatial information for understanding the structure and function of cells, organoids, and tumors. In dealing with how to quantify complex networks in fluorescence imaging, cell biologists measure features such as the average signal intensity within an image or the percentage of the total area of an image that contains a signal. These approaches recognize that there is more to spatial information than what is described in terms of geometry motifs.
The pattern of vascular networks within tissues, tumors, and organs on a chip is not easily defined by traditional geometry motifs, but benefits from the interpretation as texture and density. Vascular remodeling in tumor development and treatment resistance is a well-established feature of cancer (reviewed in27). Histopathological sections of 458 primary neuroblastic tumors were analyzed28, characterizing the density, size, and shape of total blood vessels and vascular segments. They found that blood vessels were larger, more abundant, and more irregularly shaped in tumors of patients with poor prognostic factors compared to the tumors of the favorable cohort. Interestingly, a term called “vessels that encapsulated tumor clusters” (VETC)29, was coined to describe a pattern of blood vessels that surround clusters of small tumors within a larger hepatocellular carcinoma and are associated with higher rates of metastasis and recurrence. The same group that coined the term later founded that VETC-positive hepatocellular carcinoma correlated with a positive response to treatment with the kinase inhibitor Sorafenib30. Thus, the ability to quantify vascular patterns is crucial for prognosis and understanding mechanisms of resistance.
For quantifying dense networks of tubes, islands, and branches, the parallel grid system of the LCPC transform is useful for measuring what can be called texture-density, instead of shape. As an example of how the parallel grid LCPC transform can do this, Figure 4A shows cardiac microvasculature patterns from a study of cardiac vasculature31: to the naked eye, objectively and quantitatively distinguishing the patterns between the infarcted areas and the areas at a region remote from the site of injury is very difficult. By extracting the mask of the blood vessels (Figure 4A Step 1) and applying the parallel grid LCPC transform, quantitative differences can be observed. First, to enhance the cleanliness of the data, each image was cropped with a circle of uniform diameter, and that is centered at the middle of the square image (Figure 4A Step 2), which ensures that each image has the same height and width regardless of rotations. Next, the cropped images are rotated such that the main axis of vessels (red double arrows in Figure 4A Step 1) is vertical (Figure 4A Step 3). Then, a blue line is applied to the circumference of the image to ensure that even images with sparse vascular patterns have the same diameter in terms of blue pixels (Figure 4A Step 4). Steps 3 and 4 were performed using the Fiji/ImageJ software (v2.14.0). Lastly, the parallel grid LCPC transform is applied (Figure 4A Step 5). Analyzing the results via PCA and plotting the first three PCs reveals that the infarcted regions cluster separately from the remote regions (Figure 4B). Calculations of Chamfer Distance (CD) quantify the visual patterns exhibited by the graphs. At 1-day after injury, the infarcted site exhibits a vascular pattern that is more distant from the basal condition (Basal vs. 1Day_infarct: CD = 83.89) than is the non-injured site (Basal vs 1Day_remote: CD = 53.95). At 1-day after injury, the non-injured remote site is closer to the injured site (1Day_remote vs 1Day_infarcxt: CD = 34.48) than it is to the basal condition. At 3-days after injury, the vascular patterns of the injured site and associated non-injured remote site exhibit drastic deviation from the basal condition and from each other (Basal vs. 3Days_Infarct: CD = 240.63; Basal vs. 3Days_Remote: CD = 67.28; 3Days_Remote vs. 3Days_Infarct: CD = 168.35). Very interestingly, at 7-days after injury, the vascular patterns of the injured site and the non-injured remote site occupy a 3D space that is approximately orthogonal to the basal condition, while aligned with each other at a distance that is closer than they were at 1-day post injury (CD = 24.76 for day 7 compared to 34.48 for day 1). The data suggest two things: (1) as healing progresses, the vascular pattern of the injured site and non-injured remote site adopts patterns that are distinct from the basal condition; (2) the reconstruction program activated at the injured site also triggers similar morphological changes at their associated non-injured remote sites.
As a reference for the versatility of the LCPC transform, the traditional metrics of percent area (Figure 5A) and total perimeter (Figure 5B) of blood vessels were calculated. While area and perimeter reveal changes between points in the time course, they do not provide coherent quantification of distinct spatial arrangements of vessels. Area and perimeter are abstractions that can represent many different vascular arrangements and thus are not informative about how the spatial arrangement of vessels is changing across the treatment conditions and time course. With an n = 3 for each group, the t-test and the Wilcoxon test are unreliable. Cliff’s Delta is nonparametric and works well to show a shift in the effect size. The major difference revealed by measuring the percent area of blood vessels is between the basal condition and the 7-day time points; for the total perimeter of blood vessels, the differences are between the basal condition vs. 1-day and the basal condition vs. 7-day. However, area and perimeter provide no indication that there are differences between the infarcted sites and their non-injured remote sites, which is very surprising given that the infarcted site was purposefully injured. Here is where the versatility of the LCPC transform emerges compared to traditional metrics. For each sample, the results of the FFT as part of the LCPC transform produce a set of magnitudes associated with a set of frequencies. The magnitudes of each frequency bin can be averaged and then compared across the treatment groups (Supplementary Figure 1). This allows for a simple assessment of which frequency bins exhibit the biggest differences between treatment groups. Figure 5C shows six bins that exhibit clear effect size differences between various treatment groups, especially between the infarcted sites and their associated non-injured remote sites, which area and perimeter indicated had no difference. The independent values in these six bins provide multiple indices that show quantitative differences between treatment conditions. Interestingly, the pattern between the groups for Bin 1 of the LCPC transform results is similar to the result obtained from measuring total perimeter. The other indices, however, reveal quantitative differences that are hidden in both area and perimeter. Indices unique to the basal condition: Bin 49, Bin 56, Bin 21. Indices unique between the Day 1 groups: Bin 1, Bin 6, Bin 49. Indices unique to the Day 3 groups: Bin 6, Bin 112, Bin 49. Indices unique to the Day 7 groups: Bin 6, Bin 49, Bin 112. These data highlight the versatility and precision of the LCPC transform over the traditional approaches of area and perimeter.

Figure 1: Description of the radial grid system of the LCPC transform. (A) Step 1: The shape of interest is segmented and extracted as a blue mask. Step 2: A bounding box (a.k.a. the smallest rectangle encasing and touching the object on all four sides) is determined for the mask. A system of radial grid lines originating from the center of the bounding box is overlaid onto the mask. The decision to pick the center of the bounding box instead of the centroid of the object as the origin was arbitrary. Step 3: The distance of each intersection between a gridline and the shape is calculated relative to the origin. Grid lines that have more than one intersection sum all those intersection distances into one value for that grid line. Step 4: The FFT is applied to convert the data from Step 3 into a frequency plot, a static multidimensional representation (Step 5) of the shape in Step 1. Step 6: A scalar value can be created from Step 5 via an index. See Figure 10 for a discussion on types of indices to calculate. (B) A flowchart showing a simplified description of the steps of the LCPC transform for the radial grid system. (C) Example shape themes for which the radial grid system is optimal. The shapes were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.

Figure 2: Description of the parallel grid system of the LCPC transform. (A) Step 1: The shape of interest is manually segmented and extracted as a binary mask. Step 2: A parallel grid system is overlaid onto the shape, which is rotated such that the base is horizontal. Step 3: The distance of each intersection between a gridline and the shape is calculated relative to the baseline. Grid lines that have more than one intersection sum all those intersection distances into one value for that grid line. Step 4: The FFT is applied to convert the data from Step 3 into a frequency plot, a static multidimensional representation of the shape in Step 1. Step 6: A scalar value can be created from Step 5 via an index. See Figure 10 for a discussion on types of indices to calculate. (B) A flowchart that provides a simplified description of the LCPC transform steps for the parallel grid system. (C) Examples shape themes for which the parallel grid system is optimal. The shapes were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.

Figure 3: The LCPC transform objectively identifies morphological subtypes of breast cancer organoids. (A) Primary human breast organoids were derived as previously reported17,20,21and as described in Supplementary File 1. Three phenotypes could be observed and classified based on visual inspection: cystic, polycystic, and dense polycystic. Scale bar = 50 µm. (B) The outer contours of the organoids were manually segmented (Supplementary Figure 2; criteria described in Supplementary File 1), and the pure shape of these contours was obtained. Note that the contours in the diagram are all rotated so that the longest internal line is vertical; thus, they do not match their original orientations. The radial grid LCPC transform was then applied, and the results were analyzed via PCA. K-means Clustering identified three clusters (0, 1, and 2), and Silhouette Scores (SS) were calculated to confirm their existence. Cluster 0 vs 1, SS: 0.68; Cluster 0 vs 2, SS: 0.27; Cluster 1 vs 2, SS: 0.69. (C) The outer contours of the organoids were also measured using the radial grid LCPC transform on their at-scale shapes, i.e., the shapes as they appear in the images relative to each other, without any resizing. The inset is enlarged to show the looser packing of polycystic and dense polycystic organoids compared to the cystic organoids. For B and C: Green = cystic, Purple = polycystic, Yellow = dense polycystic. (D) The first three PC values are plotted for each phenotype separately, and the average KNND is calculated to show that the cystic phenotype is most densely packed, while the polycystic and dense polycystic phenotypes exhibit less density (meaning more heterogeneity). Though plotted separately, all three phenotypes share the same PCA space. For the cystic phenotype, the average KNND was calculated from the inset because outliers present only in this phenotype skew the calculation. Average KNNDs: Cystic, 1.061; Polycystic, 1.575; Dense Polycystic, 2.247. (E) Box plots of the area of the organoids show a decreasing scatter of the data points from cystic to polycystic to dense polycystic organoids, which is the opposite of what is observed in at-scale LCPC analysis (Figure 3C), highlighting that the spatial information captured by the LCPC transform differs from what the area captures. Please click here to view a larger version of this figure.

Figure 4: Measuring texture-density with the parallel grid LCPC transform. (A) Photomicrographs of microvasculature in cardiac tissue were previously obtained in a different study31,32. The images are not reproduced from these studies as such; rather, they represent new views generated from the same original 3D imaging dataset reported31 and provided by Gkontra. Although the dataset has been previously published, the specific images shown here are published for the first time. Images from the remote sites that were non-injured at each time point are not shown. Step 1: A 2D mask is generated, and the general axis of alignment of vessels is determined (red double-arrow). Step 2: A circular region centered on the midpoint of the image is obtained in order to force each image to have the same height after the images are rotated to varying degrees in the next step (rotating square images to varying degrees will alter the height of the image depending on the degree of rotation). Step 3: Each image is rotated such that the general axis of alignment determined in Step 1 is vertical. Step 4: A uniform blue border is applied around each image to ensure that each image has the same diameter, because images with sparser densities can be shorter (example: see “7 Days Post Myocardial Infarction” in Step 3). Step 5: The parallel grid LCPC transform is applied. (B) Dot plots of the first three PCs of the output from the parallel grid LCPC transform (Purple: basal condition, Green: infarcted site, Yellow: non-injured site remote to the infarcted site). See the results section for Chamfer Distance calculations at each time point between the three conditions. Please click here to view a larger version of this figure.

Figure 5: The LCPC transform measures features hidden in the area and perimeter. For comparison with traditional shape metrics, (A) the percent area and (B) the total perimeter of the vascular networks were measured. (C) To show the precision that can be obtained from the result of the LCPC transform, the value of individual frequency bins resulting from the FFT was compared (Supplementary Figure 1). Six frequency bins were chosen as indices for objectively quantifying differences between treatment groups. For all panels, due to the limited sample size of each group (n = 3), the nonparametric Cliff’s Delta for effect size was calculated instead of a p-value from the Wilcoxon Rank-Sum Test. Please click here to view a larger version of this figure.

Figure 6: The importance of orienting shapes systematically for extracting clean data. (A) An example of identical shapes that are mirror images of each other, and how the parallel grid system determines their distinct orientation, and thus will produce different results. (B) An example of how to flip Shape 2 horizontally, such that its orientation now matches Shape 1 and becomes a fairer comparison to Shape 1. In this configuration, the parallel-grid LCPC transform yields the same results for both Shape 1 and Shape 2. This alteration of orientation should only be done if there is no spatial context that suggests that Shape 2 should not be modified. (C) An example of four variations of objects that look like the number “3”, with some that face the wrong direction. (D) An example of how to orient each object to maximize the cleanliness of the data that will result from the parallel grid LCPC transform. (E) An example of measuring the wider bulge of the items in Panel C based on the same orientation rules as for Panel D. (F) An example of measuring the large bulbs of the items in Panel C but keeping their alignment context as in Panel D. The motivation of keeping the alignment rules in Panel D is to dissect the contribution of the spatial information in the wider bulge relative to the contribution of the narrower bulge within these rules. See Supplementary Figure 3 for the FFT spectra associated with C–F. The images in A–B are icons from Microsoft PowerPoint. The shapes in C-F were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.

Figure 7: The inability of traditional shape metrics to register obvious context. (A) The series of checkmarks is the same shape but increases in size from left to right. In this series, the area of each checkmark is different while the shape concept remains the same: that is, they remain the same style of checkmarks. (B) A square is rotated about its center by 45 degrees until its shape concept becomes what humans call a diamond. While the shape concept of a square is very distinct from that of a diamond, the in-between rotations are subjectively interpreted as either “tilted squares” or “tilted diamonds”. The LCPC transform can objectively and precisely measure the difference in each step in this series. The shapes were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.

Figure 8: Explanation of pure shape vs. at-scale shape. Measuring objects “At-Scale” means measuring the shape of objects according to their original sizes relatively to each other. “Pure Shape”, on the other hand, means measuring the shape of different objects at a similar scale, which removes the effect of size on the shape. It is important to find an objective manner in which to resize the objects being compared. The longest internal line is often an optimal choice (Step 1). Both objects are rotated such that the longest internal line is horizontal (Step 2). In this case, the two objects are also rotated such that the indented side faces down. Next, the width of each object, which is now the same magnitude as the longest internal line of each object, is resized to be 400 pixels wide while also constraining the aspect ratio to prevent skewing the objects (Step 3). Lastly, it is optional to rotate the resized objects 90 degrees (Step 4) (in this case, counterclockwise) before applying the LCPC transform. Please click here to view a larger version of this figure.

Figure 9: Example of spatial markers for cancer research. (A) A hypothetical example of cells migrating in 2D culture by expanding their lamellipodia in the direction of migration. In the context of migratory morphology of epithelial cells, orienting the contour of each cell such that the longest internal line that aligns with the axis of migration is vertical makes the most sense for capturing the spatial context. (B) Hypothetical examples of tumors or pre-cancerous lesions that grow within an encasement that does not change shape. The lesion grows from a stalk, which is the central support structure. As the lesion grows or shrivels, its contour moves towards or away from the internal wall of the encasement. The dotted lines represent a rational and objective way to define how much of the encasement should be traced (orange line), such that not too little or too much extra information is added. (C) Option 1 shows the parallel grid LCPC transform applied to the contour of the lesions without context of where the encasement is located. Option 2 shows the same, but including the spatial context of where the encasement is located. As an example, the red dots represent intersections between the grid line (black arrow, green line) and the contour. Option 2 results in each gridline making a fourth intersection that does not exist in Option 1, which quantitatively adds spatial context to the result in Option 2 that is completely absent in Option 1. The shapes were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.

Figure 10: Hypothetical FFT results and common indices that can be derived from them. (A) The frequency plot resulting from the FFT of two hypothetical shapes is displayed. Since the magnitudes in Bin 3 and Bin 4 exhibit the opposite trend, a ratio between these two bins will be a good index representing a difference between these two shapes. The red and green dotted lines represent other frequency bins that could be used to derive good indices. (B) A histogram of two hypothetical shapes whose FFT profiles exhibit a stepwise decreasing trend as a representation of their morphological differences. (C) A histogram of two hypothetical shapes whose FFT profiles differ most in the central region along the span of frequency bins. (D) Examples of hypothetical morphological features that may yield indices that correlate with their presence. The shapes were drawn in Microsoft PowerPoint. These images are created by authors and do not require any publication license or copyright permissions. Please click here to view a larger version of this figure.
Supplementary Figure 1: Box-whisker plots comparing the magnitudes of various frequency bins across the LCPC transform results of vascular networks. The LCPC transform of the vascular networks shown in Figures 4 and 5 yields a set of frequency bins and their magnitudes that represent each image. Box-whisker plots of the magnitudes in each bin are used to compare all treatment groups, identifying which bin best serves as an index for stratifying texture-density measured via the LCPC transform. Each box-whisker plot consists of n = 3 independent images. Please click here to download this file.
Supplementary Figure 2: Example of segmented breast tumor organoids. Organoids were manually segmented by an expert who routinely cultures them and views them under microscopy. This figure shows examples of segmented organoid contours. Scale bar for all microscopic images is 50 µm. Primary human cells used in this study were obtained and cultured under ethics approvals and informed consent procedures reported21. The images presented here derive from those approved cell cultures and are published for the first time. No additional human specimen collection was undertaken. Please click here to download this file.
Supplementary Figure 3: FFT spectra for shapes in Figure 6. The results of the FFTs for the shapes in Figure 6 are provided here so readers can understand the effect of altering shape orientation on their spatial information. The left column of graphs has unaltered y-axes, while the right column has truncated axes such that the smaller bin values can be visualized. (A) Spectra from the parallel grid LCPC transform of the four shapes in Figure 6C as they are displayed, meaning no re-orienting. (B) Spectra from the parallel grid LCPC transform of the shapes in Figure 6D, which have been re-oriented as described in the text. (C) Spectra from the parallel grid LCPC transform of shapes in Figure 6E. (D) Spectra from the parallel grid LCPC transform of shapes in Figure 6F for comparison with those in Figure 6E. Please click here to download this file.
Supplementary File 1: Extensive details on best practices for the LCPC transform. This supplementary file provides extensive discussion on best practices and further methodological notes. The outline of the document is as follows: Section 1 - Spatial context that area, volume, perimeter, and roughness cannot capture. Section 2 - Best practices for using the LCPC transform and interpreting results. Section 3 - Understand nature’s inherent polarity to maximize the LCPC transform. Section 4 - Interpreting FFT spectra resulting from the LCPC transform. Section 5 - How to orient shapes before measuring them with the LCPC transform. Section 6 - What is “Pure Shape” vs. “At Scale Shape”? Section 7 - Methodological notes on statistical methods. Section 8 - Methodological notes on cell culture and segmentation of organoids. Section 9 - Parameters of the FFT for those who code their own LCPC transform. Please click here to download this file.