Skip to main content

Python package to support KUBIOS file management.

Project description

KUBIOS Import & Export for Python

This Python package enables easy exportation of NN/RR interval series or signals to KUBIOS HRV friendly files and structured formats and to import HRV analysis results from KUBIOS HRV report files in .txt format.

The exported signals are stored in the Type 1 format as presented on page 14 and 15 of the KUBIOS User Guide.

How to Use this Package

export_nni()

Use the export_nni() function to export a series of NN/RR interval or ECG signal data to a KUBIOS readable file format.

import numpy as np
from kubios import export_nni

# Load NNI series
nni = np.load('SampleSeries.npy')

# Export NNI series
export_nni(nni)

Use the output_path variable to specify the file path where to store the exported file and output_file to specify the file name. Use only the output_file if you want to set the absolute file path in a single string. If no value for the output_file is provided, a file name (incl. time stamp) will automatically be generated.

import numpy as np
from kubios import export_nni

# Load NNI series
nni = np.load('SampleSeries.npy')

# Export NNI series with specific file name
export_nni(nni, output_file='export.txt)

# Export NNI series to specific path & specific file name
export_nni(nni, output_path='/my/favorite/path/', output_file='export.txt')

# Export NNI series to specific path with automatic file name generation
export_nni(nni, output_path='/my/favorite/path/')

import_report()

Use the import_report() function to read a KUBIOS HRV report files in .txt format. The results will be returned in a Python dictionary.

from kubios import import_report

# Import HRV results from KUBIOS report
results = import_report('SampleReport.txt')

# Get SDNN value
results['sdnn']

Context of this Work

This package is under development within the scope of my master thesis "Development of an Open-Source Python Toolbox for Heart Rate Variability (HRV)" at the University of Applied Sciences Hamburg, Germany (Faculty Life Sciences, Department of Biomedical Engineering) and PLUX wireless biosignals, S.A., Lisbon, Portugal.

Disclaimer

This package is not part of the official KUBIOS software.

This program is distributed in the hope it will be useful and provided to you "as is", but WITHOUT ANY WARRANTY, without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. This program is NOT intended for medical diagnosis. We expressly disclaim any liability whatsoever for any direct, indirect, consequential, incidental or special damages, including, without limitation, lost revenues, lost profits, losses resulting from business interruption or loss of data, regardless of the form of action or legal theory under which the liability may be asserted, even if advised of the possibility of such damages.

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

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

Source Distribution

kubios-0.1.tar.gz (4.9 kB view details)

Uploaded Source

Built Distribution

kubios-0.1-py2-none-any.whl (6.9 kB view details)

Uploaded Python 2

File details

Details for the file kubios-0.1.tar.gz.

File metadata

  • Download URL: kubios-0.1.tar.gz
  • Upload date:
  • Size: 4.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for kubios-0.1.tar.gz
Algorithm Hash digest
SHA256 ed5c2d6071b7473ca6bab72337bfc2842cc28f4614b45fb14c7472d6b2fd7030
MD5 4e27f54359285ad9791ba0057d36bf06
BLAKE2b-256 5d1fad6d32bb28a4ac74ebd0b6286a6c68bc6b1f381f2253218d7433b1c53f84

See more details on using hashes here.

File details

Details for the file kubios-0.1-py2-none-any.whl.

File metadata

  • Download URL: kubios-0.1-py2-none-any.whl
  • Upload date:
  • Size: 6.9 kB
  • Tags: Python 2
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.18.4 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/2.7.14

File hashes

Hashes for kubios-0.1-py2-none-any.whl
Algorithm Hash digest
SHA256 f9445db38fed5e38db5e5ba20bcb659b2df644885ae20b8dc628da60885f107a
MD5 c51718383f7fdb510d24ce1a4c27a93c
BLAKE2b-256 18bc70e6d48d7287c496b3c49d2a2978bc3c66719c73bb6b0ee58087fa30bac4

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