I'd like to write a script to help me sort through possible CRISPR sites in various exons. Seems like I should be able to do this by creating a new instance of AbstractCut in BioPython. But what I can find in the BioPython source seems to strongly discourage this. I think the assumption is that all the restriction enzymes will be created within Biopython and not by the user. (As if the world of discovery starts and stops with rebase. Not a bad assumption 11 months ago.)
I'd like to get back to the bench and really have limited skills with the informatics. Is there a tutorial or description somewhere of how to create new instances of AbstractCut (or whatever the right class is) with my own randomly chosen restriction sequence? When I try to create
from Bio.Restriction import *
class myCrisprCutter(AbstractCut):
def __init__(self):
#AbstractCut.__init__(self)
print "do something'
#self.site = "something"
#self.compsite = re.compile("write a regex that works here")
I error with AbstractCut has not defined. That should give a sense of how much I have to learn!
Thanks
Personally, if you're confident with Python and regex, I'd say skip the BioPython complexity and just use the python
re
package. This is a simple string search problem, I'm not sure that the added complexity of BioPython really adds anything.