Cutadapt On Windows
3
0
Entering edit mode
10.5 years ago

Can anybody give me detailed procedure on cutadapt installation on windows? Because whenever i installed/ run cutadapt using python it is not working? Although there is comprehensive readme document.

windows • 10k views
ADD COMMENT
3
Entering edit mode

most of the programs give an error message when something is wrong. "not working" does not give anybody a possibility to help you. Maybe its not in your PATH?

ADD REPLY
2
Entering edit mode
10.5 years ago

Cutadapt requires a C compiler. On Windows you will be able to install the Python-only components of cutadapt, but the adapter alignment code is C, which is not provided as a pre-compiled binary. You'll need something like MinGW, which provides a C compiler, and then you can install Cython and cutadapt.

ADD COMMENT
2
Entering edit mode
8.1 years ago
emmaggie ▴ 20

As some of us are locked in Windows environment, here is the procedure to get cutadapt up and running on Windows:
- get Python installed (I recommend Anaconda, it is pretty well equipped for scientific computing)
- search for and install Visual Studio C compiler for Python (e.g. VCForPython27.msi). If you have issues with installation from msi, follow the instructions here.
- start command prompt and type:

pip install cutadapt

This will install the most recent version of the cutadapt.

One additional hack that was needed (there is probably a more elegant and correct solution) was to copy the script: C:\Anaconda\Lib\site-packages\cutadapt\scripts\cutadapt.py (e.g. to working directory). Rename it (e.g. my_cutadapt.py) and call it with:

python my_cutadapt.py
ADD COMMENT
0
Entering edit mode
8.5 years ago
Shahzad ▴ 30

Hi

Can we use Cygwin instead MinGW?

ADD COMMENT
0
Entering edit mode

You should be able to use Cygwin. Though I'd recommend switching to Linux, or else using BBDuk, which can runs in Windows or Linux without needing recompilation or an emulator.

ADD REPLY

Login before adding your answer.

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