Closed mhkc closed 5 months ago
I actually tried running a sample with the aforementioned command and got the following error:
UnboundLocalError: cannot access local variable 'sample_id' where it is not associated with a value
bcrypt
version 4.1.1 is incompatible with passlib
version 1.7.4. It's suggested that we use 3.2.0 but then we get this warning:
bonsai_api | [2024-03-28 12:38:31,419] DEBUG in bcrypt: detected 'bcrypt' backend, version '3.2.0'
bonsai_api | [2024-03-28 12:38:31,419] DEBUG in bcrypt: 'bcrypt' backend lacks $2$ support, enabling workaround
I think this is an issue for another PR
https://github.com/Clinical-Genomics-Lund/bonsai/pull/160#issuecomment-2025004976
Added
scripts/upload_sample.py
that is more flexible and gives better error messages.The script takes a YAML file as input with the groups a sample should be added to and the paths to the result and signature file.
The script takes username and password either as options or from the ENV variables
BONSAI_USER
andBONSAI_PASSWD
.Example upload command,