PyVisualFields: A Python Package for Visual Field Analysis
- PMID: 36745440
- PMCID: PMC9910386
- DOI: 10.1167/tvst.12.2.6
PyVisualFields: A Python Package for Visual Field Analysis
Abstract
Purpose: Artificial intelligence (AI) methods are changing all areas of research and have a variety of capabilities of analysis in ophthalmology, specifically in visual fields (VFs) to detect or predict vision loss progression. Whereas most of the AI algorithms are implemented in Python language, which offers numerous open-source functions and algorithms, the majority of algorithms in VF analysis are offered in the R language. This paper introduces PyVisualFields, a developed package to address this gap and make available VF analysis in the Python language.
Methods: For the first version, the R libraries for VF analysis provided by vfprogression and visualFields packages are analyzed to define the overlaps and distinct functions. Then, we defined and translated this functionality into Python with the help of the wrapper library rpy2. Besides maintaining, the subsequent versions' milestones are established, and the third version will be R-independent.
Results: The developed Python package is available as open-source software via the GitHub repository and is ready to be installed from PyPI. Several Jupyter notebooks are prepared to demonstrate and describe the capabilities of the PyVisualFields package in the categories of data presentation, normalization and deviation analysis, plotting, scoring, and progression analysis.
Conclusions: We developed a Python package and demonstrated its functionality for VF analysis and facilitating ophthalmic research in VF statistical analysis, illustration, and progression prediction.
Translational relevance: Using this software package, researchers working on VF analysis can more quickly create algorithms for clinical applications using cutting-edge AI techniques.
Conflict of interest statement
Disclosure:
Figures






Similar articles
-
An intuitive Python interface for Bioconductor libraries demonstrates the utility of language translators.BMC Bioinformatics. 2010 Dec 21;11 Suppl 12(Suppl 12):S11. doi: 10.1186/1471-2105-11-S12-S11. BMC Bioinformatics. 2010. PMID: 21210978 Free PMC article.
-
plotnineSeqSuite: a Python package for visualizing sequence data using ggplot2 style.BMC Genomics. 2023 Oct 3;24(1):585. doi: 10.1186/s12864-023-09677-8. BMC Genomics. 2023. PMID: 37789265 Free PMC article.
-
The visualFields package: a tool for analysis and visualization of visual fields.J Vis. 2013 Mar 14;13(4):10. doi: 10.1167/13.4.10. J Vis. 2013. PMID: 23492926 Free PMC article.
-
Statistics and pitfalls of trend analysis in cancer research: a review focused on statistical packages.J Cancer. 2020 Mar 4;11(10):2957-2961. doi: 10.7150/jca.43521. eCollection 2020. J Cancer. 2020. PMID: 32226510 Free PMC article. Review.
-
Mastering data visualization with Python: practical tips for researchers.J Minim Invasive Surg. 2023 Dec 15;26(4):167-175. doi: 10.7602/jmis.2023.26.4.167. J Minim Invasive Surg. 2023. PMID: 38098348 Free PMC article. Review.
Cited by
-
PyGlaucoMetrics: A Stacked Weight-Based Machine Learning Approach for Glaucoma Detection Using Visual Field Data.Medicina (Kaunas). 2025 Mar 20;61(3):541. doi: 10.3390/medicina61030541. Medicina (Kaunas). 2025. PMID: 40142352 Free PMC article.
References
-
- Fankhauser F, Koch P, Roulier A.. On automation of perimetry. Albrecht Von Graefes Arch Klin Exp Ophthalmol. 1972; 184(2): 126–150. - PubMed
-
- Yohannan J, Boland MV.. The Evolving Role of the Relationship between Optic Nerve Structure and Function in Glaucoma. Ophthalmology. 2017; 124(12S): S66–S70. - PubMed
-
- CRAN - Package vfprogression. https://cran.r-project.org/web/packages/vfprogression/index.html. Accessed February 14, 2022.
-
- CRAN - Package visualFields. https://cran.r-project.org/web/packages/visualFields/index.html. Accessed February 14, 2022.
Publication types
MeSH terms
Grants and funding
LinkOut - more resources
Full Text Sources
Miscellaneous