Abstract
To allow the comprehensive histological analysis of the whole intestine in one image, the tissue is often rolled to a spiral before imaging. This Swiss-rolling technique facilitates robust experimental procedures, but it limits the possibilities to comprehend changes along the intestine. Here, we present IntestLine, a Shiny-based open-source application to map imaging data of intestinal tissues in spiral shape onto a line. The mapping of intestinal tissues improves the visualization of the whole intestine in both proximal-distal and serosa-luminal axis, and facilitates the observation of location-specific cell types and markers. In summary, IntestLine serves as a tool to visualize and characterize intestine in future imaging studies.
Introduction
The mammalian intestine is a long, tube-like organ. To perform a comprehensive histological analysis of its entire length on a single microscope slide, researchers often use the "Swiss-rolling" technique, where the tissue is rolled into a tight spiral before being sectioned and imaged. While this method is experimentally robust, it creates a major visualization challenge. The natural axes of the organ—the proximal-distal axis (lengthwise) and the serosa-luminal axis (from the outer wall to the inner chamber)—become obscured within the artificial geometry of the spiral. This makes it incredibly difficult for researchers to intuitively grasp spatial trends or identify localized abnormalities. Previous attempts to "unroll" these images often relied on rigid mathematical models that fail to account for the non-uniform thickness and irregularities of real biological tissue.
IntestLine addresses this by providing an intuitive linear coordinate system. By restoring the linear view, biological patterns that appear as noise in a spiral suddenly align into clear, interpretable structures.
Methods
IntestLine is an open-source tool built on the R Shiny framework, designed for flexibility and ease of use. Instead of forcing the tissue into a perfect mathematical spiral, IntestLine uses a flexible, semi-manual approach:
- Input: Users upload a CSV file containing cell locations (XY coordinates) and marker intensities, typically generated from multiplexed imaging platforms like CODEX.
- Base Layer Selection: The user defines a "center" point and then manually selects a series of points along the "base layer" (the skeleton of the tissue) from the inner (distal) to the outer (proximal) side.
- Mapping: The software assigns every cell in the dataset to its nearest point on this manually defined base layer.
- Filtering: To ensure accuracy, the tool calculates a "thickness" (distance from the cell to the base layer) and a Z-score for these distances. Users can set thresholds to filter out "noisy" assignments—cells that fall into the gaps between layers of the roll.
- Transformation: The final output maps the cells onto a new 2D plane where the X-axis represents the cumulative length along the intestine and the Y-axis represents the tissue thickness.
Results and Discussion
The application was validated using a CODEX image of a murine intestine containing 150,793 cells and a 15-plex antibody panel. Using 1,059 manually selected base layer points, the authors successfully assigned over 93% of the cells to the correct layer.
The linear representation significantly enhanced diagnostic power. For instance, the authors identified regions where markers like Ki67 (proliferation) and Lysozyme (Paneth cells) were unexpectedly low—a pattern that was obscured in the spiral view but stood out clearly in the linear mapping. Furthermore, markers like Villin (epithelium) and Olfm4 (stem cells) appeared as distinct, continuous bands, facilitating the study of the serosa-luminal axis.
While the current version requires manual base layer definition, which may be time-consuming for large cohorts, it ensures high accuracy for irregular tissues. Future work may extend this logic to 3D volumes or integrate it with spatial transcriptomics platforms like 10x Visium.
Data Availability
Source code can be found at Zenodo (https://doi.org/10.5281/zenodo.7081864) and GitHub (https://github.com/JiangyanYu/IntestLine). An open-source web application is available at FASTGenomics (https://beta.fastgenomics.org/a/intestline).
Summary updated