Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Key Error: 'start' #26

Open
eoberortner opened this issue Oct 9, 2019 · 1 comment
Open

Key Error: 'start' #26

eoberortner opened this issue Oct 9, 2019 · 1 comment

Comments

@eoberortner
Copy link

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

@chofski
Copy link
Contributor

chofski commented Feb 20, 2020

Thanks, I'll add this fix to v2.0 and close once released.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants