I am trying to create a barplot from a humann2 pathabundance.tsv and get the following error:
Traceback (most recent call last):
File "/Users/carlsonlab/anaconda2/bin/humann2_barplot", line 11, in <module>
load_entry_point('humann2==0.11.1', 'console_scripts', 'humann2_barplot')()
File "/Users/carlsonlab/anaconda2/lib/python2.7/site-packages/humann2/tools/humann2_barplot.py", line 336, in main
exclude_unclassified=args.exclude_unclassified,
File "/Users/carlsonlab/anaconda2/lib/python2.7/site-packages/humann2/tools/humann2_barplot.py", line 217, in __init__
self.update( )
File "/Users/carlsonlab/anaconda2/lib/python2.7/site-packages/humann2/tools/humann2_barplot.py", line 220, in update
self.nrows, self.ncols = self.data.shape
ValueError: need more than 1 value to unpack
It appears that for some samples the "values" variable in FeatureTable.__init__ is not being initialized properly and the resulting values passed to self.nrows, self.ncols = (0,)
Command Run:
humann2_barplot.py -i PWY-6126.tsv -f PWY-6126 -m Antibiotics -l Antibiotics -k PuBu -o PWY-6126.png
Thank you,
Brian