LEfSe IndexError: list index out of range

aceback (most recent call last):
File "/home/lefse/bin/lefse_format_input.py", line 10, in
sys.exit(format_input())
File "/home/lefse/lib/python3.8/site-packages/lefse/lefse_format_input.py", line 437, in format_input
class_sl,subclass_sl,class_hierarchy = get_class_slices(list(zip(cls['class'], cls['subclass'], cls['subject'])))
File "/home/lefse/lib/python3.8/site-packages/lefse/lefse_format_input.py", line 163, in get_class_slices
previous_class = data[0][0]
IndexError: list index out of range

Hello and welcome to :qiime2:

LefSE is developed by SegataLab and better support can be found on Biobakery Forum or GitHub of LefSE.

Cheers
Valentyn

3 Likes

New error is encountered:
Traceback (most recent call last):
File "/home/lefse/bin/lefse_format_input.py", line 10, in
sys.exit(format_input())
File "/home/lefse/lib/python3.8/site-packages/lefse/lefse_format_input.py", line 437, in format_input
class_sl,subclass_sl,class_hierarchy = get_class_slices(list(zip(cls['class'], cls['subclass'], cls['subject'])))
KeyError: 'subject'

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.