BTheDragonMaster / parasect

Predictive Algorithm for Resolving A-domain Specificity by featurising Enzyme and Compound in Tandem
2 stars 0 forks source link

Using paras/tmp is not compatible with shared conda environments #1

Open snail123815 opened 2 months ago

snail123815 commented 2 months ago

Hi Barbara, maybe you already know this but in case you don't.

I set parasect up in a shared conda environment. For this environment, I can use for fine. However, it needs to be shared as J don't know how to set it up by himself. Also when multiple person is using the same program, if they use the same environment, it will save quite some spaces on the server.

All the dirs created by environment manager are 755, files are 644, meaning, other users can use this environment, but cannot modify it. When a specific file is written to the environment, it will report premission error.

In the case of parasect,

Permission denied: '/vol/local/conda_envs/parasect/lib/python3.9/site-packages/paras/tmp/proteins_from_genbank.fasta'

I think using python's tempfile.NamedTemporaryFile should solve the issue. It deals with such problems by creating a system tmp file.

I did not read the code, sorry if you have already solved it.

davidmeijer commented 2 months ago

Hi @snail123815, thank you for bringing this to our attention. While we refactor the code to address your issue, you can also use the UI here: https://paras.bioinformatics.nl/. Most functionalities from the command line interface are implemented in the UI.