-
Notifications
You must be signed in to change notification settings - Fork 18
IndexError while building database using groopm parse #8
Comments
Hey, This error most often occurs when BamM is not installed properly. Do you have the install logs? If not, you can re-run the install procedure and send me a copy of what spews out to the screen. Then I can look into it. Thanks. |
I definitely had some issues installing at almost every step. (The htslib and libcfu dependencies were the worst) Here’s the output for from setup.py install in BamM. Should I try reinstalling everything again? Do you want to output for the dependencies? Dan BamM install output:
|
Hi, Your install looks OK. I checked through the code and I've removed some dodgyness with some of the free statements. I don't know if this will fix your problems or not, but thanks for pointing me to a bit of code I can fix. The new version is 1.3.2. could you pull this down and run the nosetests on it please. |
I still get the same nosetests errors. I pulled, reran setup.py install, and then ran nosetests. Heres the output and thanks again for your help: $ git pull
$ nosetests ............................................Ran 45 tests in 7.999s OK
|
I'm still getting the same error with version 1.3.3. I got weird output from nosetests the first time so I ran it again. See below. dan$ bamm
dan$ nosetests ............................................Ran 45 tests in 8.798s OK ............................................Ran 45 tests in 8.387s OK |
The error is within python. I can create a similar problem if I use ctypes with Python 2.6.x. I've uploaded a small script to the BamM web page called sysInfo.py. Could you please run that and post the output here. Thanks. |
Sure! Thanks again for your help. dan@computobacter:~/archive/01.06.15_Prepping_for_GroopM$ python sysInfo.py
|
Should be fixed in BamM 1.3.4 Hopefully... Thanks for your patience |
So close! I don't see those double free errors, but one of the tests fails now. Here's the output: dan@computobacter:~$ bamm
dan@computobacter: ERROR: Test creation of TAM file with output prefix. Traceback (most recent call last): Ran 45 tests in 6.849s FAILED (errors=1)
|
oops. Deleted some files accidentally., Fixed now (1.3.6) |
This resolves my issue. GroopM and BamM both seem to work now. Thank you so much for your help! Dan
|
Yay! |
First off, thanks for working on this, I'm super excited to use this on some soil metagenome data I've been playing with.
I started to parse three mapping files and build a database, and I encountered an index error. Is it because my bam files are too large? I was surprised this happened even though I only used three files as a test run. The bam files are 1.3G, 8.4G and 1.4G.
I noticed the following line in my output
This looked familiar because I saw something similar when running nosetests. I've pasted the output from nosetests at the end of this.
GroopM_parse.log:
$ groopm parse test.gm ~/binning_files/1018256.scaffolds.fasta TGACCA.bam TTAGGC.bam TCGGCA.bam
[[GroopM 0.3.3]] Running in data parsing mode...
Creating new database test.gm
Parsing contigs
Parsing BAM files using 1 threads
Parsing file: TGACCA.bam
Parsing file: TTAGGC.bam
*** Error in `/usr/bin/python': double free or corruption (out): 0x000000005ac1da20 ***
Error creating database: test.gm <type 'exceptions.IndexError'>
Unexpected error: <type 'exceptions.IndexError'>
Traceback (most recent call last):
File "/usr/local/bin/groopm", line 381, in
GM_parser.parseOptions(args)
File "/usr/local/lib/python2.7/dist-packages/groopm/groopm.py", line 117, in parseOptions
threads=options.threads)
File "/usr/local/lib/python2.7/dist-packages/groopm/mstore.py", line 276, in createDB
threads)
File "/usr/local/lib/python2.7/dist-packages/groopm/mstore.py", line 1773, in parse
return ([BP.BFI.bamFiles[i].fileName for i in range(len(bamFiles))],
IndexError: list index out of range
Nosetests.log:
dan@computobacter:~/software/BamM$ nosetests
.*** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001b80bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001b80bc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001b80bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001bb5bc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001bb5bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x0000000001bb5bc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000017c2bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000017c2bc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000017c2bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x000000000132ebc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x000000000132ebc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x000000000132ebc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000025e1060 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000025e1060 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000025e1060 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000012f6bc0 ****** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000012f6bc0 *** *** Error in
/usr/bin/python': double free or corruption (fasttop): 0x00000000012f6bc0 ***............................................
Ran 45 tests in 7.338s
OK
The text was updated successfully, but these errors were encountered: