Skip to content

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

@zreitz

Description

@zreitz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions