SkillAgentSearch skills...

Weblogo

WebLogo 3: Sequence Logos redrawn

Install / Use

/learn @gecrooks/Weblogo
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

WebLogo: A Sequence Logo Generator

WebLogo is a web based application designed to make the generation of sequence logos as easy and painless as possible.

WebLogo can create output in several common graphics' formats, including the bitmap formats JPEG and PNG, suitable for on-screen display, and the vector formats PDF and SVG, more suitable for printing, publication, and further editing. Additional graphics options include bitmap resolution, titles, optional axis, and axis labels, antialiasing, error bars, and alternative symbol formats.

A sequence logo is a graphical representation of an amino acid or nucleic acid multiple sequence alignment. Each logo consists of stacks of symbols, one stack for each position in the sequence. The overall height of the stack indicates the sequence conservation at that position, while the height of symbols within the stack indicates the relative frequency of each amino or nucleic acid at that position. The width of the stack is proportional to the fraction of valid symbols in that position.

References

Crooks GE, Hon G, Chandonia JM, Brenner SE WebLogo: A sequence logo generator, Genome Research, 14:1188-1190, (2004) Full Text

Schneider TD, Stephens RM. 1990. Sequence Logos: A New Way to Display Consensus Sequences. Nucleic Acids Res. 18:6097-6100

Installation

To install with uv:

$ uv venv
$ uv add weblogo

Activate the environment before running weblogo:

$ source .venv/bin/activate

On Windows PowerShell:

> .venv\Scripts\Activate.ps1

Then run:

$ weblogo --help

Weblogo uses ghostscript to convert PDF to bitmap formats (PNG, JPEG). PDF output is generated natively and does not require ghostscript.

Mac:

brew install ghostscript

Ubuntu:

    sudo apt-get update
    sudo apt-get install -y ghostscript
    # Install fonts
    # https://askubuntu.com/questions/651441/how-to-install-arial-font-and-other-windows-fonts-in-ubuntu
    echo "ttf-mscorefonts-installer msttcorefonts/accepted-mscorefonts-eula select true" | sudo debconf-set-selections
    sudo apt-get install -y ttf-mscorefonts-installer --reinstall
    fc-match Arial

Development

To install the development version of WebLogo, clone the github repository.

$ git clone https://github.com/gecrooks/weblogo.git
$ cd weblogo
$ uv venv
$ uv add --dev ruff pytest pytest-cov mypy sphinx guzzle_sphinx_theme pre-commit setuptools_scm

Common tasks (no activation required):

$ uv run python -m pytest
$ uv run ruff check
$ uv run mypy weblogo
$ uv run sphinx-build -b html docs docs/_build/html

Please consult the developer notes, <code>DEVELOPERS.txt</code> and software license <code>LICENSE</code>

Outstanding bugs and feature requests are listed on the <a href="https://github.com/gecrooks/weblogo/issues">WebLogo issue tracker.</a>

Open Source License

This package is distributed under the <a href="http://opensource.org/licenses/MIT">The MIT Open Source License Open Source License</a>. Much of the code was written by Gavin E. Crooks, Gary Hon, Steven Brenner, John-Marc Chandonia, Liana Lareau, David Ding, Clare Gollnick and other contributors.

Copyright Notice

Copyright (c) 2006, The Regents of the University of California, through Copyright (c) 2006-2011, The Regents of the University of California, through Lawrence Berkeley National Laboratory (subject to receipt of any required approvals from the U.S. Dept. of Energy). All rights reserved.

Parts of this software package are covered by the individual copyrights of the contributors. Please refer to individual source code files for further details.

Notice: This software was developed under funding from the U.S. Department of Energy. As such, the U.S. Government has been granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, prepare derivative works, and perform publicly and display publicly. Beginning five (5) years after the date permission to assert copyright is obtained from the U.S. Department of Energy, and subject to any subsequent five (5) year renewals, the U.S. Government is granted for itself and others acting on its behalf a paid-up, nonexclusive, irrevocable, worldwide license in the Software to reproduce, prepare derivative works, distribute copies to the public, perform publicly and display publicly, and to permit others to do so.

Disclaimer

While no permanent records are kept of submitted sequences, we cannot undertake to guarantee that data sent to WebLogo remains secure. Moreover, no guarantees whatsoever are provided about data generated by WebLogo.

Labels:

bioinformatics, python, biology, science, visualization

Related Skills

View on GitHub
GitHub Stars156
CategoryDevelopment
Updated2d ago
Forks37

Languages

Python

Security Score

85/100

Audited on Mar 31, 2026

No findings