Skip to main content

A python client to query the RNAget compliant servers

Project description

Getting started

This is a Python package that provides a client class, RnaGet, to access RNAget data. RNAget is an API standard implemented by the GA4GH that provides uniform access to large-scale RNAseq expression data across different studies and sources.

Usage

To use this package, you need to import the RnaGet class:

from rnaget_client import RnaGet

gtex = RnaGet(host='gtex') # gtex instance
encode = RnaGet(host='encode') # encode instance
another_host = RnaGet(host='ANOTHER_URL', token='ACCESS_TOKEN')

The host parameter should be set to the URL of the RNAget server that you want to access. You can also pass an optional token parameter to set an access token to access protected data.

Available Methods:

The RnaGet class provides the following methods to retrieve data from the RNAget server:

get_filters(type, params=None): Get model filters, accepted values are: projects, studies, expressions, or continuous.

get_projects(version=None): Get the project list.

get_project(id): Get project by ID.

get_studies(version=None): Get the study list.

get_study(id): Get study by ID.

get_expression_list(format, download=False, **kwargs): Get the expression list.

get_expression(id, download=False, **kwargs): Get the expression object.

get_expression_formats(): Get data formats.

get_expression_units(): Get units.

get_continuous_list(format, download=False, **kwargs): Get the continuous list.

For more information about the usage and parameters of these methods, please refer to the RNAget specs.

You can get rnaget-client from PyPI,

python -m pip install rnaget-client

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

rnaget_client-0.0.1.tar.gz (3.6 kB view hashes)

Uploaded Source

Built Distribution

rnaget_client-0.0.1-py3-none-any.whl (4.2 kB view hashes)

Uploaded Python 3

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