Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in reading bam file #12

Open
salmonm opened this issue Jan 10, 2018 · 1 comment
Open

Error in reading bam file #12

salmonm opened this issue Jan 10, 2018 · 1 comment

Comments

@salmonm
Copy link

salmonm commented Jan 10, 2018

Hello
I'm trying to run EDD for the first time and I got the following error which I assume is related to reading the bam file
Traceback (most recent call last):
File "/opt/miniconda2/bin/edd", line 133, in
import eddlib.experiment
File "/opt/miniconda2/lib/python2.7/site-packages/eddlib/experiment.py", line 17, in
import read_bam
File "libcfaidx.pxd", line 51, in init eddlib.read_bam (eddlib/read_bam.c:8007)
AttributeError: 'module' object has no attribute 'PersistentFastqProxy'

Any idea what is wrong?
Thanks
Mali

@FatihSarigol
Copy link

What's wrong is that a package/program version dependency problem prevents pysam from working which is required by EDD to read bam files by wrapping another program htslib. Not sure which installation method and which versions were used for this post 3 years ago, but the most recent bioconda build 1.1.19 also give the similar error.

I tried to install the 1.1.18 version too but that build was incomplete, missing some package dependencies.

I checked out the versions of the programs and noticed that in the current EDD conda build pysam is version 0.10.0 but that version was designed to wrap htslib version 1.3.2 while in the EDD conda build the htslib version is 1.9 and this causes pysam to not work apparently.
https://pysam.readthedocs.io/en/latest/release.html#release-0-10-0

I first updated both to the most recent versions but that did not work, likely because this time some other old version packages caused dependency issue with the upgraded two.

I tried downgrading htslib to 1.3.2 and that worked.

For anyone that wants to use EDD today, the easiest way to install it is then via conda, first:

conda create -n EDD -c bioconda edd

then after installation is completed, downgrade htslib:

conda install htslib=1.3.2

Info about how to install bioconda:
https://bioconda.github.io/user/install.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants