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

Help with genes error: libchtslib #73

Closed
elhwashington opened this issue Nov 13, 2017 · 4 comments
Closed

Help with genes error: libchtslib #73

elhwashington opened this issue Nov 13, 2017 · 4 comments

Comments

@elhwashington
Copy link

Hello,
I have been trying to get MIDAS, installed by a former lab member, to run. So far I think that I have run_midas.py species running but when I then try run_midas.py genes on the samples I just ran through species I receive the following error
Traceback (most recent call last):
File "/Users/mcleanlab/Tools/MIDAS/scripts/run_midas.py", line 757, in
run_program(program, args)
File "/Users/mcleanlab/Tools/MIDAS/scripts/run_midas.py", line 79, in run_program
genes.run_pipeline(args)
File "/Users/mcleanlab/Tools/MIDAS/midas/run/genes.py", line 286, in run_pipeline
pangenome_coverage(args, species, genes)
File "/Users/mcleanlab/Tools/MIDAS/midas/run/genes.py", line 149, in pangenome_coverage
count_mapped_bp(args, species, genes)
File "/Users/mcleanlab/Tools/MIDAS/midas/run/genes.py", line 173, in count_mapped_bp
import pysam
File "/Users/mcleanlab/Downloads/pysam-master/pysam/init.py", line 5, in
from pysam.libchtslib import *
ImportError: No module named libchtslib
I have looked for libchtslib and found libchtslib.pxd, libchstlib.c and libchtslib.o deep inside the pysam-master folder. However, even adding the corresponding folders to the python path did not correct the issue.
I am looking for help. Hopefully I'm just confused and the answer is simple.

thank you for your time
Erik Hendrickson

snayfach pushed a commit that referenced this issue Nov 26, 2017
-see issues #73, #72, #69, #68
-added new samtools and bowtie2 binaries which should work on more systems
-added checks for samtools and bowtie2 binaries; if binaries don't work instructions for replacing them are provided
@snayfach
Copy link
Owner

Please download the latest version of the code and run the testing code MIDAS/test/test_midas.py. This should let you know what the issue is, but I suspect it is related to your installed version of pysam.

Thanks,
Stephen

@elhwashington
Copy link
Author

elhwashington commented Nov 28, 2017 via email

@snayfach
Copy link
Owner

In that case I'm closing this issue, but feel free to reopen as necessary.

Thanks,
Stephen

@nick-youngblut
Copy link

At least on some linux systems, the midas bioconda recipe is installing pysam=0.15.4, which when imported generates the ImportError: No module named libchtslib error. Specifyingpysam>=0.16 in the midas bioconda recipe should help to avoid the issue

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

4 participants
@snayfach @nick-youngblut @elhwashington and others