af2f6f0f48bcfd96833db055437f965fecca80ff,src/biotite/sequence/graphics/alignment.py,AlignmentSymbolVisualizer,set_color_scheme,#AlignmentSymbolVisualizer#Any#,282

Before Change


    def set_color_scheme(self, colors):
        if isinstance(colors, str):
            alphabet = alignment.sequences[0].get_alphabet()
            self._colors = color_schemes[alphabet][colors]
        else:
            self._colors = colors
    
    def get_color(self, alignment, pos_i, seq_i):

After Change


    def set_color_scheme(self, scheme):
        if isinstance(colors, str):
            alphabet = alignment.sequences[0].get_alphabet()
            self._colors = get_color_scheme("rainbow", scheme)
        else:
            self._colors = colors
    
    def get_color(self, alignment, pos_i, seq_i):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 2

Instances


Project Name: biotite-dev/biotite
Commit Name: af2f6f0f48bcfd96833db055437f965fecca80ff
Time: 2018-05-22
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/graphics/alignment.py
Class Name: AlignmentSymbolVisualizer
Method Name: set_color_scheme


Project Name: biotite-dev/biotite
Commit Name: af2f6f0f48bcfd96833db055437f965fecca80ff
Time: 2018-05-22
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/graphics/alignment.py
Class Name: AlignmentSymbolVisualizer
Method Name: __init__


Project Name: biotite-dev/biotite
Commit Name: af2f6f0f48bcfd96833db055437f965fecca80ff
Time: 2018-05-22
Author: patrick.kunzm@gmail.com
File Name: src/biotite/sequence/graphics/logo.py
Class Name: SequenceLogo
Method Name: __init__