A blog on some snippets of my work in bioinformatics. Hopefully you find something useful here and avoid stupid mistakes I made.
Pymsaviz is a great local and offline multiple sequence alignment (MSA) viewer and plotter alternative to the NCBI online MSA viewer. No frills, easy to install and use and is fantastic for creating publication-grade figures.
I will be using this example to visulise the alignment.
pip install pygenomeviz
or
conda install -c conda-forge -c bioconda pymsaviz
from pymsaviz import MsaViz
msa.out.fa in the same directory
msa_file = "./msa.out.fa"
mv = MsaViz(msa_file, wrap_length=60, show_count=True)
mv.savefig("./msa_plot.png")
You should see an output like this. (excerpt)
