Cutadapt installation issues
1
0
Entering edit mode
9.2 years ago
Naresh D J ▴ 110

Hi,

I have installed the cutadapt on a server machine with out any errors. But when I use it results in the following error

bash: cutadapt: command not found

I am new to the linux OS and working on the servers. Can any one help me?

Thank you,
Naresh D J

RNA-Seq • 11k views
ADD COMMENT
0
Entering edit mode

Can u post commands how did u install cutadapt? The better way is pip install cutadapt or sudo pip install cutadapt.

ADD REPLY
1
Entering edit mode

If you don't have root privileges, run:

pip install --user cutadapt
ADD REPLY
0
Entering edit mode

Hi Goutham Atla,

Thank you for the reply,

I am installing it on the server machine. I do not have root access.

I have downloaded the cutadapt-1.8.3.tar.gz and installed using the command

$ python setup.py install --prefix=$USERAPPL/my_cutadapt

It produced the following.

ADD REPLY
0
Entering edit mode

I think you need to export PYTHONPATH as well. I would suggest you to run sudo pip install cutadapt. If you do not have sudo permissions, get python distributions like Anaconda, which makes life easier.

ADD REPLY
0
Entering edit mode

get python distributions like Anaconda, which makes life easier.

What? Anaconda has nothing to do user permissions. If you're suggesting that using "conda" instead of "pip" will help, then I think you're also off-base as conda's cutadapt release (1.3) is way behind the PyPI release (1.8.3). Also, please, please never recommend that anyone mess with their PYTHONPATH environment variable - especially users that seem to be having basic packaging/installation issues. PYTHONPATH should point to the system python library and the one in our $HOME/.local directory, and unless you have some extremely good reasons to change it please don't.

ADD REPLY
0
Entering edit mode

I mean to say adding to Pythonpath not entirely changing the pythonpath.

ADD REPLY
0
Entering edit mode

Sorry, I think you caught me on a grumpy day...

ADD REPLY
0
Entering edit mode

Also for future questions like this I would post in the cutadapt issue tracker.

ADD REPLY
1
Entering edit mode
9.2 years ago
cruckert8 ▴ 30

You have to either specify the full path to the executable e.g.

/home/your_username/.local/bin/cutadapt

or add the directory where you installed cutadapt to your path by adding the following line to the .bashrc file in your home directory:

export PATH=$PATH:/path/to/your/cutadapt-installation

You can view your current path settings by typing:

echo $PATH

Regards,
Christian

ADD COMMENT
0
Entering edit mode

Hi Christian,

Thank you for the reply.

I tried like this

export PATH=$PATH:/homeappl/home/njayavel/appl_taito/my_cutadapt/bin

Is this correct way of doing it? Then I am getting this error.

 Traceback (most recent call last):
  File "/homeappl/home/njayavel/appl_taito/my_cutadapt/bin/cutadapt", line 9, in <module>
    from cutadapt.scripts import cutadapt
ImportError: No module named cutadapt.scripts

Best Regards,
Naresh D J

ADD REPLY
0
Entering edit mode

I would take igor's advice and use the --user installation scheme. What this does is place the cutadapt module in your $HOME/.local directory and the cutadapt script in $HOME/.local/bin. What you've done so far will require that you append /homeappl/home/njayavel/appl_taito/my_cutadapt/ to your PYTHONPATH variable, but frankly I think that's a poor idea.

ADD REPLY
0
Entering edit mode

That is the solution, one more to do is source .bashrc file thank you!

ADD REPLY

Login before adding your answer.

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