This Github repository is devoted to the development of the R package rPACI (R Placido Analysis of Corneal Irregularity), also available in the the CRAN repository.
Check out the rPACI shiny app.
## Contributors The contributors/developers of this project are: * Darío Ramos-López, University of Almería, Spain. dramoslopez at ual.es * Ana D. Maldonado, University of Almería, Spain. ana.d.maldonado at ual.es
To contribute to the package, report a bug, or any other issues, please use our GitHub repository rPACI.
## rPACI aim and description
This package performs analyses of corneal data obtained from a Placido disk corneal topographer, with the calculation of the Placido irregularity indices and the posterior analysis. The package is intended to be easy to use by a practitioner, providing a simple interface and yielding easily interpretable results.
A corneal topographer is an ophthalmic clinical device that obtains measurements in the cornea (the anterior part of the eye). A Placido disk corneal topographer makes use of the Placido disk Rowsey et al. (1981), which produce a circular pattern of measurement nodes. The raw information measured by such a topographer is used by practitioners to analyze curvatures, to study optical aberrations, or to diagnose specific conditions of the eye (e.g. keratoconus, an important corneal disease).
The rPACI package allows the calculation of the corneal irregularity indices described in Castro-Luna et al. (2020), Ramos-Lopez et al. (2013), and Ramos-Lopez et al. (2011). It provides a simple interface to read corneal topography data files as exported by a typical Placido disk topographer, to compute the irregularity indices mentioned before, and to display summary plots that are easy to interpret for a clinician.
We encourage the users to get started by reading the package’s vignettes. We recommend beginning with ‘Workflow of the rPACI package’ and then consulting the other vignettes for additional details.
## Corneal topography
The cornea is the external (outermost) part of the eye, and it is responsible for most of the eye’s refractive power. Given its importance in vision, its analysis is especially important in clinical ophthalmology, since it can be affected by several diseases (e.g., keratoconus). Besides, refractive surgery to correct vision defects acts on the cornea, changing its curvature. Thus, the correct analysis and diagnosis of the cornea are crucial for practitioners.
Corneal topography refers to the measurement of the corneal surface shape using an automated device, which is called a corneal topographer. Most corneal topographers used in clinical practice rely on the Placido disk technology (either alone or in combination with others, such as the Scheimpflug camera).
For a deeper insight about these and other related topics (corneal topography, Placido disk technology, keratoconus, …), we refer the reader to the rPACI’s vignette entitled ‘Corneal topographers and data formats’, or to the websites by University of Iowa Health Care and American Academy of Ophthalmology.
## rPACI’s file formats
The rPACI package is able to read corneal topography files in two different formats, by now. It will possibly be expanded in the future allowing formats used by other manufacturers. Both formats rely on plain text files. The first file format is basically the one employed by CSO topographers, but with some more flexibility. The second file format follows the structure used internally by rPACI. It has been developed to manage directly the datasets handled by the package, allowing to save and read data easily. These two formats are described in the next subsections.
You can find more details about supported formats in the vignette ‘Corneal topographers and data formats’.
### File format by CSO topographers
A corneal topography file exported by CSO topographers can be read directly in rPACI. The raw measurement file should have the following structure:
readCSO
, is able to detect the header lines (those that do not contain only real numbers) and to skip them.### File format by rPACI
rPACI also reads another format of corneal topography files. This format was designed to follow the internal datasets’ structure. A file formatted in this manner is obtained when using the writing functions of the package. It should have the following structure:
## Placido irregularity indices
The rPACI package is able to read corneal topography files and then analyze them. This analysis includes the computation of some Placido irregularity indices. The indices computed by rPACI allow to discriminate between normal and irregular corneas. Most of them were introduced and validated with real datasets in the scientific publications Ramos-Lopez et al. (2013), and Ramos-Lopez et al. (2011). An additional index, based on a naive Bayes classifier, was proposed later, and tested with a different database, in Castro-Luna et al. (2020). In these papers, all indices demonstrated a good sensitivity for the detection of keratoconus, a corneal disease.
Consult more information about the Placido irregularity indices in the vignette ‘Mathematical definition of the Placido irregularity indices’.
## Analyzing datasets
The package includes several easy-to-use functions that allow analyzing data from a single file or dataset, or from a folder (with several files either corresponding to the same or to different patients). All these functions include easily interpretable plots and yield well-formatted data.frames to facilitate the posterior analysis of results.
You can find more details about supported formats in the vignette ‘Workflow of the rPACI package’.