Previous CloneSet | Next CloneSet | Back to Main Report |
Clone Mass | Clones in CloneSet | Parameter Count | Clone Similarity | Syntax Category [Sequence Length] |
---|---|---|---|---|
17 | 2 | 2 | 0.983 | compound_stmt |
Clone Abstraction | Parameter Bindings |
Clone Instance (Click to see clone) | Line Count | Source Line | Source File |
---|---|---|---|
1 | 17 | 996 | Bio/Seq.py |
2 | 17 | 1014 | 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 |
| ||||
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 |
| |||
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 Index | Clone Instance | Parameter Name | Value |
---|---|---|---|
1 | 1 | [[#7c3e8980]] | reverse_complement |
1 | 2 | [[#7c3e8980]] | complement |
2 | 1 | [[#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() ?????????? """ |
2 | 2 | [[#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() ???????? """ |