Question: deeptools bamCoverage error
0
gravatar for checkyodna
4 days ago by
checkyodna0
checkyodna0 wrote:

I am encountering a problem when trying to use deeptools (version 2.5.4) and I cannot find any help online. My aim is to convert a BAM file to a bigWig file to visualise tracks on UCSC genome browser. I am using the following command:

bamCoverage -b Striatum_W2_UCSCindex.bam -o Striatum_W2.bw --normalizeUsing RPKM

The error I am getting might be related to my python path (I have blindly attempted a few commands as I am new to bioinformatics) and the full error message is here;

Traceback (most recent call last):
  File "/usr/local/bin/bamCoverage", line 4, in <module>
    from deeptools.bamCoverage import main
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/deeptools/bamCoverage.py", line 8, in <module>
    from deeptools import writeBedGraph  # This should be made directly into a bigWig
  File "/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/deeptools/writeBedGraph.py", line 5, in <module>
    import pyBigWig
ImportError: dlopen(/usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyBigWig.so, 2): Symbol not found: _kSecClass
  Referenced from: /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyBigWig.so
  Expected in: flat namespace
 in /usr/local/Cellar/python/2.7.11/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pyBigWig.so

Any help would be greatly appreciated.

rna-seq • 83 views
ADD COMMENTlink modified 3 days ago by h.mon24k • written 4 days ago by checkyodna0

Can you try "import pyBigWig" in your python prompt? If that gives the same import error, you may try uninstalling and re-installing pyBigWig.

ADD REPLYlink written 4 days ago by Vitis2.0k

I would install conda and then get deeptools3 with it conda install deeptools. Takes care of all dependencies internally. Using environments you can keep your local python separated from the conda python3. Check the docs on conda. Did you install with brew?

ADD REPLYlink modified 3 days ago • written 3 days ago by ATpoint14k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.3.0
Traffic: 1593 users visited in the last hour