CloneSet187


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
15201.000compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
11548
Bio/AlignAce/Motif.py
21565
Bio/Motif/_Motif.py
Clone Instance
1
Line Count
15
Source Line
48
Source File
Bio/AlignAce/Motif.py

    def set_mask(self,mask): 
         """
        sets the mask for the motif

        The mask should be a string containing asterisks in the position of significant columns and spaces in other columns
        """ 
         self._check_length(len(mask)) 
         self.mask = [ ] 
         for char in mask: 
              if char=="*": 
                   self.mask.append(1) 
              elif char==" ": 
                   self.mask.append(0) 
              else: 
                   raise ValueError("Mask should contain only '*' or ' ' and not a '%s'"%char) 
              


Clone Instance
2
Line Count
15
Source Line
65
Source File
Bio/Motif/_Motif.py

    def set_mask(self,mask): 
         """
        sets the mask for the motif

        The mask should be a string containing asterisks in the position of significant columns and spaces in other columns
        """ 
         self._check_length(len(mask)) 
         self.mask = [ ] 
         for char in mask: 
              if char=="*": 
                   self.mask.append(1) 
              elif char==" ": 
                   self.mask.append(0) 
              else: 
                   raise ValueError("Mask should contain only '*' or ' ' and not a '%s'"%char) 
              


Clone AbstractionParameter Count: 0Parameter Bindings

def set_mask(self,mask):
  """
        sets the mask for the motif

        The mask should be a string containing asterisks in the position of significant columns and spaces in other columns
        """ 
  self._check_length(len(mask)) 
  self.mask = [ ] 
  for char in mask:
  
    if char=="*":
    
      self.mask.append(1) 
    elif char==" ":
    
      self.mask.append(0) 
    else:
    
      raise ValueError("Mask should contain only '*' or ' ' and not a '%s'"%char) 
    
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
None