Skip to main content

Resolwe SDK for Python

Project description

Build Status Documentation Status Version on PyPI Supported Python versions Number of downloads from PyPI

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


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)

Uploaded Source

Built Distribution

resdk-1.3.0-py2.py3-none-any.whl (33.4 kB view details)

Uploaded Python 2 Python 3

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

Hashes for resdk-1.3.0.tar.gz
Algorithm Hash digest
SHA256 f364739eecce7f0ad8b15323b71975fa521ae347e5224bfaedf5fa6083751dae
MD5 75767845e1af002998a3b34f8781285e
BLAKE2b-256 d9d61b35a18ec5511e6594041a44791367a822cd5cde6b0d4392837614e9bb22

See more details on using hashes here.

File details

Details for the file resdk-1.3.0-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for resdk-1.3.0-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 d2d64ebcc861bcbf80e06a5234f6eb261594d2fc8977f383e3a6f7a72b88205d
MD5 7c9b2368684854a5fd6af82b591fc1b9
BLAKE2b-256 fe3d4257792f3fff54089b0dcb47fa906e7f439dec9964bbb50103586a5c6cfa

See more details on using hashes here.

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