Question: salmon command not found from shell
0
gravatar for martijnhoes5
17 days ago by
martijnhoes50 wrote:

Hi all, I'm using Salmon to align fastq files to an index genome and I've installed all associated packages (as far as I know). When I call salmon from the terminal, everything runs fine. I previously used a shell script to automate alignment for multiple files, but I suddenly get the error messages "salmon: command not found" and "gzip: command not found".

The command I use in terminal (single files) is:

salmon quant -i human_index --libType A -r /Rprojects/Sweet_et_al/fastq/SRR7426123.fastq -o /Rprojects/Sweet_et_al/quant/SRR7426123

The shell script I use looks like this:

#!/bin/bash
PATH="/media/manager/HDD_Martijn/RNAseq"
for i in {123..130}
do
salmon quant -i ${PATH}/salmon/human_index --libType A -r ${PATH}/Rprojects/Sweet_et_al/fastq/SRR7426${i}.fastq -o ${PATH}/Rprojects/Sweet_et_al/quant/SRR7426${i}
gzip ${PATH}/Rprojects/Sweet_et_al/quant/SRR7426${i}/quant.sf
done

It used to work just fine, but I haven't used it in a while. Something is wrong and I'm not very familiar with Linux. Can anyone help me figure this out? Any and all suggestions would be greatly appreciated! Thank you.

rna-seq alignment • 87 views
ADD COMMENTlink modified 17 days ago by WouterDeCoster44k • written 17 days ago by martijnhoes50
6
gravatar for WouterDeCoster
17 days ago by
Belgium
WouterDeCoster44k wrote:

You should not use PATH as a variable, as you are overwriting the $PATH environmental variable which tells your shell where to find executables (such as gzip and salmon)

ADD COMMENTlink modified 17 days ago • written 17 days ago by WouterDeCoster44k

Hi Wouter, this is great! Thanks for your help. That fixed it I wasn't aware that I was overwriting the PATH variable.

ADD REPLYlink written 16 days ago by martijnhoes50
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1277 users visited in the last hour