Skip to main content

Calculates Gait Profile Score

Project description

Welcome to Gait Profile Score Calculator’s documentation!

gpscalc is a package that can be used to calculate the gait profile score as stated in Baker et al. 2009. The package requires the gait trials kinematic data to be stored in a json file using specific variable names. (Baker, R. et al., 2009. The Gait Profile Score and Movement Analysis Profile. Gait and Posture, 30(1), pp. 265-269.) Kinematic gait data has to be in a specific format for the calculation, the specifics of the format required can be seen using the functions below to create example JSON files.

How to use the GPS Calculator

Package Installation

::

pip install gait-profile-score

Create example data in correct format

::

from gpscalculator import exampleInputData

exampleData = exampleInputData()

# Kinematic variable labels required
labels = exampleData.kinematicVariables()
print(labels)

# Example of a kinematic dataset
dataset = exampleData.kinematics()
print(dataset)

# Save an example of the kinematics JSON file required
exampleData.kinematicsJSON("chosen/directory")

Processing the reference group data

::

from gpscalculator import referenceGroup

# List of paths to the reference group kinematics JSON files
referencePaths = [...]

referenceData = refernceGroup()
referenceData.processGroupData(referencePaths)

# The average of the reference kinematic variables over the gait cycle
referenceKinematics = referenceData.avgKinematics

# The average GPS scores of the reference group relative to the average kinematics
referenceGPS = referenceData.avgRefGPS

Calculation of GPS for a single subject

::

from gpscalculator import calculateGPS

# The kinematic data for the selected subject
subjectKinematics = {kinematic data}

# GPS scores for the subject relative to the reference group average kinematics
subjectGPS = calculateGPS(referenceKinematics, subjectKinematics).gps

Plotting the GPS diagram

::

from gpscalculator import plotGPS

plot = plotGPS(referenceGPS, subjectGPS, saveplot="test_gps_plot.png")

Processessing the GPS scores for a subject group

::

from gpscalculator import batchGPS

# List of paths to the subject group kinematics JSON files
subjectPaths = [...]

subjectGroup = batchGPS()
subjectGroup.loadReferenceGroup(referencePaths)
subjectGroup.processSubjectGroup(subjectPaths)

# Print the dataframe containing the subject group GPS data
print(subjectGroup.batchData)

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

gait-profile-score-1.0.2.tar.gz (6.8 kB view details)

Uploaded Source

Built Distribution

gait_profile_score-1.0.2-py3-none-any.whl (20.0 kB view details)

Uploaded Python 3

File details

Details for the file gait-profile-score-1.0.2.tar.gz.

File metadata

  • Download URL: gait-profile-score-1.0.2.tar.gz
  • Upload date:
  • Size: 6.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for gait-profile-score-1.0.2.tar.gz
Algorithm Hash digest
SHA256 6a14443ee61ba54489fb06a0c323f56f5f808cf9fb9765a352341211a26859c9
MD5 050f012f91fd671967588d1b2d2ec1eb
BLAKE2b-256 d8a39125474809521164f1c2de041d9ef819830d07642b1595f0dcc4488d9255

See more details on using hashes here.

File details

Details for the file gait_profile_score-1.0.2-py3-none-any.whl.

File metadata

  • Download URL: gait_profile_score-1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 20.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/51.1.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.7.7

File hashes

Hashes for gait_profile_score-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 a19efdf4663aab1795ff04c23b87d770f09268c844f74a7e073ca6d0ead349cf
MD5 c2337f01bb3bd35e77efbb5316286a68
BLAKE2b-256 db25cc0b2d0c80c46dcf042ec0a86c0540adef2f3ee2d8b574ce7f9dfece40ac

See more details on using hashes here.

Supported by

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