Closed priyambial123 closed 1 year ago
If the log file only contains the command not found
error, then I don't think it's an issue with your resources folder. It is an issue with calling the glnexus_cli
command. This job runs using a singularity/docker container that references a GLNEXUS_VERSION variable in the config file.
File rules/cohort_glnexus.smk
:
container: f"docker://ghcr.io/dnanexus-rnd/glnexus:{config['GLNEXUS_VERSION']}"
File config.yaml
:
GLNEXUS_VERSION: 'v1.4.1'
If either of these lines are missing OR if the snakemake arguments allowing integration with singularity were accidentally disabled in the snakemake profiles (for example, these lines in the slurm profile), then the docker won't be loaded and the commands won't be available.
Please see the snakemake documentation for more information about running jobs in containers:
I had to check the resources folder, as I got an error as missing input file in the pbsv annotation step (svpack):
Missing input files for rule svpack_filter_annotated:
resources/hprc/hprc.GRCh38.pbsv.v.2.6.0-20210417.vcf.gz
I fixed it by renaming the file in the resources folder hprc.GRCh38.pbsv.vcf.gz to hprc.GRCh38.pbsv.v.2.6.0-20210417.vcf.gz
Then I had this error in glnexus step, so was not sure if it was the recent download or something else leading to the error.
Thank you for pointing out the singularity integration.
I added a line to fix the issue:
--use-singularity
in the below snakemake command and it is running now:
snakemake --rerun-incomplete --reason --config "cohort='$COHORT'" --nolock --local-cores 4 --use-singularity --jobs 500 --max-jobs-per-second 1 --use-conda --conda-frontend mamba --cluster-config workflow/profiles/slurm/config.yaml --snakefile workflow/process_cohort.smk
Thank you :-)
Hello
I had no problem running the process_cohort.smk (last step in pipeline). Recently, I could not run the cohort_glnexus file. It stops with error:
I looked into the log file :
/usr/bin/bash: line 1: glnexus_cli: command not found
I downloaded the resources folder again and ran the process_cohort.smk again. But, I still get the same error. I also checked the rules files (cohort_glnexus.smk) and it was similar to the files in the GitHub. Is there any file should I check in the resources folder.
Thank you