snayfach / MicrobeCensus

MicrobeCensus estimates the average genome size of microbial communities from metagenomic data
http://genomebiology.com/2015/16/1/51
GNU General Public License v3.0
42 stars 16 forks source link

Test failed #19

Closed slschnorr closed 6 years ago

slschnorr commented 6 years ago

Hi, just installed and ran the test in the "tests" directory with the following:

`.E.

ERROR: test_ags_estimation (main.Pipeline)

Traceback (most recent call last): File "test_microbe_census.py", line 21, in setUp self.observed = microbe_census.run_pipeline({'seqfiles':[self.infile]})[0] File "/usr/lib/python2.7/site-packages/microbe_census/microbe_census.py", line 583, in run_pipeline paths = get_relative_paths(args) File "/usr/lib/python2.7/site-packages/microbe_census/microbe_census.py", line 109, in get_relative_paths if args['rapsearch']: KeyError: 'rapsearch'


Ran 3 tests in 0.066s

FAILED (errors=1)`

snayfach commented 6 years ago

I'm not sure what the problem is. I just ran the tests without any errors:

$ git clone https://github.com/snayfach/MicrobeCensus
$ cd MicrobeCensus
$ export PATH=$PATH:$PWD/scripts
$ export PYTHONPATH=$PYTHONPATH:$PWD
$ cd tests/
$ python test_microbe_census.py -vf
test_detect_filetype (__main__.FileType) ... ok
test_ags_estimation (__main__.Pipeline) ... ok
test_read_list (__main__.ReadList) ... ok

----------------------------------------------------------------------
Ran 3 tests in 41.532s

OK
slschnorr commented 6 years ago

How strange. This time I git cloned it and then installed with the setup.py install, rather than downloading the tarball, and the test worked.

snayfach commented 6 years ago

I just published a new release so this should be fixed now.

Thanks, Stephen