This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Use Of Dinup

Hi,

Has anybody had any success in installing the DiNuP module (Fu etal, Bioinformatics, 2012, Vol 28).

When i have tried to install, i get the error:

Traceback (most recent call last):
File "./dinup", line 35, in <module>
from DINUP.Peak_Detect import *
ImportError: No module named DINUP.Peak_Detect

All advice is appreciated

Best,

Sameet

I tried installing it now, and it worked without any problems. What python version are you running?

I have version 2.7 in one case and 2.6.1 in the other. The 2.7 version machine is a Linux box, the other is a MacPro (Desktop).

I'm running 2.7 and and it works, so it's probably not a version issue then. One possibility is that the download was corrupted - since it does not seam to find the module your looking for. I assume that you have followed the instructions for how to install: http://www.tongji.edu.cn/~zhanglab/DiNuP/install.html

Yes, i did follow the instructions in the given link to the t.

It seems that the local install with python setup.py install --prefix ${HOME}/local does not work, but installation on global scale works.

Weird. But then at least it works. :)

2 answers

Hi Sammet, for a local install, you can first open a terminal and then type: export PYTHONPATH= PATH OF DiNuP + /lib/python2.6/site-packages/:$PYTHONPATH, for example, if my --prefix= /software/dinup, it should be export PYTHONPATH=/software/dinup/lib/python2.6/site-packages/:$PYTHONPATH, in this way, Python will know the pwd of the DiNuP.

Adding an answer to close this from being unanswered. As msmeet above states:

It seems that the local install with python setup.py install --prefix ${HOME}/local does not work, but installation on global scale works.

Log in to answer this question.