Resolwe SDK for Python
Project description
The Resolwe SDK for Python supports writing tools for Resolwe dataflow package for Django framework and Resolwe Bioinformatics that includes the bioinformatics pipelines.
Docs & Help
Read detailed description in the documentation.
Install
To install, run:
pip install resdk
To install for development, run:
pip install -e .[docs,package,test]
Usage
Connect to the Resolwe server:
from resdk import Resolwe
re = Resolwe('me@mail.com', 'my_password', 'www.resolwe.com')
Get all collections and select the first one:
collections = re.collections()
collection = list(collections.values())[0]
Get expression objects and select the first one:
expressions = collection.data(type__startswith='data:expression:')
expression = expressions[0]
Print annotation:
expression.print_annotation()
Print file fields:
expression.print_downloads()
Download file:
filename = expression.annotation['output.exp']['value']['file']
file_stream = expression.download('output.exp')
with open(filename, 'w') as f:
for part in file_stream:
f.write(part)
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
resdk-1.3.0.tar.gz
(34.9 kB
view details)
Built Distribution
resdk-1.3.0-py2.py3-none-any.whl
(33.4 kB
view details)
File details
Details for the file resdk-1.3.0.tar.gz
.
File metadata
- Download URL: resdk-1.3.0.tar.gz
- Upload date:
- Size: 34.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f364739eecce7f0ad8b15323b71975fa521ae347e5224bfaedf5fa6083751dae |
|
MD5 | 75767845e1af002998a3b34f8781285e |
|
BLAKE2b-256 | d9d61b35a18ec5511e6594041a44791367a822cd5cde6b0d4392837614e9bb22 |
File details
Details for the file resdk-1.3.0-py2.py3-none-any.whl
.
File metadata
- Download URL: resdk-1.3.0-py2.py3-none-any.whl
- Upload date:
- Size: 33.4 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d2d64ebcc861bcbf80e06a5234f6eb261594d2fc8977f383e3a6f7a72b88205d |
|
MD5 | 7c9b2368684854a5fd6af82b591fc1b9 |
|
BLAKE2b-256 | fe3d4257792f3fff54089b0dcb47fa906e7f439dec9964bbb50103586a5c6cfa |