Skip to main content

A python toolkit for visual field analysis

Project description

PyVisualFields

A python tool collection for analyzing visual fields

This packages includes functions for visuald field analysis and display.

https://pypi.org/project/PyVisualFields/

We use the rpy2 as the python wrapper to use R in Python. Then, we define and prepare the methods to call the methods and data implemented and introduced in R packages vfprogression (by Elze et al. [1]) and visualFields (by Marin-Granch et al. [2]). We write these functions in python language and demonstrate their functionalities in four categories of presenting data, plotting, scoring and progression analysis, and normalization analysis. For each category, we provide the examples, description of each function, associated requirements, and the output of that function in Jupyter notebooks.

Demo jupyter notebooks

The list and description of all functions are available at All_Functions. They are all examined and introduced with examples in 4 different notebooks categorized:

Installation:

This python package depends on

  • R
  • rpy2 python package
  • vfprogression R package
  • visualFields R package

Make sure to install them before installing this PyVisualFields package:

references:

[1] https://cran.r-project.org/web/packages/vfprogression/index.html
[2] https://cran.r-project.org/web/packages/visualFields/index.html


list of functions

The list and description of all functions are as follow. They are all examined and introduced with examples in 4 different notebooks. It is important to mention that, based on the background R packages, the input VF dataframe needs to have columns with special column names. Make sure, to consider the data notebook. If further information is required, see the corresponding references: vfprogression[1], visualFields[2]


  •               function   -----------------------------   description   -----------   from package

  • visualFields.data_vfpwgRetest24d2()   -----------   VF data   -----------   visualFields[2]
  • visualFields.data_vfctrSunyiu24d2()   -----------   VF data   -----------   visualFields[2]
  • visualFields.data_vfpwgSunyiu24d2()   -----------   VF data   -----------   visualFields[2]
  • visualFields.data_vfctrSunyiu10d2()   -----------   VF data   -----------   visualFields[2]
  • visualFields.data_vfctrIowaPC26()   -----------   VF data   -----------   visualFields[2]
  • visualFields.data_vfctrIowaPeri()   -----------   VF data   -----------   visualFields[2]

  • vfprogression.data_vfseries()   -----------   VF data   -----------   vfprogression[1]
  • vfprogression.data_vfi()   -----------   VF data   -----------   vfprogression[1]
  • vfprogression.data_cigts()   -----------   VF data   -----------   vfprogression[1]
  • vfprogression.data_plrnouri2012()   -----------   VF data   -----------   vfprogression[1]
  • vfprogression.data_schell2014()   -----------   VF data   -----------   vfprogression[1]

  • vfprogression.get_score_AGIS()   -----------   get AGIS score   -----------   vfprogression[1]
  • vfprogression.get_score_CIGTS()   -----------   get CIGTS score   -----------   vfprogression[1]
  • vfprogression.progression_cigts()   -----------   progression analysis by CIGTS   -----------   vfprogression[1]
  • vfprogression.progression_plrnouri2012()   -----------   progression analysis by Nouri et al.   -----------   vfprogression[1]
  • vfprogression.progression_vfi()  -----------   progression analysis by VFi measurements   -----------   vfprogression[1]
  • vfprogression.progression_schell2014()  -----------   progression analysis by schell et al.   -----------   vfprogression[1]
  • vfprogression.progression_agis()  -----------   progression analysis by AGIS   -----------   vfprogression[1]

  • visualFields.glr()   -----------   Linear regression with global indices   -----------   visualFields[2]
  • visualFields.plr()   -----------   pointwise linear regression (PLR)   -----------   visualFields[2]
  • visualFields.poplr()   -----------   PoPLR regression analysis   -----------   visualFields[2]

  • vfprogression.plotValues()   -----------   plot/save VF values (s, td, pd)   -----------   vfprogression[1]
  • vfprogression.plotProbabilities() -----------   plot/save tdp/pdp values (tdp, pdp)   -----------   vfprogression[1]
  • visualFields.vfplot() -----------   plot/save s/td/pd/tds/pds values (s, td, pd)   -----------   visualFields[2]
  • visualFields.vfplot_s()   -----------   alias for vfplot(type='s')   -----------   visualFields[2]
  • visualFields.vfplot_td()   -----------   alias for vfplot(type='td')   -----------   visualFields[2]
  • visualFields.vfplot_pd()   -----------   alias for vfplot(type='pd')   -----------   visualFields[2]
  • visualFields.vfplot_tds()   -----------   alias for vfplot(type='tds') (s, td, pd)   -----------   visualFields[2]
  • visualFields.vfplot_pds()   -----------   alias for vfplot(type='pds') (s, td, pd)   -----------   visualFields[2]
  • visualFields.plotProbColormap()   -----------   show colormap of probablies   -----------   visualFields[2]
  • visualFields.vfplotsparklines()   -----------   plot/save sparklines (s, td, pd)   -----------   visualFields[2]
  • visualFields.vfplotsparklines_s()   -----------   alias for vfplotsparklines(type='s')   -----------   visualFields[2]
  • visualFields.vfplotsparklines_td()   -----------   alias for vfplotsparklines(type='td')   -----------   visualFields[2]
  • visualFields.vfplotsparklines_pd()   -----------   alias for vfplotsparklines(type='pd')   -----------   visualFields[2]
  • visualFields.vfplotplr()   -----------   --   -----------   visualFields[2]
  • visualFields.vflegoplot()   -----------   --   -----------   visualFields[2]
  • visualFields.vfsfa()   -----------   Generates one-page report of single field analyses as a pdf file   -----------   visualFields[2]

  • currentNV = visualFields.getnv()   -----------   get current normative environment/setting (NV)   -----------   visualFields[2]
  • visualFields.getallvalues()   -----------   compute all td, pd, pdp, tdp, gl, gh,glp based on the current NV   -----------   visualFields[2]
  • visualFields.gettd()   -----------   alias for getallvalues only to compute td   -----------   visualFields[2]
  • visualFields.getgl()   -----------   alias for getallvalues only to compute gl   -----------   visualFields[2]
  • visualFields.gettdp()   -----------   alias for getallvalues only to compute tdp   -----------   visualFields[2]
  • visualFields.getpd()   -----------   alias for getallvalues only to compute pd   -----------   visualFields[2]
  • visualFields.getgh()   -----------   alias for getallvalues only to compute gh   -----------   visualFields[2]
  • visualFields.getpdp()   -----------   alias for getallvalues only to compute pdp   -----------   visualFields[2]
  • visualFields.getglp()   -----------   alias for getallvalues only to compute gi   -----------   visualFields[2]
  • visualFields.get_info_normvals()   -----------   Get all avialbale predefined normalization environments/settings   -----------   visualFields[2]
  • visualFields.setnv()   -----------   change/set normalization environment based on a predefined NV   -----------   visualFields[2]
  • visualFields.nvgenerate   -----------   generate a normalization environment based new data   -----------   visualFields[2]

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

