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-url')
# 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.
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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6856db9ae044e13224178911ef7dcd05fccc3184e6fd35a6c59dee4a654f0c79 |
|
MD5 | de8f6aca07a3131a5452ce2071aa0aa3 |
|
BLAKE2b-256 | 941669f3c90ea27fe3fedacde6d193774e66554d971f1552fbf940cb73c2c02c |
Hashes for biomage_programmatic_interface-0.0.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8367963d82c2773634e1dc649bfa562cd63847c96f7c74743b367c58cc0b1245 |
|
MD5 | af7cad012e1a84472c03cdc5872fff7a |
|
BLAKE2b-256 | 5ee85074c95deac44f397535069b1b4f4ec4ce7c6fa8156043fe6e9836f111a8 |