Open Jigyasa3 opened 8 months ago
The error is coming if I run the code in a bash script and submit it on SLURM. If I run interactively on the command line, then I don't get this error. Any suggestions to bypass that?
Hello @Jigyasa3, thank you for your comments, plaSquid didn't have the necessary config file to use slurm as executor. I have added that file, you should download it again and try to run it using -profile slurm
. If you have singularity installed you could try -profile singularity, slurm
.
The big problem with this issue is that we don't have access to a server with slurm installed, so I cannot test if those changes are enough to fix it.
Here you can find the nextflow documentation to support slurm as executor, it may be useful if the problem persists or if you want to customize other options for slurm execution.
Let us know if it works, thanks
hi @mgimenez720
Thanks for replying! I re-ran the script after reinstalling the software and conda env, and I am still getting the following error-
code-
#!/bin/bash
#SBATCH --job-name=plasquid
#SBATCH --output=plasquid_%A-%a.out
#SBATCH -o out_plasquid.%j
#SBATCH -e err_plasquid.%j
cd ${IN_DIR}/
#for i in *fasta;do filename=`echo ${i}|sed 's/.fasta//g'` ; mkdir ${OUT_DIR}/${filename};done #create a separate output folder for each sample
conda activate plaSquid
for i in *fasta;do filename=`echo ${i}|sed 's/.fasta//g'` ;nextflow run /home/jigyasaa/downloads/plaSquid/main.nf --contigs ${i} --outdir ${OUT_DIR}/${filename}/ -profile slurm ;done
error-
Error executing process > 'Minidist:Splitter (1)'
Caused by:
Process `Minidist:Splitter (1)` terminated with an error exit status (1)
Command executed:
splitter.R spl_contigs
Command exit status:
1
Command output:
(empty)
Command error:
Error in library(Biostrings, quietly = T) :
there is no package called ‘Biostrings’
Execution halted
Work dir:
/groups/rubin/projects/jigyasa/ML/results/intergenicregion_find/oriV_annotation/plasquid/test_plasquid/work/65/c33219d5c5e87401ffaba1a9757806
Please let me know if you need more information about the code/environment/error. Looking forward to your reply!
Hello! Please try using -profile slurm, singularity
or -profile slurm, conda
instead of activating the conda environment before running. I am sorry I can't be of big help cause we don't have slurm to test the possible solutions.
Hi @iferres and @mgimenez720,
Thank you for a great resource! I am running the plaSquid software on my plasmid genomes of interest. I was able to run the software on a handful of genomes without any error, but recently, I am getting the following error- Error-
My command-
I have checked that the R package is present in the environment (
~/miniconda3/envs/plaSquid/lib/R/library
). what might be going wrong here?