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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file rnaget_client-0.0.1.tar.gz.
File metadata
- Download URL: rnaget_client-0.0.1.tar.gz
- Upload date:
- Size: 3.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/5.15.0-1035-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b58bc6eeef1dc4c6bc328b7c092f22c84b0cee9b4f70ecc2b585e5c7f19fa466
|
|
| MD5 |
c759a510a4bb96ddca9071df0541d628
|
|
| BLAKE2b-256 |
289629eb81eb6ae7a4432fe8b03e5eb2c132295dcb680c54ac3f9c0323c1db77
|
File details
Details for the file rnaget_client-0.0.1-py3-none-any.whl.
File metadata
- Download URL: rnaget_client-0.0.1-py3-none-any.whl
- Upload date:
- Size: 4.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.4.2 CPython/3.10.10 Linux/5.15.0-1035-azure
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4d301bbd374418a0b4ffa5339af06e39b7d3691e4de3b617b1fd326a7d1211cd
|
|
| MD5 |
f0d689da4bf8823d2d49b28ca168f724
|
|
| BLAKE2b-256 |
75f9d81195d2710cf8289009e471e2eb21749aa53b5ede219eed71fc53e6e6a7
|