Skip to content

milot-mirdita/Protsolata

Repository files navigation

Protsolata

Protsolata is a monospace font, based on Inconsolata, designed for rendering protein sequences in web applications. It integrates Jalview’s color schemes directly into a single color-font, so you can swap schemes by applying a CSS class without per-character styling. It was built for the Foldseek webserver at @soedinglab/MMseqs2-App.

Quick Start: Use Protsolata in your project

  1. Copy the assets Protsolata.woff, Protsolata.woff2, and Protsolata_palettes.css into your project.

  2. Load the stylesheet in your HTML:

    <link rel="stylesheet" href="Protsolata_palettes.css">
  3. Choose a Jalview color scheme by adding one of these utility classes to the element that contains your sequence: .clustal2, .buried, .cinema, .clustal, .helix, .hydrophobicity, .lesk, .mae, .strand, .taylor, .turn, .zappo. If you omit the class, font-family: 'Protsolata' falls back to the default Clustal2 palette.

See the examples in index.html or Protsolata_test.html for sample usage.

Regenerating the font

  1. Install dependencies: pip install fonttools cu2qu brotli zopfli
  2. Edit makefont.py as needed.
  3. Run: python makefont.py

New font files will be written to the current directory.

About

A monospace color font for protein sequences with built-in Jalview color schemes

Topics

Resources

License

MIT, OFL-1.1 licenses found

Licenses found

MIT
LICENSE.md
OFL-1.1
OFL.txt

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published