Plasmid Map Drawing Code - Part 1
A while back I started working on a project with a friend at UCLA’s MBI which we called the Schneider Suite. The first bit of code I wrote for this was a circular plasmid drawing library for use with python Tkinter. I stopped working on the suite altogether while I started my business but I figure I’d put a screenshot up in case anyone is interested. I’ve updated and cleaned up the code a bit and ported it over to wxPython. wxPython is a great cross-platform GUI framework. I’ve used it to create an entire process control system for carbon nanotube synthesis, so it’s very powerful and extensible.
Here’s a screenshot of the new plasmid drawing library:

Here are some of the current and planned features:
- Draw start and end arrows for segment. Segments can be flat ended or have an arrow at either end.
- Specify colors for rail, segments, markers, labels, and label guides
- Customize width of arrow tips and arrow head length.
- Customize display of plasmid map rail (those two inner circles you see on the screen shot).
- Offset the plasmid segment (so you can overlap markers and segments).
- Draw flat tick markers (single line segment instead of full segment).
- Labels (in process, i’m porting it over).
- Hot-spot detection (have segments respond to mouse events - in progress).
No code yet, but soon I’ve lost it, unfortunately.