How to put CutAdapt in path for running TrimGalore?
1
0
Entering edit mode
4.3 years ago

I have installed TrimGalore and Cutadapt for Mac OSX but when I try to run TrimGalore I always get the error message:

Failed to execute Cutadapt porperly. Please install Cutadapt first and make sure it is in the PATH, or specify the path to the Cutadapt executable using --path_to_cutadapt /path/to/cutadapt

I know that I have installed cutadapt from following the instructions here: https://cutadapt.readthedocs.io/en/stable/installation.html#quick-installation

but how do I make sure that Cutadapt is in the path?

fastqc trimgalore cutadapt • 3.4k views
ADD COMMENT
0
Entering edit mode

Add the location of cutadapt directory to your $PATH by doing export PATH=$PATH:/dir_containing_cutadapt.

ADD REPLY
0
Entering edit mode
4.3 years ago
Shalu Jhanwar ▴ 540

I'd suggest the simplest is to make the Cutadapt path globally accessible by including it in your ~/.bashrc. Then TrimGalore will automatically find it within the path and run successfully.

Hope this helps!

ADD COMMENT
0
Entering edit mode

Thank you for your help. I am awfully new to computers, do you know how I can include it in my ~/.bashrc ?

ADD REPLY
0
Entering edit mode
gedit ~/.bashrc

Then do what genomax suggests

ADD REPLY
0
Entering edit mode

I'd suggest having a look at an example here.

You may follow the steps below:

  1. Get the path of Cutadapt where it is installed by the command which cutadapt

  2. Copy the path that you get from Step1 and add it to your ~/.bashrc file as

    export PATH=$PATH:cutadapt_installation_path

    Replace the cutadapt_installation_path with the path you get from which cutadapt command

  3. Save the ~/.bashrc file and type source ~/.bashrc on the terminal

If cutadapt is running from any directory, then it is accessible globally.

Hope this helps!

ADD REPLY
0
Entering edit mode

@james is using macOS so they may not be using bash. In that case this solution would not work.

ADD REPLY

Login before adding your answer.

Traffic: 2018 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