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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Hashes for rnaget_client-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d301bbd374418a0b4ffa5339af06e39b7d3691e4de3b617b1fd326a7d1211cd |
|
MD5 | f0d689da4bf8823d2d49b28ca168f724 |
|
BLAKE2b-256 | 75f9d81195d2710cf8289009e471e2eb21749aa53b5ede219eed71fc53e6e6a7 |