NGDSG / BAMSI-API

python API for BAMSI

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

BAMSI-api

Official BAMSI python API.

Installation

git clone https://github.com/NGDSG/BAMSI-API.git

Usage

from src.api import BAMSIApiClient
KEY = 'test'
IP='localhost:8888/'
bamsi_client = BAMSIApiClient(KEY, IP)

Get information on the worker pool

active_workers = bamsi_client.active_workers()

Submit a filtering job

# Define a job
query = '{"regions" : "1:1-30000", "subpops" : "CHB,JPT,CHS", "format" : "b"}'
query_args = json.loads(query)

# Launch the job
job_tracking_id = bamsi_client.spawn(**query_args)

Status

job_status = bamsi_client.job_status(tracking=job_tracking_id)

DOI(Citation)

DOI

See examples/ for more.

About

python API for BAMSI

License:GNU General Public License v3.0


Languages

Language:Python 100.0%