70 likes | 92 Views
Jazz Weisman. Dabbling In Ancestral Reconstruction. Inspired by: Using ancient protein kinases to unravel a modern cancer drug’s mechanism By C. Wilson, R. V. Agafonov, M. Hoemberger, S. Kutter, A. Zorba, J. Halpin, V. Buosi, R. Otten, D. Waterman, D. L. Theobald, D. Kern.
E N D
Jazz Weisman Dabbling In Ancestral Reconstruction Inspired by: Using ancient protein kinases to unravel a modern cancer drug’s mechanism By C. Wilson, R. V. Agafonov, M. Hoemberger, S. Kutter, A. Zorba, J. Halpin, V. Buosi, R. Otten, D. Waterman, D. L. Theobald, D. Kern Wilson, C.; Agafonov, R. V.; Hoemberger, M.; Kutter, S.; Zorba, A.; Halpin, J.; Buosi, V.; Otten, R.; Waterman, D.; Theobald, D. L.; et al. Using ancient protein kinases to unravel a modern cancer drug’s mechanism. Science 2015, 347 (6224), 882–886 DOI: 10.1126/science.aaa1823.
Storing A Tree {0:[ 'AAAAAAAAAAAAAAAAAAAA'], 1: [ 'ACAAAAAAAYAAAAAAAAAA', 'AAAAAAAAAAAPAAAAEAAA'], 2: [ 'ACAAAAAAAYAAAAARGAAA', 'DCANAAAAAYAAAAAAAWAA', 'AAAAAAAAAAAPAAADEAAA', 'AAMAWGAAAAAPAAAAEAAA'], 3: [ 'ACAAAACAAYAACAARGAAA', 'ACAAEGAAAYAAAAARGAAA', 'DCANAAAAAYEAAAAAAVKA', 'DCANAAAAAYAAVAAAAWAA', 'AAAAAAAAAAAPAADDEAAA', 'WAAAAAAMAAAPAAADEAAA', 'AAMAWGAANAAPAAAAEAAA', 'AAMAWFAAAAAPAAAAMAAA']} • AAAAAAAAAAAAAAAAAAAA • ACAAAAAAAYAAAAAAAAAA • ACAAAAAAAYAAAAARGAAA • ACAAAACAAYAACAARGAAA • ACAAEGAAAYAAAAARGAAA • DCANAAAAAYAAAAAAAWAA • DCANAAAAAYEAAAAAAVKA • DCANAAAAAYAAVAAAAWAA • AAAAAAAAAAAPAAAAEAAA • DCANAAAAAYAAAAAAAWAA • AAAAAAAAAAAPAADDEAAA • WAAAAAAMAAAPAAADEAAA • AAAAAAAAAAAPAAADEAAA • AAMAWGAANAAPAAAAEAAA • AAMAWFAAAAAPAAAAMAAA
Storing a Tree • class Node(object): • def__init__(self): • self.node=[]# list of children • self.seq = None# sequence • self.prev=None# parent • def nex(self,child): • ## Gets a node by number and returns it • returnself.node[child] • def prev(self): • returnself.prev • ## this function adds a daughter node, sets its parent (prev) and returns the daughter • def add(self): • node1=Node() • self.node.append(node1) • node1.prev=self • return node1