Color Schemes¶
Color schemes equivalent to Jalview are available in pyMSAviz.
Available Color Schemes¶
In [1]:
Copied!
from pymsaviz import MsaViz
print(MsaViz.available_color_schemes())
from pymsaviz import MsaViz
print(MsaViz.available_color_schemes())
['Clustal', 'Zappo', 'Taylor', 'Flower', 'Blossom', 'Sunset', 'Ocean', 'Hydrophobicity', 'HelixPropensity', 'StrandPropensity', 'TurnPropensity', 'BuriedIndex', 'Nucleotide', 'Purine/Pyrimidine', 'Identity', 'None']
Example of Color Scheme¶
In [2]:
Copied!
from pymsaviz import MsaViz, get_msa_testdata
msa_file = get_msa_testdata("MRGPRG.fa")
for color_scheme in MsaViz.available_color_schemes():
mv = MsaViz(msa_file, start=100, end=160, color_scheme=color_scheme, show_label=False)
fig = mv.plotfig()
fig.suptitle(f"Color Scheme = {color_scheme}", x=0.5, y=1.15, va="bottom", size=15)
from pymsaviz import MsaViz, get_msa_testdata
msa_file = get_msa_testdata("MRGPRG.fa")
for color_scheme in MsaViz.available_color_schemes():
mv = MsaViz(msa_file, start=100, end=160, color_scheme=color_scheme, show_label=False)
fig = mv.plotfig()
fig.suptitle(f"Color Scheme = {color_scheme}", x=0.5, y=1.15, va="bottom", size=15)