BioGraPy
BioGraPy copied to clipboard
AttributeError: 'SeqFeature' object has no attribute 'sub_features'
When using the code in Draw a SeqRecord, I get the following error:
File "[path]/seqrecord.py", line 50, in __init__
self.draw_features()
File "[path]/seqrecord.py", line 80, in draw_features
if feature.sub_features:
AttributeError: 'SeqFeature' object has no attribute 'sub_features'
The BioPython docs say that .sub_features has been depreciated in favor of CompoundLocations. For now, I just deleted that if block.