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.12.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | aa5e87722c1f5eb252b097e8c8a09bd5b89ff42658c572c4a24c5cd05e02835f |
|
MD5 | 47c0598800b1f4ae300bf1b60cdd19ae |
|
BLAKE2b-256 | 9a3471153d5456fb63631f755e3119d976afb5116b2a84d3c1cc967e1279aa68 |
Hashes for biomage_programmatic_interface-0.0.12-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2cd12877837086d4d9173aacdd3924b0ffd57f0edb42f7775ca80db44c9ecb86 |
|
MD5 | 382f67fbdd2af4c9502fcbee5d059be1 |
|
BLAKE2b-256 | 20ebbed5a2d8d99d8494b55862a26377f51469646eb4bbe4749f5c112e5f23d9 |