Hi, warning that this is a noob question.
I am running into problems importing HTSeq. The context is that I am trying to sample randomly from a fastq file (not paired reads). After trying a few methods and always running out of memory I think I need to use the script Simon Anders posted here that relies on HTSeq: http://seqanswers.com/forums/showthread.php?t=12070
I navigate to the directory where my script and the fastq file of interest are saved, then call the script as follows in order to randomly subsample a tenth of the reads:
python subsamplewithHTSeq.py 0.10 SRR12345.fastq out_tenth_SRR12345.fastq
However, I always get a message that HTSeq can't be imported. I have installed HTSeq (version HTSeq-0.5.4p1.win32-py2.7.exe), along with Numpy and I am using 32 bit python 2.7 on Windows 7. I have read the tour through HTSeq, but I still can't figure this out. I am a newbie to computational work and any help would be greatly appreciated. The error is below:
C:\Users\kak\Desktop\ShortReads\fastqformatted>python subsamplewithHTSeq.py 0
.1 fastq_SRR12345.fastq tenth_SRR12345.fastq
Traceback (most recent call last):
File "subsamplewithHTSeq.py", line 15, in <module>
import HTSeq
File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 9, in <module>
from _HTSeq import *
File "_HTSeq.pyx", line 14, in init HTSeq._HTSeq (src/_HTSeq.c:31058)
File "C:\Python27\lib\site-packages\HTSeq\StepVector.py", line 26, in <module>
_StepVector = swig_import_helper()
File "C:\Python27\lib\site-packages\HTSeq\StepVector.py", line 22, in swig_imp
ort_helper
_mod = imp.load_module('_StepVector', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.
HTSeq-0.5.4p1.win32-py2.7.exe
I am running into problems importing HTSeq. The context is that I am trying to sample randomly from a fastq file (not paired reads). After trying a few methods and always running out of memory I think I need to use the script Simon Anders posted here that relies on HTSeq: http://seqanswers.com/forums/showthread.php?t=12070
I navigate to the directory where my script and the fastq file of interest are saved, then call the script as follows in order to randomly subsample a tenth of the reads:
python subsamplewithHTSeq.py 0.10 SRR12345.fastq out_tenth_SRR12345.fastq
However, I always get a message that HTSeq can't be imported. I have installed HTSeq (version HTSeq-0.5.4p1.win32-py2.7.exe), along with Numpy and I am using 32 bit python 2.7 on Windows 7. I have read the tour through HTSeq, but I still can't figure this out. I am a newbie to computational work and any help would be greatly appreciated. The error is below:
C:\Users\kak\Desktop\ShortReads\fastqformatted>python subsamplewithHTSeq.py 0
.1 fastq_SRR12345.fastq tenth_SRR12345.fastq
Traceback (most recent call last):
File "subsamplewithHTSeq.py", line 15, in <module>
import HTSeq
File "C:\Python27\lib\site-packages\HTSeq\__init__.py", line 9, in <module>
from _HTSeq import *
File "_HTSeq.pyx", line 14, in init HTSeq._HTSeq (src/_HTSeq.c:31058)
File "C:\Python27\lib\site-packages\HTSeq\StepVector.py", line 26, in <module>
_StepVector = swig_import_helper()
File "C:\Python27\lib\site-packages\HTSeq\StepVector.py", line 22, in swig_imp
ort_helper
_mod = imp.load_module('_StepVector', fp, pathname, description)
ImportError: DLL load failed: The specified module could not be found.
HTSeq-0.5.4p1.win32-py2.7.exe
Comment