This is a test version of Biostars. For the public version, visit https://www.biostars.org.
Trouble with danpos2 installation - can anyone help?

I have used conda to install both R and rpy2. When I try to run python danpos.py -h to install the danpos package I get the following error:

Traceback (most recent call last):
  File "danpos.py", line 6, in <module>
    from functions import danpos
  File "/path/danpos-2.2.2/functions.py", line 4, in <module>
    from wigs import Wigs
  File "/path/danpos-2.2.2/wigs.py", line 3, in <module>
    from wig import Wig
  File "/path/danpos-2.2.2/wig.py", line 4, in <module>
    from rpy2.robjects import r,FloatVector
  File "/usr/local/lib/python2.7/dist-packages/rpy2/robjects/__init__.py", line 16, in <module>
    import rpy2.rinterface as rinterface
  File "/usr/local/lib/python2.7/dist-packages/rpy2/rinterface/__init__.py", line 92, in <module>
    from rpy2.rinterface._rinterface import (baseenv,
ImportError: No module named _rinterface

Is this an issue with the R installation path? How can I resolve this. Thank you!

danpos installation python

Nope, this doesn't work

And would you mind telling us "how" that doesn't work? Error message? We are notoriously bad at reading your mind.

This was the error when using the conda link above. PackagesNotFoundError: The following packages are not available from current channels:

  • danpos
  • samtools

1 answer

I just installed it:

source $HOME/bin/miniconda3/bin/activate
conda create -n DANPOS2-2.2.2
conda activate DANPOS2-2.2.2
conda install -c imperial-college-research-computing danpos
danpos.py -h
danpos version 2.2.2
For help information for each function, try:
python danpos.py <function> -h

Functions:
        dpos:
                analyze each protein-binding position (~100
                to ~200bp wide) across the whole genome,
                e.g. nucleosome positions.
  

Log in to answer this question.