#term #bioinformatics #color

aa-colour

Add some colours to your amino acids

1 unstable release

0.1.1 Sep 9, 2020

#78 in #term

Apache-2.0

9KB
183 lines

aa-colour stability-experimental

Rust Rust Documentation Crates.io version Crates.io license

🎨 Add colours to your amino acids in the terminal.

Code inspired from the crates owo-colors and colored.

Usage

use aa_colour::{AaColourise, palettes::Clustal};

println!("{}", AaColour::colour::<Clustal>(&'A').unwrap());
println!("{}", AaColour::blank::<Clustal>(&'-').unwrap());

Features

  • colourise a single amino acid according to different palettes
    • Clustal
    • Amino acid scales
      • Hydrophobicity
      • Disorder propensity
      • etc.
  • allow for amino acids to not be coloured (for protein alignments)

Dependencies

~300–770KB
~18K SLoC