This repository contains a CLI for interacting with Data Repository Service(DRS) of Global Alliance for Genomics and Health (GA4GH).
The service running is the DRS Starter kit version 0.3.2 (Latest version available). Information about the service and object IDs are here.
I have provided the binary in the drs_cli directory, So it can be used directly without building.
Setup DRS service
docker pull ga4gh/ga4gh-starter-kit-drs:0.3.2
docker run -p 4500:4500 -p 4501:4501 ga4gh/ga4gh-starter-kit-drs:0.3.2
Clone the Repo:
git clone https://github.com/Dhanush0369/Gsoc_sample.git
Change directory to drs_cli:
cd Gsoc_sample/drs_cli
Run the commands
./drs <SUBCOMMAND>
The CLI has 4 Subcommands. Below are there syntax.
./drs service
: It provides information about the service../drs object <obj_id>
: It provides the information about the Drs object../drs access <obj_id> <access_id>
: It provides the URL for fetching the raw data../drs authinfo <obj_id>
: It provides the Authorization info about the Drs object
Command | Method | HTTP request | Description |
---|---|---|---|
access | get_access_url | GET /objects/{object_id}/access/{access_id} | Get a URL for fetching bytes |
object | get_object | GET /objects/{object_id} | Get info about a DrsObject. |
authinfo | options_object | OPTIONS /objects/{object_id} | Get Authorization info about a DrsObject. |
service | get_service_info | GET /service-info | Retrieve information about this service |
To get access to the crate's generated documentation, use:
cargo doc --open
The tests for testing the functionality of the Functions interacting with the DRS service is written in tests
directory.
Video of CLI functionality(https://www.youtube.com/watch?v=SZzpaFyKvTY)