By Joran Martijn
If you are working through a remote server or computer cluster like Perun or Graham, and you are generating alignment files, you may want to check quickly the quality of your alignment. Is there anything strange, are the sites properly aligned, is there perhaps one sequence that is clearly not aligned?
You would typically transfer the alignment file to your local computer so that you can inspect the alignment visually, with SeaView or AliView:
$ rsync <user>@perun.biochem.dal.ca:<alignment_file> .
However, this requires a lot of actions and key strokes:
As you might imagine, this is not ideal.
Thankfully, there is a tool available that allows you to view alignment files directly in your terminal, even if they are on a remote system! Alan
See if Alan is installed on Perun already. If not, install it on your home:
$ cd $ mkdir tools $ cd tools $ git clone https://github.com/mpdunne/alan
And add it to your $PATH by adding this to your .bashrc
# alan - a command line alignment viewer export PATH=“~/tools/alan:$PATH
You can now view your alignment file simply with
$ alan <alignment_file>
By default, the coloring of the nucleotides or amino acids can be very bright.
If you wish to use less bright colors, find the default_p line in the alan script ( ~/tools/alan/alan ) and comment it out. Now add the following line
# the new value of default_p with TEMPERED COLORS default_p="KkRr\t01;31\nSsTtQqNn\t01;32\nAaIiLlMmFfWwVvCc\t01;34\nCc\t0 1;37\nEeDd\t01;35\nGg\t01;33\nHhYy\t01;36\nPp\t01;33"