/transform

A service that provides import, upload, and download capabilities as well as tools for validating and converting between data types, both internal and external to KBase.

Primary LanguagePythonMIT LicenseMIT

KBase Transform v0.1

More than meets the eye?

The KBase Transform service has responsibilities for 3 data tasks:

  • Upload - Transforming data from external community formats to KBase typed data
  • Download - Transforming KBase typed data into external community formats
  • Convert - Transforming one KBase type to another KBase type

Scripts responsible for data validation, transformations, conversions are located in the plugins folder as well as a configuration file for each script.

Development

See plugins/examples and plugins/templates for making your own script for upload/download/convert.

Use a test driver script to demo the available functionality and data transformations.

git clone https://kbase.us/kbase/transform

cd transform/t/demo

# build a local virtualenv
python setup.py

# see some example data uploads
venv/bin/python bin/upload.py --demo

# read the docs for using your own data
venv/bin/python bin/upload.py --help