Skip to content

Key Error: 'start' #26

@eoberortner

Description

@eoberortner

Hi,
I've encountered an issue in the renderDNA function (dnaplotlib/dnaplotlib.py). Each part object must have a 'start' and an 'end' value. If these values are not provided by the user, then it causes a "Key Error" in case the part is reverse oriented. (line 2574-2577).

For me, this simple fix solved the problem:
#start = part['start']
#end = part['end']
part['end'] = part_num + 1
part['start'] = part_num

Thanks,
Ernst

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions