Cutadapt installation - user defined directory
0
0
Entering edit mode
5.8 years ago

I know this is might be a silly question, but I am wondering how it is possible to install cutadapt in a user defined directory like, for instance, /home/Tools/Cutadapt/.

Thank you in advance for the feedbacks.

cutadapt Installation • 3.6k views
ADD COMMENT
2
Entering edit mode

In my opinion the easiest would be to just install cutadapt using bioconda and then symlink to that user-defined directory, but it's unclear why you would want to do so.

This also doesn't seem to be a pure bioinformatics question, which might be more suitable for StackOverflow.

ADD REPLY
0
Entering edit mode

I wanted to give the same answer.

pip install --user --upgrade cutadapt
sudo ln -s ~/.local/bin/cutadapt [your location]
ADD REPLY
0
Entering edit mode

Thank you for your answers. I am trying to find a way for having available multiple versions of cutadapt, for reproducibility issues.

ADD REPLY
2
Entering edit mode

Then you need virtual environments. Which you can make with conda.

E.g.:

conda create -n myenv cutadapt=1.13
source activate myenv
ADD REPLY
0
Entering edit mode

Thank you for your reply. I was wondering whether there might be any strategy alternative to venv.....

ADD REPLY
0
Entering edit mode

Why?

ADD REPLY
0
Entering edit mode

I'd like to explore possible python-independent solutions

ADD REPLY
0
Entering edit mode

It's a python package, so unless you want to use docker or singularity you're not going to have much luck with a python-independent solution.

ADD REPLY
0
Entering edit mode

Bash Environment Modules, although Python virtual environments are extremely useful, so I'd consider your choices carefully.

ADD REPLY
0
Entering edit mode

At least I use environment modules in conjunction with venvs and conda, so you can module load instead of source activate. I don't see these are necessarily separate solutions.

ADD REPLY
0
Entering edit mode

I don't really see why you would like to do that, but good luck.

ADD REPLY
0
Entering edit mode

Doesn't really add to the topic, but I recently saw that cutadapt is now multithreaded, but only on Python3, so you may consider to install it directly under Py3 using a virtual environment as WouterDeCoster suggested.

ADD REPLY
0
Entering edit mode

This is really a good point. Thank you !

ADD REPLY
0
Entering edit mode

Cutadapt has minimal dependencies so with Python 3, you could also do the following assuming the python3-venv module is installed:

# install latest version
python3 -m venv cutadapt
source cutadapt/bin/activate
pip install cutadapt
deactivate 

# install version 1.14
python3 -m venv cutadapt14
source cutadapt14/bin/activate
pip install cutadapt==1.14
deactivate
ADD REPLY

Login before adding your answer.

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