CloneSet95


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
14240.958compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
114144
Bio/Seq.py
214160
Bio/Seq.py
Clone Instance
1
Line Count
14
Source Line
144
Source File
Bio/Seq.py

        if hasattr(other,"alphabet"):  
            #other should be a Seq or a MutableSeq
            if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]):
                                                                      
                raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) 

            #They should be the same sequence type (or one of them is generic)
            a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) 
            return self.__class__(str(self)+str(other),a) 
        elif isinstance(other,basestring):  
            #other is a plain string - use the current alphabet
            return self.__class__(str(self)+other,self.alphabet) 
        else: 
            raise TypeError 


Clone Instance
2
Line Count
14
Source Line
160
Source File
Bio/Seq.py

        if hasattr(other,"alphabet"):  
            #other should be a Seq or a MutableSeq
            if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]):
                                                                      
                raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) 

            #They should be the same sequence type (or one of them is generic)
            a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) 
            return self.__class__(str(other)+str(self),a) 
        elif isinstance(other,basestring):  
            #other is a plain string - use the current alphabet
            return self.__class__(other+str(self),self.alphabet) 
        else: 
            raise TypeError 


Clone AbstractionParameter Count: 4Parameter Bindings

if hasattr(other,"alphabet"):
  #other should be a Seq or a MutableSeq
  if not Alphabet._check_type_compatible([self.alphabet,other.alphabet]):
  
    raise TypeError("Incompatable alphabets %s and %s"%(repr(self.alphabet),repr(other.alphabet))) 
    #They should be the same sequence type (or one of them is generic)
  a = Alphabet._consensus_alphabet([self.alphabet,other.alphabet]) 
  return self.__class__(str( [[#variable195f08a0]])+str( [[#variable195f0800]]),a) 
elif isinstance(other,basestring):
  #other is a plain string - use the current alphabet
  return self.__class__( [[#variable195f0780]]+ [[#variable195f0700]],self.alphabet) 
else:
  raise TypeError 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#195f08a0]]
other 
12[[#195f08a0]]
self 
21[[#195f0800]]
self 
22[[#195f0800]]
other 
31[[#195f0780]]
other 
32[[#195f0780]]
str(self) 
41[[#195f0700]]
str(self) 
42[[#195f0700]]
other