GA4GH Data Object Service Schemas
Project description
Schemas for the Data Object Service (DOS) API
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 Cloud Workstream.
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 GET http://localhost:8080/ga4gh/dos/v1/dataobjects -d checksum=41b47ce1cc21b558409c19b892e1c0d1
For more on getting started, check out the quickstart guide or the rest of the documentation at ReadtheDocs!
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
File details
Details for the file ga4gh_dos_schemas-0.4.0.tar.gz
.
File metadata
- Download URL: ga4gh_dos_schemas-0.4.0.tar.gz
- Upload date:
- Size: 13.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.11.0 pkginfo/1.4.2 requests/2.19.1 setuptools/40.2.0 requests-toolbelt/0.8.0 tqdm/4.25.0 CPython/3.6.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5ce231597337739a8f693416dc8c3de712d85418c8ce4a1b2da84e76894cdf77 |
|
MD5 | 54a987e315fb9dcd050d8ec8c0769d69 |
|
BLAKE2b-256 | d9ba67c1c68a4fb55d3a8570c1418baf11fcfce58cafbb2c425f8abb1ea07210 |