PyVisualFields-1.0.3.tar.gz (18.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

PyVisualFields-1.0.3-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file PyVisualFields-1.0.3.tar.gz.

File metadata

  • Download URL: PyVisualFields-1.0.3.tar.gz
  • Upload date:
  • Size: 18.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for PyVisualFields-1.0.3.tar.gz
Algorithm Hash digest
SHA256 36e13b8080701f1a72d4418cca3bba195b0d013ac15f17b06e52df97ed0e961e
MD5 daa6cfb0cda5939b8c56060cf83ec5e0
BLAKE2b-256 20a3c70f62a058f00db435f59e65e3e3d92727952a8c665e7e7ff1fe520b8b5c

See more details on using hashes here.

File details

Details for the file PyVisualFields-1.0.3-py3-none-any.whl.

File metadata

  • Download URL: PyVisualFields-1.0.3-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.8.2 pkginfo/1.8.2 requests/2.27.1 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.8.8

File hashes

Hashes for PyVisualFields-1.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 bea7732cb173891802493b3b891a994801b2eb6a208cb82ffbacbaadd94698e1
MD5 bc2af6b46147b8e97bc34f0976737484
BLAKE2b-256 2be654d6ca9930ddc3a012460deb40366e1ab312cd3db02624f7a4527e717acf

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page