Skip to main content

GA4GH Data Object Service Schemas

Project description

Schemas for the Data Object Service (DOS) API


Build Status Swagger Validator Read the Docs badge

View the schemas in Swagger UI

The goal of DOS is to create a generic API on top of existing object storage systems so workflow systems can access data in a single, standard way regardless of where it's stored. It's maintained by the GA4GH Data Working Group.

Key features

The API is split into two sections:

  • data object management, which enables the creation, updating, deletion, versioning, and unique identification of files and data bundles (flat collections of files); and
  • data object querying, which can locate data objects across different cloud environments and DOS implementations.

Getting started

Installing is as easy as:

$ pip install ga4gh-dos-schemas

This will install both a demonstration server and a Python client that will allow you to manage Data Objects in a local server. You can start the demo server using ga4gh_dos_server. This starts a Data Object Service at http://localhost:8080.

wget http://hgdownload.cse.ucsc.edu/goldenPath/hg38/chromosomes/chr22.fa.gz
md5sum chr22.fa.gz
# 41b47ce1cc21b558409c19b892e1c0d1  chr22.fa.gz
curl -X POST -H 'Content-Type: application/json' \
    --data '{"data_object":
              {"id": "hg38-chr22",
               "name": "Human Reference Chromosome 22",
               "checksums": [{"checksum": "41b47ce1cc21b558409c19b892e1c0d1", "type": "md5"}],
               "urls": [{"url": "http://hgdownload.cse.ucsc.edu/goldenPath/hg38/chromosomes/chr22.fa.gz"}],
               "size": "12255678"}}' http://localhost:8080/ga4gh/dos/v1/dataobjects
# We can then get the newly created Data Object by id
curl http://localhost:8080/ga4gh/dos/v1/dataobjects/hg38-chr22
# Or by checksum!
curl -X POST -H 'Content-Type: application/json' \
    --data '{"checksum": {"checksum": "41b47ce1cc21b558409c19b892e1c0d1"}}' http://localhost:8080/ga4gh/dos/v1/dataobjects/list

For more on getting started, check out the quickstart guide or the documentation at readthedocs: https://data-object-service.readthedocs.io/en/latest/ !

Getting involved!

The Data Object Service Schemas are Apache 2 Licensed Open Source software. Please join us in the issues or check out the contributing docs!

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

ga4gh_dos_schemas-0.2.1.tar.gz (54.4 kB view details)

Uploaded Source

File details

Details for the file ga4gh_dos_schemas-0.2.1.tar.gz.

File metadata

File hashes

Hashes for ga4gh_dos_schemas-0.2.1.tar.gz
Algorithm Hash digest
SHA256 cd773e8f286ebb4d993d43090dc39ccf74f5e7f16647c078176aae21d8799efb
MD5 4b9d14bf84eb51cd96b0fb4f03e8cc08
BLAKE2b-256 2f86cd20e7e37ec737f4c10beec916006c3d0c836aa09e663417e32e84c703ee

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