For programmatic upload of files to Cellencis
Project description
\n# biomage-programmatic-interface
About
This python package provides an easy way to create projects and upload samples into Biomage.
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 Biomage (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 Biomage and process your project there.
Connection
class
The object accepts 3 parameters:
email
- Biomage emailpassword
- Biomage passwordinstance_url
- Biomage instance url- Copy the url of the Biomage instance excluding
https://
- If the url is https://scp.biomage.net/ enter just the domain name:
scp.biomage.net
- Copy the url of the Biomage instance excluding
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 Biomage 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 in setup.cfg
and requirements.txt
then build it using the bash script:
./pip-build-upload.sh
How to build the docker images
After requirements.txt
has been updated with the correct package version run:
./docker-build-upload.sh {version}
where version
is the version of the docker image, e.g. 0.0.3
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.21.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 50cd963151733b60d43684d5663022473d8ec51f26b157dafb0f81e852586b18 |
|
MD5 | d10e393df12a319cb3590187ead4da66 |
|
BLAKE2b-256 | b828ee033ebaafece8cde20d12a6380fb8d41460f0e3d9ab98796f80f24ce3af |
Hashes for biomage_programmatic_interface-0.0.21-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 339af521f8cd06ed1ecb3b02838a99ca5d3dad8278d47884d3bf65f68fcd7bc3 |
|
MD5 | cf6836a48cc84846011f6d02bdc2aa2b |
|
BLAKE2b-256 | 00820323d8fa4a68c8681ba98264c5be6cddf71eb4be546e1adf98962c4007db |