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.23.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61cdd58c609d393c09eaacda178588eadb2b6c377c27b764016f6101a261857a |
|
MD5 | 6575cc806fa5a79f52e701665c4c7df7 |
|
BLAKE2b-256 | e3165945e30f1bb2c4ef27fe6b5c927368f7a2eb86c080e393967c16bf7cfb7d |
Hashes for biomage_programmatic_interface-0.0.23-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 714694f6bcc1af5d352317658e31c1f2635ddbfc0756431aab411a522a568bc0 |
|
MD5 | 8717b5527432bd23fa6662e7b46538be |
|
BLAKE2b-256 | bb6e798c6cab6676d0b0efc4c9faa4ab9e260d0656cc035e9ff5cc82319c500d |