CloneSet437


Previous CloneSetNext CloneSetBack to Main Report
Clone
Mass
Clones in
CloneSet
Parameter
Count
Clone
Similarity
Syntax Category
[Sequence Length]
17220.983compound_stmt
Clone AbstractionParameter Bindings
Clone Instance
(Click to see clone)
Line CountSource Line
Source File
117996
Bio/Seq.py
2171014
Bio/Seq.py
Clone Instance
1
Line Count
17
Source Line
996
Source File
Bio/Seq.py

    def complement(self): 
        """The complement of an unknown nucleotide equals itself.

        >>> my_nuc = UnknownSeq(8)
        >>> my_nuc
        UnknownSeq(8, alphabet = Alphabet(), character = '?')
        >>> print my_nuc
        ????????
        >>> my_nuc.complement()
        UnknownSeq(8, alphabet = Alphabet(), character = '?')
        >>> print my_nuc.complement()
        ????????
        """ 
        if isinstance(Alphabet._get_base_alphabet(self.alphabet),Alphabet.ProteinAlphabet):
                                                 
            raise ValueError("Proteins do not have complements!") 
        return self 


Clone Instance
2
Line Count
17
Source Line
1014
Source File
Bio/Seq.py

    def reverse_complement(self): 
        """The reverse complement of an unknown nucleotide equals itself.

        >>> my_nuc = UnknownSeq(10)
        >>> my_nuc
        UnknownSeq(10, alphabet = Alphabet(), character = '?')
        >>> print my_nuc
        ??????????
        >>> my_nuc.reverse_complement()
        UnknownSeq(10, alphabet = Alphabet(), character = '?')
        >>> print my_nuc.reverse_complement()
        ??????????
        """ 
        if isinstance(Alphabet._get_base_alphabet(self.alphabet),Alphabet.ProteinAlphabet):
                                                 
            raise ValueError("Proteins do not have complements!") 
        return self 


Clone AbstractionParameter Count: 2Parameter Bindings

def [[#variable7c3e8980]](self):
   [[#variable7c3e8c80]]
  if isinstance(Alphabet._get_base_alphabet(self.alphabet),Alphabet.ProteinAlphabet):
  
    raise ValueError("Proteins do not have complements!") 
  return self 
 

CloneAbstraction
Parameter Bindings
Parameter
Index
Clone
Instance
Parameter
Name
Value
11[[#7c3e8980]]
reverse_complement 
12[[#7c3e8980]]
complement 
21[[#7c3e8c80]]
"""The reverse complement of an unknown nucleotide equals itself.

        >>> my_nuc = UnknownSeq(10)
        >>> my_nuc
        UnknownSeq(10, alphabet = Alphabet(), character = '?')
        >>> print my_nuc
        ??????????
        >>> my_nuc.reverse_complement()
        UnknownSeq(10, alphabet = Alphabet(), character = '?')
        >>> print my_nuc.reverse_complement()
        ??????????
        """ 
22[[#7c3e8c80]]
"""The complement of an unknown nucleotide equals itself.

        >>> my_nuc = UnknownSeq(8)
        >>> my_nuc
        UnknownSeq(8, alphabet = Alphabet(), character = '?')
        >>> print my_nuc
        ????????
        >>> my_nuc.complement()
        UnknownSeq(8, alphabet = Alphabet(), character = '?')
        >>> print my_nuc.complement()
        ????????
        """