Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
8 | 2 | 1 | 0.989 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 8 | 167 | Bio/Prosite/Pattern.py |
2 | 8 | 175 | Bio/Prosite/Pattern.py |
| ||||
def search(self,seq,pos = 0,endpos = None): if endpos is not None: m = self.grouped_re.search(buffer(seq.data),pos,endpos) else: m = self.grouped_re.search(buffer(seq.data),pos) if m is None: return None return PrositeMatch(self,seq,m) |
| ||||
def match(self,seq,pos = 0,endpos = None): if endpos is not None: m = self.grouped_re.match(buffer(seq.data),pos,endpos) else: m = self.grouped_re.match(buffer(seq.data),pos) if m is None: return None return PrositeMatch(self,seq,m) # I was thinking about adding sub, subn, findall, etc., but either # you just want the string (in which case, use the ".re") or # you could be changing to a different alphabet (eg, T->U). # Elements of a Prosite pattern |
| |||
def [[#variable76baa900]](self,seq,pos = 0,endpos = None): if endpos is not None: m = self.grouped_re. [[#variable76baa900]](buffer(seq.data),pos,endpos) else: m = self.grouped_re. [[#variable76baa900]](buffer(seq.data),pos) if m is None: return None return PrositeMatch(self,seq,m) # I was thinking about adding sub, subn, findall, etc., but either # you just want the string (in which case, use the ".re") or # you could be changing to a different alphabet (eg, T->U). # Elements of a Prosite pattern |
CloneAbstraction |
Parameter Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#76baa900]] | match |
1 | 2 | [[#76baa900]] | search |