For programmatic upload of files to Cellencis
Project description
cellenics-api
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 cellenics_api
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 cellenics_api
# 1. Authenticate user and create a connection tunnel with the api
connection = cellenics_api.Connection('email', 'password')
# 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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1032b6da92140d13781f37c6d183e40a8de18d5b02883d556d434ef0bc61cac9 |
|
MD5 | ea1a95f2d844c307e69273ff528e506f |
|
BLAKE2b-256 | a23dcba3d6fdf9e03a4334d6b99bc209288ac7a9a4d008b8b34c52d5d1571920 |
Hashes for biomage_programmatic_interface-0.0.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c12fe5b50f5cd6d887985605958005bfc38ef189f2deb82a5d1dd089a2c1445 |
|
MD5 | 00a7e032382c322ede022ed7922f082f |
|
BLAKE2b-256 | 17beddb46eb901c0e4e10f1e6eb15eb2db93590453f255653e0dfe3949572913 |