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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | a56f13db8d49ecd167a0326f9ced9ee324941745fc3df8146f185bdddc574ecc |
|
MD5 | f29731c0b9e2f58fbb6a75914cbaa84e |
|
BLAKE2b-256 | da6916a6c3da0309787402a0485ee30f117707f12ef2c711609770bf9635b05d |
Hashes for biomage_programmatic_interface-0.0.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 222454bd0000511e8c3e9c933ea1059cebf2c78931a64276daae6e1447243514 |
|
MD5 | e71a9cc0322a116c93803dc7fa247570 |
|
BLAKE2b-256 | becc9088c78c7c63bca8e0b8fcd050d1c7d52fe0bcfc950346c2676ae7a0784e |