load_color_scheme
#
- biotite.sequence.graphics.load_color_scheme(file_name)[source]#
Load a color scheme from a JSON file.
A color scheme is a list of colors that correspond to symbols of an alphabet. The color for a symbol is list of colors indexed by the corresponding symbol code.
- Parameters:
- file_namestr
The file name of the JSON file containing the scheme.
- Returns:
- schemedict
A dictionary representing the color scheme, It contains the following keys, if the input file is proper:
name - Name of the scheme.
alphabet -
Alphabet
instance describing the type of sequence the scheme can be used for.colors - List of Matplotlib compatible colors