Devon Ryan,
I dont know if I did it in a proper way but what I did was:
**module load anaconda
conda install --override-channels -c conda-forge bzip2
conda create --clone biopython --name biopython
conda install htseq
conda install pysam
htseq-count -m union -f bam -r name -t CDS accepted_hits_sorted_1.bam my.gtf > counts.file**
I am not getting this. I would like to go the easy way but the problem is I am working on a cluster system and I don't see that program in there.
Are you using the latest versions? How did you install htseq-count?
simply conda install htseq.
How did you execute htseq-counts? Please be as informative as possible. Which versions are you using?
The error is about "libbz2.so.1.0: cannot open shared object file". Are you sure that is not present on your system? What kind of OS is your server running/is it is a cluster?
I'm not sure what the primary error is:
smells like outdated pysam to me.
Please post the output of:
WouterDeCoster and Genomax
My htseq version is 0.9.1. pysam version is 0.11.2.2 my script for htseq is : htseq-count -m union -f bam -r name -t CDS accepted_hits_sorted_1.bam my.gtf > counts.file
the output of python -c "import pysam ; print(pysam.__version__)" is an error:
_File "<string>", line 1, in <module> File "/opt/asn/apps/anaconda_2-4.2.0_cent/lib/python2.7/site-packages/pysam/__init__.py", line 5, in <module> from pysam.libchtslib import * ImportError: libbz2.so.1.0: cannot open shared object file: No such file or directory_
I have no idea if that "libbz2.so.1.0" is in my system but I am getting that error and I am using a cluster OS.
sorry, I could not reply fast because of new user limit error.
Genomax,
When I did locate libbz2 it gave me following path
/usr/lib/libbz2.so.1
/usr/lib/libbz2.so.1.0.6
/usr/lib64/libbz2.so
/usr/lib64/libbz2.so.1
/usr/lib64/libbz2.so.1.0.6