generate_annotation_files.py 'DataFrame' object has no attribute 'tolist'
This bug happens for a Genbank file with multiple accessions (multiple chromosomes or contigs) and at least one of the accession has no significant alignment match with any of the ICEscreen reference signature proteins.
Traceback (most recent call last):
File "/home/cress/miniconda3/envs/ICEscreen/bin/icescreen_formatting/generate_annotation_files.py", line 731, in <module>
sp_feats = spdata_filter_genomeAccesionIT.apply(lambda x: SP_to_SeqFeature(x, CDS_dict[genomeAccesionIT], hasMultipleGenomeAccesion), axis=1).tolist()
File "/home/cress/miniconda3/envs/ICEscreen/lib/python3.10/site-packages/pandas/core/generic.py", line 6204, in __getattr__
return object.__getattribute__(self, name)
AttributeError: 'DataFrame' object has no attribute 'tolist'
Edited by Thomas Lacroix