/bin/bash/ command not found
3
0
Entering edit mode
4.9 years ago

Hi,

I installed snakepipes through conda and saw that all dependencies were installed (star, hisat...). However, when I run the pipeline (for instance) createIndices, it throws an error "/bin/bash/ command not found" for several instances.

snakemake --snakefile /home/nagaraap/Downloads/Softwares/Anaconda/yes/envs/snakePipes/lib/python3.7/site-packages/snakePipes/workflows/createIndices/Snakefile --configfile Indices_defaults.yaml --cores 10

What is the solution for this ?

Thanks in advance.

snakePipes snakemake • 6.4k views
ADD COMMENT
0
Entering edit mode

If you type which bash, what do you get? Perhaps your system has bash installed outside of /bin/.

ADD REPLY
0
Entering edit mode

I got /bin/bash only.

ADD REPLY
0
Entering edit mode

Okay. I assumed the /bin/bash/ extra '/' was a typo, but check out RamRS' suggestion below.

ADD REPLY
0
Entering edit mode

Does it say /bin/bash/ or /bin/bash? /bin/bash is not a directory and so should not have a / at the end. Please copy-paste the exact error messages you get.

ADD REPLY
0
Entering edit mode

Are you directly running snakemake? We don't ever change away from the default shell (/bin/bash) inside snakePipes.

ADD REPLY
0
Entering edit mode

The defaults.yaml file instructs to run snakemake directly after editing it !

ADD REPLY
0
Entering edit mode

That was meant more as a possibility of "you can directly use it". I'll have the wording changed. As an aside, basically everything in that file can be changed with command line options to the various wrapper scripts.

ADD REPLY
1
Entering edit mode
4.9 years ago
svp ▴ 680

add this path to .bashrc

EXPORT PATH=$PATH:/home/nagaraap/Downloads/Softwares/Anaconda/yes/envs/snakePipes/lib/python3.7/site-packages/snakePipes/workflows/createIndices/Snakefile

then execute

snakemake --snakefile --configfile Indices_defaults.yaml --cores 10
ADD COMMENT
0
Entering edit mode
4.9 years ago
mark.ziemann ★ 1.9k

As RamRS says, the real path is likely to be /bin/bash so drop the trailing slash in your script. Let us know if that works

ADD COMMENT
0
Entering edit mode
4.9 years ago
Fatima ▴ 1000

Snakemake runs in bash strict mode, so there are #!/bin/bash at the beginning of some of the scripts. Maybe you can use grep to find which script contains #!/bin/bash.

https://snakemake.readthedocs.io/en/stable/project_info/faq.html#id27

Please try ll /bin/bash

Please also try exec bash before running your command to see if it helps.

ADD COMMENT
0
Entering edit mode

ll is probably an alias - it is not a builtin or a utility shipped by default in most distros (such as cat or ls). If your ll is aliased to ls -l, please suggest ls -l as that is a more reproducible command.

ADD REPLY

Login before adding your answer.

Traffic: 2592 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6