For programmatic upload of files to Cellencis
Project description
biomage-programmatic-interface
About
This python package provides an easy way to create projects and upload samples into Cellenics.
Installation
To install the package execute the following line:
pip install biomage-programmatic-interface
Usage
In order to use the package you first need to create an account in Cellenics (https://scp.biomage.net/) if you don't have one yet.
Then the package is used in the following way:
import biomage_programmatic_interface as bpi
# 1. Authenticate user and create a connection tunnel with the api
# Default instance-url: https://api.scp.biomage.net/
connection = bpi.Connection('email', 'password', 'instance')
# 2. Create an experiment
experiment_id = connection.create_experiment()
# 3. Upload samples associated with the experiment
connection.upload_samples(experiment_id, 'local/path/to/samples')
Once the upload is complete you can navigate to Cellenics and process your project there.
Connection
class
The object accepts 3 parameters:
email
- Cellenics email
password
- Cellenics password
instance
- Cellenics instance
'biomage'
- (Default) Cellenics production build'staging'
- Cellenics staging environment
Troubleshooting
Max retries exceeded with url: / (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:2396)')))
- Navigate to your project in Cellenics and manually delete the failed sample
- Run step #3 again
This will be fixed when error handling is introduced
How to build the pip package
Update the version of the package and then build it:
python3 -m build
twine upload dist/*
How to build the docker images
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 biomage_programmatic_interface-0.0.10.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b3ac805c5faa69f127b31f3ce0b332a1f686707fd394c833c79128ae6e3b46f |
|
MD5 | fb861b0d90af0df6200f9208d030636a |
|
BLAKE2b-256 | 1019c32f882af284d9406b4373f76412ccd474810610650344b65f366b18adc7 |
Hashes for biomage_programmatic_interface-0.0.10-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2a377c32a7fdc67f21ec29e8c21d6380de9d4b401b6699bc68501d63d6376a85 |
|
MD5 | ddb1b2fe33d122f25422bb07c673ff4a |
|
BLAKE2b-256 | 95213d2f35a947babe3ab26f0e00788117d76bd9041a6c2eaaaa69441fa480b0 |