Closed SchwarzEM closed 11 months ago
And then, after being stuck with all of that, I finally found a subtle bugfix in issue #48 that actually solved my problems while running in a batch job!
Specifically, adding --image fcs-gx.sif
to the command line immediately after python3 fcs.py
made the command work fine in a batch job, whereas previously it had been crashing. In full detail:
mamba activate python_3.7.0 ;
GXDB_LOC=$PROJECT/src/NCBI_FCS/test-only ;
python3 fcs.py --image fcs-gx.sif screen genome --debug --fasta ./fcsgx_test.fa.gz --out-dir ./gx_out/ --gx-db "$GXDB_LOC/test-only" --tax-id 6973 ;
I am still mystified about why it was necessary for me to do this in a batch job but not in an interactive line command; but, I'm glad it at least seems to be working now.
Hello,
We haven't tested docker installs in mamba environments.
In any case, glad you got it to run. What happened here is that you didn't explicitly set the Singularity image file as an environment variable export FCS_DEFAULT_IMAGE=fcs-gx.sif
but was then resolved when you set it with the --image
parameter in the fcs.py
command. It's in the documentation but easy to miss. Seeing as you got it to work with the singularity image I would recommend just proceeding with that.
https://github.com/ncbi/fcs/wiki/FCS-GX#a-retrieve-the-required-files
Describe the bug
I am able to run fcs.py on my system in naive interactive line-command mode, but when I try to run exactly the same commands in SLURM batch jobs, fcs.py keeps crashing with an error message. This is very bad because I need to be able to run long jobs in batch mode to use this software for real purposes at all.
To Reproduce
First, to prove to myself that I could run fcs.py on my system as long as I worked from an interactive command-line, I did the following:
Software versions (please complete the following information):
docker image ls
]. ????python --version
]: 3.7.0, with activated mamba environment.Log Files
Here is the entire error message that I got even after --debug: