Skip to main content

Script to load CSR data to TranSMART

Project description

Build status codecov PyPI PyPI - Status MIT license

This package contains a script that transforms Central Subject Registry data to a format that can be loaded into TranSMART platform, an open source data sharing and analytics platform for translational biomedical research.

The output of the transformation is a collection of tab-separated files that can be loaded into a TranSMART database using the transmart-copy tool.

⚠️ Note: this is a very preliminary version, still under development. Issues can be reported at https://github.com/thehyve/python_csr2transmart/issues.

Installation and usage

To install csr2transmart, do:

pip install csr2transmart

or from sources:

git clone https://github.com/thehyve/python_csr2transmart.git
cd python_csr2transmart
pip install .

Usage

TODO: Add example

Python versions

This repository is set up with Python version 3.6

Package management and dependencies

This project uses pip for installing dependencies and package management.

  • Dependencies should be added to setup.py in the install_requires list.

Testing and code coverage

  • Tests are in the tests folder.

  • The tests folder contains:

    • A test if the csr2transmart script starts (file: test_csr2transmart)

    • A test that checks whether your code conforms to the Python style guide (PEP 8) (file: test_lint.py)

  • The testing framework used is PyTest

  • Tests can be run with python setup.py test

Coding style conventions and code quality

  • Check your code style with prospector

  • You may need run pip install .[dev] first, to install the required dependencies

License

Copyright (c) 2019 The Hyve B.V.

The CSR to TranSMART loader is licensed under the MIT License. See the file LICENSE.

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

csr2transmart-0.0.4.tar.gz (18.4 kB view details)

Uploaded Source

Built Distribution

csr2transmart-0.0.4-py3-none-any.whl (27.5 kB view details)

Uploaded Python 3

File details

Details for the file csr2transmart-0.0.4.tar.gz.

File metadata

  • Download URL: csr2transmart-0.0.4.tar.gz
  • Upload date:
  • Size: 18.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for csr2transmart-0.0.4.tar.gz
Algorithm Hash digest
SHA256 d07bc9bd37bc294c6b57c98d09aea89ae379fa6b4847f081b826465718ab9a2c
MD5 ff0a371c9bb83ebda5b8cba66fc7a7b8
BLAKE2b-256 c2c3442042149b2b300752b868e8e456951fcb0e3240f84ec5689c1de082d2b9

See more details on using hashes here.

File details

Details for the file csr2transmart-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: csr2transmart-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 27.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.35.0 CPython/3.7.1

File hashes

Hashes for csr2transmart-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 8363d131d10ee0f2e73a9e210a884fe149288782742e72f96ca2ffda18d1c603
MD5 daa1e58db55d754f3ec55f191ebca0ae
BLAKE2b-256 45a28e66d9b92ca4cd7dbde94630c2861b811ad82877c82acf3f70be92b5bddb

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