Igor Trujnara
07/14/2026, 2:14 PMomadb). I have a test case with 2 reasonably long test sequences (~400bp). When I run the script inside the Nextflow module, it tends to fail with 400 Bad request ("sequence too short") . When I run substantially identical code in a Python REPL inside a venv, everything works fine and I get a response. Versions are not identical (Python 3.11 vs 3.14), but nothing changed in these updates should change the outcome. I have added a debug print to the script to check if the sequence is read in correctly, and it is.pontus
07/15/2026, 5:29 PMIgor Trujnara
07/16/2026, 7:12 AMrequests with URLs, but I am trying to port to the dedicated omadb package, which has a more comprehensive query builder and is kept up to date with all the requirements of the API. I am only passing a single value (the protein sequence) to the function call, everything else is added to the request by the package. I have checked that the sequence is complete and correct. I have also had a quick look at the code of the package and I don't see any obvious problems there, the URL should be built correctly. I could add debug prints to the package files in site-packages, but I want to try less advanced measures before that.pontus
07/16/2026, 7:44 AMIgor Trujnara
07/16/2026, 2:27 PMpontus
07/16/2026, 2:34 PMIgor Trujnara
07/16/2026, 2:40 PMpontus
07/16/2026, 2:45 PMbeforeScript I think (possibly with variable whitelisting if you're using a container engine).pontus
07/16/2026, 2:53 PMREQUESTS_CA_BUNDLE at a file with your mitm-root CA and https_proxy at your proxy.)Igor Trujnara
07/16/2026, 3:23 PM-v does not work (the directory is empty in the container)pontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:37 PMpontus
07/16/2026, 3:38 PMpontus
07/16/2026, 3:38 PMpontus
07/16/2026, 3:38 PMIgor Trujnara
07/16/2026, 4:08 PMpontus
07/16/2026, 4:17 PMpontus
07/18/2026, 9:48 AMbeforeScript create that file (e.g. `cat`/`echo` to something in the task work directory (which will be mounted because of nextflow).pontus
07/18/2026, 9:48 AMcp...)Igor Trujnara
07/20/2026, 12:34 PMIgor Trujnara
07/20/2026, 12:44 PMpontus
07/20/2026, 2:09 PMIgor Trujnara
07/20/2026, 2:26 PMUnhashable type: list . While testing in the REPL, the normal string works as an input, both as a literal and a variable.pontus
07/20/2026, 2:29 PM("some string",). Or try with a bytes instead of a str, et.c.Igor Trujnara
07/20/2026, 2:38 PMstr , and of course it wasn't. The object was a Bio.Seq.Seq , which is particularly sneaky, since its __repr__ looks like a normal string, and only type() can reveal its identity. omadb has no validation logic, so it fails silently and in unexpected ways. Wrapping the object in str() solves the problem