CloneSet170


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
8210.989compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
18167
Bio/Prosite/Pattern.py
28175
Bio/Prosite/Pattern.py
Clone Instance
1
Line Count
8
Source Line
167
Source File
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) 


Clone Instance
2
Line Count
8
Source Line
175
Source File
Bio/Prosite/Pattern.py

    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


Clone AbstractionParameter Count: 1Parameter Bindings

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 Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#76baa900]]
match 
12[[#76baa900]]
search