evolbioinfo / goalign

Goalign is a set of command line tools and an API to manipulate multiple sequence alignments. It is implemented in Go language.
GNU General Public License v2.0
73 stars 8 forks source link

Adding `draw png` subcommand #11

Closed lucblassel closed 2 years ago

lucblassel commented 2 years ago

Goal

it draws an input alignment to a png file, one sequence per line and one pixel per character. This can be useful to quickly visualize a large alignment where other viewers like bioJS or seaview might struggle.

Color choice

There are 2 different color schemes:

The color scheme is selected from the alignment alphabet with the bioSyntax scheme being preferred in case of alphabet ambiguity.

remarks

I chose png as the command name but it might make sense to let the user decide the output format and rename the command to something like image.

fredericlemoine commented 2 years ago

Thanks @lucblassel !