BioGraPy icon indicating copy to clipboard operation
BioGraPy copied to clipboard

AttributeError: 'SeqFeature' object has no attribute 'sub_features'

Open zreitz opened this issue 7 years ago • 0 comments

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.

zreitz avatar Mar 08 '18 16:03 zreitz