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.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a530022ad9a0e3d44f698fa99ddbeafd686cb3a446e343a5dba6d0ba9ccf40f3 |
|
MD5 | aaedae4ae4d85509d576115d6395ba8b |
|
BLAKE2b-256 | e7ceee1752613dfdddd8be1d64d4ff18e51ef5ef1644c19400709aba13600921 |
Hashes for biomage_programmatic_interface-0.0.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 774f8b285e3470bd32c92c9bef8c197ecd284d8f3b96f2a0181ccd3dadaab595 |
|
MD5 | 938f083078660ca057e400bd73466269 |
|
BLAKE2b-256 | 4080b7fbd42515e4fb3b49a2a152f10bc5fdf22ed2b40d9282c9d3bc71e387f4 |