CloneSet69


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
19220.988compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
1191230
Bio/Seq.py
2191251
Bio/Seq.py
Clone Instance
1
Line Count
19
Source Line
1230
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]) 
            if isinstance(other,MutableSeq): 
                #See test_GAQueens.py for an historic usage of a non-string
                #alphabet!  Adding the arrays should support this.
                return self.__class__(self.data+other.data,a) 
            else: 
                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)+str(other),self.alphabet) 
        else: 
            raise TypeError 


Clone Instance
2
Line Count
19
Source Line
1251
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]) 
            if isinstance(other,MutableSeq): 
                #See test_GAQueens.py for an historic usage of a non-string
                #alphabet!  Adding the arrays should support this.
                return self.__class__(other.data+self.data,a) 
            else: 
                return self.__class__(str(other)+str(self),a) 
            
        elif isinstance(other,basestring):  
            #other is a plain string - use the current alphabet
            return self.__class__(str(other)+str(self),self.alphabet) 
        else: 
            raise TypeError 


Clone AbstractionParameter Count: 2Parameter 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]) 
  if isinstance(other,MutableSeq):
  
    #See test_GAQueens.py for an historic usage of a non-string
    #alphabet!  Adding the arrays should support this.
    return self.__class__( [[#variable71a77300]].data+ [[#variable77b31c00]].data,a) 
  else:
  
    return self.__class__(str( [[#variable71a77300]])+str( [[#variable77b31c00]]),a) 
  
elif isinstance(other,basestring):
  #other is a plain string - use the current alphabet
  return self.__class__(str( [[#variable71a77300]])+str( [[#variable77b31c00]]),self.alphabet) 
else:
  raise TypeError 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#71a77300]]
other 
12[[#71a77300]]
self 
21[[#77b31c00]]
self 
22[[#77b31c00]]
other