merenlab / anvio

An analysis and visualization platform for 'omics data
http://merenlab.org/software/anvio
GNU General Public License v3.0
441 stars 146 forks source link

Problem with the program 'anvi-compute-completeness' #579

Closed tdelmont closed 7 years ago

tdelmont commented 7 years ago

Hi there, I have been trying to run 'anvi-compute-completeness' on anvi'o 2.4.0-master, and got this error I though I should report:

TypeError: tuple indices must be integers or slices, not str

Here is the full run and error info:

anvi-compute-completeness -c JFLX01.db --list-completeness-sources
Available singlecopy sources .................: Campbell_et_al, Rinke_et_al

anvi-compute-completeness -c JFLX01.db --completeness-source Campbell_et_al
/groups/merenlab/virtual-envs/anvio-master/lib/python3.5/site-packages/numpy/core/fromnumeric.py:2889: RuntimeWarning: Mean of empty slice.
  out=out, **kwargs)
/groups/merenlab/virtual-envs/anvio-master/lib/python3.5/site-packages/numpy/core/_methods.py:80: RuntimeWarning: invalid value encountered in double_scalars
  ret = ret.dtype.type(ret / rcount)

Completeness for 192 splits (p < 1e-15)
===============================================
Traceback (most recent call last):
  File "/groups/merenlab/virtual-envs/anvio-master/anvio/bin/anvi-compute-completeness", line 72, in <module>
    run.info(source, '%.2f%% complete, %.2f%% redundant' % (results[source]['percent_completion'], results[source]['percent_redundancy']))
TypeError: tuple indices must be integers or slices, not str

Best,

Tom

meren commented 7 years ago

Clearly we forgot this in our tests. Thanks, Tom! It should be working now :)