I have some fragments of DNA from single and double digests using three different restriction enzymes. I'm trying to construct a restriction map of a linear fragment of DNA. The map needs indicate the relative positions of the restriction sites along with distances from the ends.
Can this be done using python at all?
Is it possible to create a restriction map using python?
For sure :)
But do you really want to roll-your-own in Python? It's perfectly valid if you do, but i'm sure there are complete tools to do this already that are out there (http://www.genome.ucsc.edu/cgi-bin/hgTrackUi?hgsid=325535671&c=chr17&g=cutters)
If you really want something in Python, it may be as simple as taking the reference genome fasta, and scanning through it for your cutter's motif, and taking note of the position as you go.
For the record, there's nothing (theoretically speaking) that one programming language can do that another one cannot. So long as they're "Turin Complete", they can solve any computational problem.