| 1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" |
| 2 |
"http://www.w3.org/TR/html4/loose.dtd"> |
| 3 |
<html> |
| 4 |
|
| 5 |
<head> |
| 6 |
<link rel="stylesheet" type="text/css" href="logo.css"> |
| 7 |
<title>WebLogo 3 - User's Manual</title> |
| 8 |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> |
| 9 |
<meta name="author" content="Gavin E. Crooks"> |
| 10 |
<!-- Latest compiled and minified CSS --> |
| 11 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css"> |
| 12 |
<!-- Optional theme --> |
| 13 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css"> |
| 14 |
<!-- Latest compiled and minified JavaScript --> |
| 15 |
<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script> |
| 16 |
<!--CSS spacing adjustments for aligning definition lists under Bootstrap--> |
| 17 |
<style type="text/css"> |
| 18 |
#create-sequence { |
| 19 |
font-size: large |
| 20 |
} |
| 21 |
|
| 22 |
dd { |
| 23 |
padding-top: 3px |
| 24 |
} |
| 25 |
|
| 26 |
#color-scheme { |
| 27 |
padding-top: 2px |
| 28 |
} |
| 29 |
</style> |
| 30 |
</head> |
| 31 |
|
| 32 |
<body> |
| 33 |
<div class="container-fluid"> |
| 34 |
<!--outermost container--> |
| 35 |
<div class="navbar navbar-default navbar-fixed-top" role="navigation"> |
| 36 |
<div class="container"> |
| 37 |
<div class="navbar-header"> |
| 38 |
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> |
| 39 |
<span class="sr-only">Toggle navigation</span> |
| 40 |
<span class="icon-bar"></span> |
| 41 |
<span class="icon-bar"></span> |
| 42 |
<span class="icon-bar"></span> |
| 43 |
</button> |
| 44 |
<a class="navbar-brand" href="./">WebLogo 3</a> |
| 45 |
</div> |
| 46 |
<div class="collapse navbar-collapse"> |
| 47 |
<ul class="nav navbar-nav"> |
| 48 |
<li><a href="./">home</a></li> |
| 49 |
<li><a href="create.cgi">create</a></li> |
| 50 |
<li><a href="examples.html">examples</a></li> |
| 51 |
<li class="active"><a href="manual.html">manual</a></li> |
| 52 |
</ul> |
| 53 |
</div> |
| 54 |
<!--/.nav-collapse --> |
| 55 |
</div> |
| 56 |
</div> |
| 57 |
<!--close navbar container--> |
| 58 |
<div class="container-fluid"> |
| 59 |
<!--outer fluid container--> |
| 60 |
<div class="row"> |
| 61 |
<!--Manual.html text row container--> |
| 62 |
<div class="col-sm-1"></div> |
| 63 |
<!--outer left margin column--> |
| 64 |
<div class="col-sm-10"> |
| 65 |
<!--central text column sm-10--> |
| 66 |
<div class="row"> |
| 67 |
<!--table of contents container--> |
| 68 |
<div class="row"> |
| 69 |
<h3><br></h3></div> |
| 70 |
<!--spacing to push title below nav bar--> |
| 71 |
<h1 id='Gallery-header'>WebLogo 3: User's Manual</h1> |
| 72 |
<div> |
| 73 |
<h4>Contents</h4></div> |
| 74 |
<!-- |
| 75 |
<img alt="WebLogo: Create" width="499" height="633" |
| 76 |
src="img/weblogo_create.png" align="right" border='1' vspace="10" hspace="10"></a> |
| 77 |
--> |
| 78 |
<div class="col-sm-6"> |
| 79 |
<!--table of contents left column: links--> |
| 80 |
<ul> |
| 81 |
<li><a href="#intro">Introduction</a></li> |
| 82 |
<li><a href="#create">Creating Sequences Logos using the Web interface</a></li> |
| 83 |
<li><a href="#download">Downloading and Installing WebLogo</a></li> |
| 84 |
<li><a href="#CLI"> Command Line Interface (CLI)</a></li> |
| 85 |
<li><a href="#API"> Application Programmer Interface (API)</a></li> |
| 86 |
<li><a href="#dev"> Development and Future Features</a></li> |
| 87 |
<li><a href="#misc">Miscellanea</a></li> |
| 88 |
</ul> |
| 89 |
</div> |
| 90 |
<!--close table of contents left column: links--> |
| 91 |
<div class="col-sm-6"> |
| 92 |
<!--table of contents right column: image--> |
| 93 |
<img src="img/example.png" class="img-responsive" alt="Web Logo example"> |
| 94 |
</div> |
| 95 |
<!--close table of contents right column: image--> |
| 96 |
</div> |
| 97 |
<!--table of contents container end--> |
| 98 |
<div class="row"> |
| 99 |
<!--release notes row container--> |
| 100 |
<h4> Release Notes and Known Bugs</h4> The <a href="weblogo_changelog.txt">WebLogo release notes</a> detail changes to WebLogo and known issues with particular versions. |
| 101 |
</div> |
| 102 |
<!--release notes container end--> |
| 103 |
<div class="row"> |
| 104 |
<!--introductions container--> |
| 105 |
<a name="intro"> |
| 106 |
<br> |
| 107 |
</a> |
| 108 |
<h2>Introduction</h2> |
| 109 |
<p> |
| 110 |
<strong>WebLogo</strong> is a web based application designed to make the |
| 111 |
<a href="create.cgi">generation</a> of sequence logos as easy and painless as possible. |
| 112 |
</p> |
| 113 |
<p> |
| 114 |
A <a href="https://alum.mit.edu/www/toms/sequencelogo.html">sequence logo</a> 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. (Positions with many gaps have thin stacks.)In general, a sequence logo provides a richer and more precise description of, for example,a binding site, than would a consensus sequence. |
| 115 |
</p> |
| 116 |
</div> |
| 117 |
<!--introductions container end--> |
| 118 |
<!-- ============================================================== --> |
| 119 |
<div class="row"> |
| 120 |
<!--references row container--> |
| 121 |
<div> |
| 122 |
<h4>References</h4></div> |
| 123 |
<div> |
| 124 |
<p> |
| 125 |
<a href="http://threeplusone.com/">Crooks GE</a>, |
| 126 |
<a href="http://compbio.berkeley.edu/">Hon G</a>, |
| 127 |
<a href="http://compbio.berkeley.edu/">Chandonia JM</a>, |
| 128 |
<a href="http://compbio.berkeley.edu/people/brenner/">Brenner SE</a> WebLogo: A sequence logo generator, |
| 129 |
<em>Genome Research</em>, 14:1188-1190, (2004) [ |
| 130 |
<a href="http://threeplusone.com/pubs/fulltext/Crooks2004a-GR-WebLogo.pdf">Full Text</a> ] |
| 131 |
</p> |
| 132 |
<p> |
| 133 |
Schneider TD, Stephens RM. 1990. |
| 134 |
<a class="out" href="https://alum.mit.edu/www/toms/paper/logopaper/">Sequence Logos: A New Way to Display Consensus Sequences.</a> |
| 135 |
<em>Nucleic Acids Res.</em> <em>18</em>:6097-6100 |
| 136 |
</p> |
| 137 |
</div> |
| 138 |
</div> |
| 139 |
<!--end references row container--> |
| 140 |
<!-- ============================================================== --> |
| 141 |
<div class="row"> |
| 142 |
<!--creating Sequences Logos row container start--> |
| 143 |
<div> |
| 144 |
<a name="create"> |
| 145 |
<br> |
| 146 |
</a> |
| 147 |
<h2>Creating Sequences Logos using the Web interface</h2> |
| 148 |
<dl class="dl-horizontal"> |
| 149 |
<!--start definition list Creating Sequences Logos using the Web interface --> |
| 150 |
<dt id="create-sequence">Sequence Data</dt> |
| 151 |
<dd> |
| 152 |
Enter your multiple sequence alignment or position weight matrix file, or select a file to upload. Supported file formats include CLUSTALW, FASTA, plain flatfile, MSF, NBRF, PIR, NEXUS and PHYLIP for multiple sequence alignments, and transfac for position weight matrices. All sequences must be the same length, else WebLogo will return an error and report the first sequence that differed in length from previous sequences. |
| 153 |
</dd> |
| 154 |
<br> |
| 155 |
<dt id="create-sequence">Output format</dt> |
| 156 |
<dd>Generally speaking, vector formats (EPS and PDF) are better for print, while bitmaps (JPEG and PNG) are more suitable for displaying on the screen or embedding into a web page. |
| 157 |
</dd> |
| 158 |
<dd> |
| 159 |
<table class="table table-bordered table-condensed"> |
| 160 |
<tr> |
| 161 |
<td>PNG:</td> |
| 162 |
<td>(600 DPI) Print resolution bitmap</td> |
| 163 |
</tr> |
| 164 |
<tr> |
| 165 |
<td> PNG:</td> |
| 166 |
<td>(low res, 96 DPI) Screen resolution bitmap </td> |
| 167 |
</tr> |
| 168 |
<tr> |
| 169 |
<td>JPEG:</td> |
| 170 |
<td> Screen resolution bitmap </td> |
| 171 |
</tr> |
| 172 |
<tr> |
| 173 |
<td>EPS:</td> |
| 174 |
<td> Encapsulated postscript </td> |
| 175 |
</tr> |
| 176 |
<tr> |
| 177 |
<td>PDF:</td> |
| 178 |
<td> Portable Document Format </td> |
| 179 |
</tr> |
| 180 |
<tr> |
| 181 |
<td>SVG:</td> |
| 182 |
<td> Scalable Vector Graphics </td> |
| 183 |
</tr> |
| 184 |
</table> |
| 185 |
</dd> |
| 186 |
<br> |
| 187 |
<dt id="create-sequence">Logo size</dt> |
| 188 |
<dd>The physical dimensions of the generated logo. Specifically, Logo Size controls the size of individual symbols stacks. |
| 189 |
</dd> |
| 190 |
<dd> |
| 191 |
<table class="table table-bordered table-condensed"> |
| 192 |
<tr> |
| 193 |
<td>small:</td> |
| 194 |
<td> 5.4 points wide (same as 9pt Courier), aspect ratio 5:1 </td> |
| 195 |
</tr> |
| 196 |
<tr> |
| 197 |
<td> medium:</td> |
| 198 |
<td> Double the width and height of small.</td> |
| 199 |
</tr> |
| 200 |
<tr> |
| 201 |
<td>large:</td> |
| 202 |
<td> Triple the width and height of small. </td> |
| 203 |
</tr> |
| 204 |
</table> |
| 205 |
<dd> |
| 206 |
<small>The choices have been limited to promote inter-logo consistency. Small logos can fit 80 stacks across a printed page, or 40 across a half page column. The <a href="#CLI">command line interface</a> provides greater control, if so desired. </small> |
| 207 |
</dd> |
| 208 |
<br> |
| 209 |
<dt id="create-sequence">Stacks per line</dt> |
| 210 |
<dd> |
| 211 |
If the length of the sequences is greater than this maximum number of stacks per line, then the logo will be split across multiple lines. |
| 212 |
</dd> |
| 213 |
<br> |
| 214 |
<dt id="create-sequence">Sequence Type</dt> |
| 215 |
<dd>Selects the type of biological molecule. |
| 216 |
<table class="table table-bordered table-condensed"> |
| 217 |
<tr> |
| 218 |
<td>auto: Automatically guess sequence type from the data</td> |
| 219 |
</tr> |
| 220 |
<tr> |
| 221 |
<td>protein</td> |
| 222 |
</tr> |
| 223 |
<tr> |
| 224 |
<td>dna</td> |
| 225 |
</tr> |
| 226 |
<tr> |
| 227 |
<td>rna</td> |
| 228 |
</tr> |
| 229 |
</table> |
| 230 |
</dd> |
| 231 |
<br> |
| 232 |
<dt style='white-space: normal' id="create-sequence">Ignore Lower Case</dt> |
| 233 |
<dd>Disregard lower case letters and only count upper case letters in sequences</dd> |
| 234 |
<br> |
| 235 |
<dt id="create-sequence">Units</dt> |
| 236 |
<dd>The units used for the y-axis. </dd> |
| 237 |
<dd> |
| 238 |
<table class="table table-bordered table-condensed"> |
| 239 |
<tr> |
| 240 |
<td>probability:</td> |
| 241 |
<td>Show residue probabilities, rather than information content. If <a href="#CA">compositional adjustment</a> is disabled, then these are the raw residue frequencies.</td> |
| 242 |
</tr> |
| 243 |
<tr> |
| 244 |
<td>bits:</td> |
| 245 |
<td> Information content in bits</td> |
| 246 |
</tr> |
| 247 |
<tr> |
| 248 |
<td> nats:</td> |
| 249 |
<td> Natural units, 1 bit = ln 2 (0.69) nats</td> |
| 250 |
</tr> |
| 251 |
<tr> |
| 252 |
<td> kT:</td> |
| 253 |
<td> Thermal energy units in natural units (numerically the same as nats) </td> |
| 254 |
</tr> |
| 255 |
<tr> |
| 256 |
<td> kJ/mol:</td> |
| 257 |
<td>Thermal energy (assuming T = 300 K) </td> |
| 258 |
</tr> |
| 259 |
<tr> |
| 260 |
<td>kcal/mol:</td> |
| 261 |
<td> Thermal energy (assuming T = 300 K) </td> |
| 262 |
</tr> |
| 263 |
</table> |
| 264 |
</dd> |
| 265 |
<a name="First position number"> |
| 266 |
<br> |
| 267 |
</a> |
| 268 |
<dt style='white-space: normal' id="create-sequence">First position number</dt> |
| 269 |
<dd> |
| 270 |
The numerical label of the first position in the sequence data in the input file. The label must be an integer. Residue labels for the logo will be relative to this number. (See also: <a href="#logo range">Logo range</a>.) |
| 271 |
</dd> |
| 272 |
<a name="logo range"> |
| 273 |
<br> |
| 274 |
</a> |
| 275 |
<dt id="create-sequence">Logo range</dt> |
| 276 |
<dd> |
| 277 |
By default, all sequence data from the input file is displayed in the Sequence Logo. With this option, you can instead show a subrange of the sequence data. The numbering of Start and End Positions is relative to the First Position Number. Thus, if the First Position Number is "2", Start is "5" and End is "10", then the 4th through 9th (inclusive) sequence positions of the input file will be displayed, and they will be numbered "5", "6", "7", "8", "9" and "10". |
| 278 |
</dd> |
| 279 |
<a name="CA"> |
| 280 |
<br> |
| 281 |
</a> |
| 282 |
<dt id="create-sequence">Composition</dt> |
| 283 |
<dd> |
| 284 |
<p> |
| 285 |
The background composition of the genome or proteome from which the sequences have been drawn. The default, automatic option is to use equiprobable background for nucleic acids and a typical amino acid usage pattern for proteins. However, you may also explicitly set the expected CG content for nucleic acid sequences, insist on equiprobable background distributions, or turn off composition adjustment altogether. |
| 286 |
</p> |
| 287 |
<p> |
| 288 |
Compositional adjustment has two effects. First, the information content of a site is defined as the relative entropy of the monomers at that site to the background distribution. Consequentially, rare monomers have higher information content (when they occur) than relatively common monomers. |
| 289 |
</p> |
| 290 |
<p> |
| 291 |
Secondly, the background composition is used in the small sample correction of information content. Briefly, if only a few sequences are available in the multiple sequence alignment, then sites typically appear more conserved than they really are. Small samples bias the relative entropy upwards. To compensate, we add pseudocounts to the actual counts, proportional to the expected background composition. These pseudocounts smooth the data for small samples, but become irrelevant for large samples. The proportionality constant is set to 4 for nucleic acid sequences, and 20 for proteins (these numbers have been found to give reasonable results in practice). |
| 292 |
</p> |
| 293 |
<p> |
| 294 |
Behind the scenes, things are more complex. We do a full Bayesian calculation, starting with explicit Dirichlet priors based on the background composition, to which we add the data and then calculate both the posterior mean relative entropy (the stack height) and Bayesian 95% confidence intervals for error bars. These interesting details will be explained elsewhere. |
| 295 |
</p> |
| 296 |
</dd> |
| 297 |
<br> |
| 298 |
<dt id="create-sequence">Scale stack width</dt> |
| 299 |
<dd> |
| 300 |
Scale the visible stack width by the fraction of symbols in the column.(I.e. columns with many gaps or unknown residues are narrow.) |
| 301 |
</dd> |
| 302 |
<br> |
| 303 |
<dt id="create-sequence">Error bars</dt> |
| 304 |
<dd>Display error bars. These indicate an approximate Bayesian 95% confidence interval. |
| 305 |
</dd> |
| 306 |
<br> |
| 307 |
<dt id="create-sequence">Title</dt> |
| 308 |
<dd>Give your logo a title.</dd> |
| 309 |
<br> |
| 310 |
<dt id="create-sequence">Figure label</dt> |
| 311 |
<dd>An optional figure label, added to the top left (e.g. '(a)').</dd> |
| 312 |
<br> |
| 313 |
<dt id="create-sequence">X-axis</dt> |
| 314 |
<dd>Add a label to the x-axis, or hide axis altogether.</dd> |
| 315 |
<br> |
| 316 |
<dt id="create-sequence">Y-axis</dt> |
| 317 |
<dd> |
| 318 |
The vertical axis indicates the information content of a sequence position. Use this option to toggle the y-axis and override the default axis label. |
| 319 |
</dd> |
| 320 |
<br> |
| 321 |
<dt id="create-sequence">Y-axis scale</dt> |
| 322 |
<dd> |
| 323 |
The height of the y-axis in designated units. The automatic option will pick reasonable defaults based on the sequence type and axis unit. |
| 324 |
</dd> |
| 325 |
<br> |
| 326 |
<dt id="create-sequence">Y-axis tic spacing</dt> |
| 327 |
<dd>The distance between major tic marks on the y-axis.</dd> |
| 328 |
<br> |
| 329 |
<dt style='white-space: normal' id="create-sequence">Sequence end labels</dt> |
| 330 |
<dd> |
| 331 |
Choose this option to label the 5' & 3' ends of nucleic acid or the N & C termini of amino acid sequences. |
| 332 |
</dd> |
| 333 |
<br> |
| 334 |
<dt id="create-sequence">Version fineprint</dt> |
| 335 |
<dd> |
| 336 |
Toggle display of the WebLogo version information in the lower right corner. Optional, but we appreciate the acknowledgment. |
| 337 |
</dd> |
| 338 |
<br> |
| 339 |
</dl> |
| 340 |
<!--end definition Creating Sequences Logos using the Web interface --> |
| 341 |
<dt id="create-sequence">Color Scheme</dt> |
| 342 |
<dl class="dl-horizontal"> |
| 343 |
<!--start definition list for Color Scheme section--> |
| 344 |
<dt id="color-scheme"> Auto: </dt> |
| 345 |
<dd> Use Base Pairing for nucleic acids (NA), Hydrophobicity for amino acids (AA). </dd> |
| 346 |
<br> |
| 347 |
<dt id="color-scheme"> Monochrome: </dt> |
| 348 |
<dd>All symbols black </dd> |
| 349 |
<br> |
| 350 |
<dt style='white-space: normal'>Base Pairing |
| 351 |
<br> (NA default):</dt> |
| 352 |
<dd> |
| 353 |
<table class="table table-bordered table-condensed"> |
| 354 |
<tr> |
| 355 |
<td>2 Watson-Crick hydrogen bonds</td> |
| 356 |
<td>TAU</td> |
| 357 |
<td style="color:darkorange">dark orange</td> |
| 358 |
</tr> |
| 359 |
<tr> |
| 360 |
<td>3 Watson-Crick hydrogen bonds</td> |
| 361 |
<td>GC</td> |
| 362 |
<td style="color:blue"> blue</td> |
| 363 |
</tr> |
| 364 |
</table> |
| 365 |
</dd> |
| 366 |
<p></p> |
| 367 |
<dt> Classic (NA): </dt> |
| 368 |
<dd> |
| 369 |
<table class="table table-bordered table-condensed"> |
| 370 |
<tr> |
| 371 |
<td>G</td> |
| 372 |
<td style="color:orange"> orange</td> |
| 373 |
</tr> |
| 374 |
<tr> |
| 375 |
<td>TU</td> |
| 376 |
<td style="color:red"> red</td> |
| 377 |
</tr> |
| 378 |
<tr> |
| 379 |
<td>C</td> |
| 380 |
<td style="color:blue">blue</td> |
| 381 |
</tr> |
| 382 |
<tr> |
| 383 |
<td>A</td> |
| 384 |
<td style="color:green">green</td> |
| 385 |
</tr> |
| 386 |
</table> |
| 387 |
<small>WebLogo (version 1 and 2) and makelogo default color scheme for nucleic acids: G, orange; T & U, red; C, blue; and A, green.</small> |
| 388 |
</dd> |
| 389 |
<br> |
| 390 |
<dt style='white-space: normal'> Hydrophobicity |
| 391 |
<br> (AA default): </dt> |
| 392 |
<dd> |
| 393 |
<table class="table table-bordered table-condensed"> |
| 394 |
<tr> |
| 395 |
<td>Hydrophilic</td> |
| 396 |
<td>RKDENQ</td> |
| 397 |
<td style="color:blue">blue</td> |
| 398 |
</tr> |
| 399 |
<tr> |
| 400 |
<td>Neutral</td> |
| 401 |
<td>SGHTAP</td> |
| 402 |
<td style="color:green"> green</td> |
| 403 |
</tr> |
| 404 |
<tr> |
| 405 |
<td>Hydrophobic</td> |
| 406 |
<td>YVMCLFIW</td> |
| 407 |
<td style="color:black"> black</td> |
| 408 |
</tr> |
| 409 |
</table> |
| 410 |
</dd> |
| 411 |
<p></p> |
| 412 |
<dt id="color-scheme"> Chemistry (AA): </dt> |
| 413 |
<dd> Color amino acids according to chemical properties. </dd> |
| 414 |
<dd> |
| 415 |
<table class="table table-bordered table-condensed"> |
| 416 |
<tr> |
| 417 |
<td>Polar</td> |
| 418 |
<td>G,S,T,Y,C</td> |
| 419 |
<td style="color:green"> green</td> |
| 420 |
</tr> |
| 421 |
<tr> |
| 422 |
<td>Neutral</td> |
| 423 |
<td>Q,N</td> |
| 424 |
<td style="color:purple"> purple</td> |
| 425 |
</tr> |
| 426 |
<tr> |
| 427 |
<td>Basic</td> |
| 428 |
<td>K,R,H</td> |
| 429 |
<td style="color:blue"> blue</td> |
| 430 |
</tr> |
| 431 |
<tr> |
| 432 |
<td>Acidic</td> |
| 433 |
<td>D,E</td> |
| 434 |
<td style="color:red">red</td> |
| 435 |
</tr> |
| 436 |
<tr> |
| 437 |
<td>Hydrophobic</td> |
| 438 |
<td>A,V,L,I,P,W,F,M</td> |
| 439 |
<td style="color:black">black</td> |
| 440 |
</tr> |
| 441 |
</table> |
| 442 |
<small> WebLogo (version 1 and 2) and makelogo default color. (Note that the WebLogo 2 documentation erroneously lists Q and N under green.) </small> |
| 443 |
</dd> |
| 444 |
<br> |
| 445 |
<dt id="color-scheme"> Charge (AA) : </dt> |
| 446 |
<dd> |
| 447 |
<table class="table table-bordered table-condensed"> |
| 448 |
<tr> |
| 449 |
<td>Positive</td> |
| 450 |
<td>KRH</td> |
| 451 |
<td style="color:blue"> blue</td> |
| 452 |
</tr> |
| 453 |
<tr> |
| 454 |
<td>Negative</td> |
| 455 |
<td>DE</td> |
| 456 |
<td style="color:red"> red</td> |
| 457 |
</tr> |
| 458 |
</table> |
| 459 |
</dd> |
| 460 |
<p></p> |
| 461 |
<dt id="color-scheme"> Custom: </dt> |
| 462 |
<dd> |
| 463 |
A custom color scheme can be specified in the input field below. Specify colors on the left and associated symbols on the right. Colors are entered using <a href="http://www.w3.org/TR/REC-CSS2/syndata.html#color-units">CSS2 (Cascading Style Sheet)</a> syntax. (E.g. 'red', '#F00', '#FF0000', 'rgb(255, 0, 0)', 'rgb(100%, 0%, 0%)' or 'hsl(0, 100%, 50%)' for the color red.) |
| 464 |
</dd> |
| 465 |
<p> |
| 466 |
<br> |
| 467 |
</p> |
| 468 |
</dl> |
| 469 |
<!--End definition list for Color Scheme section--> |
| 470 |
<dl class="dl-horizontal"> |
| 471 |
<dt id="create-sequence">More Options</dt> |
| 472 |
<dd> |
| 473 |
The weblogo <a href="#CLI">command line client</a>, <code class="code">weblogo</code>, provides many more options and greater control over the final logo appearance. |
| 474 |
</dd> |
| 475 |
</dl> |
| 476 |
</div> |
| 477 |
</div> |
| 478 |
<!--Creating Sequences Logos row container end--> |
| 479 |
<!-- ========================================================= --> |
| 480 |
<div class="row"> |
| 481 |
<!--installing weblogo row container start--> |
| 482 |
<a name="download"> |
| 483 |
<br> |
| 484 |
</a> |
| 485 |
<h2>Installing WebLogo</h2> |
| 486 |
<dl> |
| 487 |
<!-- start dinfinition list for Installing WebLogo--> |
| 488 |
<dt> |
| 489 |
<h4>Dependencies</h4></dt> |
| 490 |
<dd> |
| 491 |
WebLogo version 3 is written in python. WebLogo also requires a recent version of <a href="http://www.cs.wisc.edu/~ghost/">ghostscript</a> to create PNG and PDF output, and <a href="http://www.cityinthesky.co.uk/opensource/pdf2svg">pdf2svg</a> to generate SVG output. In addition the ArialMT font must be <a href="https://unix.stackexchange.com/questions/217365/how-to-install-microsoft-true-type-fonts-for-centos-7">installed</a>. |
| 492 |
</dd> |
| 493 |
<dt> |
| 494 |
<h4> Download and Installation</h4></dt> |
| 495 |
<dd> |
| 496 |
WebLogo and its dependencies can be downloaded and installed with pip, |
| 497 |
<pre> |
| 498 |
pip install weblogo |
| 499 |
</pre> |
| 500 |
or conda. |
| 501 |
<pre> |
| 502 |
conda install -c conda-forge weblogo |
| 503 |
</pre> |
| 504 |
Alternatively, weblogo and its dependencies can be installed manually. The WebLogo source code can be downloaded from |
| 505 |
<a href="https://github.com/WebLogo/weblogo/issues">Weblogo's Github repository</a>. This code is distributed under various <a href="http://www.opensource.org/docs/definition">open source licenses</a>. Please consult the <code class="code">LICENSE.txt</code> file in the source distribution for details. |
| 506 |
<p> |
| 507 |
After unpacking the WebLogo tarfile, it should be possible to immediately create logos using the command line client (provided that python, numpy and ghostscript have already been installed). |
| 508 |
</p> |
| 509 |
<pre> |
| 510 |
./weblogo --format PNG < cap.fa > cap.png |
| 511 |
</pre> |
| 512 |
<p> |
| 513 |
Please consult the file <code class="code">build_examples.sh</code> for more examples. </p> |
| 514 |
<p> |
| 515 |
To run WebLogo as a stand alone web service, run the logo server command : |
| 516 |
</p> |
| 517 |
<pre> |
| 518 |
./weblogo --serve |
| 519 |
</pre> |
| 520 |
<p> |
| 521 |
It should now be possible to access WebLogo at <a href="http://localhost:8080/">http://localhost:8080/</a>. |
| 522 |
</p> |
| 523 |
|
| 524 |
</dd> |
| 525 |
<dt> |
| 526 |
<h4>Web App</h4></dt> |
| 527 |
<dd> |
| 528 |
To use WebLogo as a web application, first install the weblogo dependencies and libraries as above, then place (or link) the |
| 529 |
<code class="code">weblogo/htdocs</code> directory somewhere within the document root of your webserver. The webserver must be able to execute the CGI script <code class="code">create.cgi</code>. For Apache, you may have to add an <code class="code">ExecCGI</code> option and add a cgi handler in the <code class="code">httpd.conf</code> configuration file. Something like this: |
| 530 |
<pre> |
| 531 |
DocumentRoot "/home/ec2-user/weblogo/weblogo/htdocs" |
| 532 |
|
| 533 |
# Further relax access to the default document root: |
| 534 |
<Directory "/home/ec2-user/weblogo/weblogo/htdocs"> |
| 535 |
Options Indexes FollowSymLinks ExecCGI MultiViews |
| 536 |
AddHandler cgi-script .cgi |
| 537 |
AllowOverride All |
| 538 |
Require all granted |
| 539 |
</Directory> |
| 540 |
|
| 541 |
</pre> It may also be necessary to set the <code class="code">PATH</code> and <code class="code">PYTHONPATH</code> environment variables. |
| 542 |
<pre> |
| 543 |
SetEnv PYTHONPATH /path/to/weblogo/libraries |
| 544 |
</pre> The cgi script also has to be able to find the '<code class="code">gs</code>' ghostscript executable. |
| 545 |
</pre> The maximum bytes of uploaded sequence data can be controlled with the <code class="code">WEBLOGO_MAX_FILE_SIZE</code> environment variable. |
| 546 |
<pre> |
| 547 |
SetEnv WEBLOGO_MAX_FILE_SIZE 1000000 |
| 548 |
</pre> |
| 549 |
</dd> |
| 550 |
</dl> |
| 551 |
<!--end definition list for Installing Weblogo--> |
| 552 |
</div> |
| 553 |
<!--installing Weblogo row container close--> |
| 554 |
<!-- ================================================================== --> |
| 555 |
<div class="row"> |
| 556 |
<!--WebLogo Command Line Interface row container start--> |
| 557 |
<a name="CLI"> |
| 558 |
<br> |
| 559 |
</a> |
| 560 |
<dl> |
| 561 |
<!--start definition list for Weblogo CLI--> |
| 562 |
<dt> |
| 563 |
<h2><code class="code">weblogo</code>, The WebLogo Command Line Interface (CLI)</h2></dt> |
| 564 |
<dd> |
| 565 |
The command line client has many options not available through the web interface. Please consult the bundled <code class="code">build_examples.sh</code> script for inspiration. |
| 566 |
<pre> |
| 567 |
Usage: weblogo [options] < sequence_data.fa > sequence_logo.eps |
| 568 |
|
| 569 |
Create sequence logos from biological sequence alignments. |
| 570 |
|
| 571 |
Options: |
| 572 |
--version show program's version number and exit |
| 573 |
-h --help show this help message and exit |
| 574 |
|
| 575 |
Input/Output Options: |
| 576 |
-f --fin FILENAME Sequence input file (default: stdin) |
| 577 |
--upload URL Upload input file from URL |
| 578 |
-D --datatype FORMAT Type of multiple sequence alignment or |
| 579 |
position weight matrix file: (clustal, fasta, |
| 580 |
msf, genbank, nbrf, nexus, phylip, stockholm, |
| 581 |
intelligenetics, table, array, transfac) |
| 582 |
-o --fout FILENAME Output file (default: stdout) |
| 583 |
-F --format FORMAT Format of output: eps (default), png, |
| 584 |
png_print, pdf, jpeg, svg, logodata |
| 585 |
|
| 586 |
Logo Data Options: |
| 587 |
-A --sequence-type TYPE The type of sequence data: 'protein', 'rna' or |
| 588 |
'dna'. |
| 589 |
-a --alphabet ALPHABET The set of symbols to count, e.g. 'AGTC'. All |
| 590 |
characters not in the alphabet are ignored. If |
| 591 |
neither the alphabet nor sequence-type are |
| 592 |
specified then weblogo will examine the input |
| 593 |
data and make an educated guess. See also |
| 594 |
--sequence-type, --ignore-lower-case |
| 595 |
-U --units UNIT A unit of entropy ('bits' (default), 'nats', |
| 596 |
'digits'), or a unit of free energy ('kT', |
| 597 |
'kJ/mol', 'kcal/mol'), or 'probability' for |
| 598 |
probabilities |
| 599 |
--composition COMP. The expected composition of the sequences: |
| 600 |
'auto' (default), 'equiprobable', 'none' (do |
| 601 |
not perform any compositional adjustment), a |
| 602 |
CG percentage, a species name (e.g. 'E. coli', |
| 603 |
'H. sapiens'), or an explicit distribution |
| 604 |
(e.g. "{'A':10, 'C':40, 'G':40, 'T':10}"). The |
| 605 |
automatic option uses a typical distribution |
| 606 |
for proteins and equiprobable distribution for |
| 607 |
everything else. |
| 608 |
--weight NUMBER The weight of prior data. Default depends on |
| 609 |
alphabet length |
| 610 |
-i --first-index INDEX Index of first position in sequence data |
| 611 |
(default: 1) |
| 612 |
-l --lower INDEX Lower bound of sequence to display |
| 613 |
-u --upper INDEX Upper bound of sequence to display |
| 614 |
|
| 615 |
Transformations: |
| 616 |
Optional transformations of the sequence data. |
| 617 |
|
| 618 |
--ignore-lower-case Disregard lower case letters and only count |
| 619 |
upper case letters in sequences. |
| 620 |
--reverse reverse sequences |
| 621 |
--complement complement nucleic sequences |
| 622 |
--revcomp reverse complement nucleic sequences |
| 623 |
|
| 624 |
Logo Format Options: |
| 625 |
These options control the format and display of the logo. |
| 626 |
|
| 627 |
-s --size LOGOSIZE Specify a standard logo size (small, medium |
| 628 |
(default), large) |
| 629 |
-n --stacks-per-line COUNT Maximum number of logo stacks per logo line. |
| 630 |
(default: 40) |
| 631 |
-t --title TEXT Logo title text. |
| 632 |
--label TEXT A figure label, e.g. '2a' |
| 633 |
-X --show-xaxis YES/NO Display sequence numbers along x-axis? |
| 634 |
(default: True) |
| 635 |
-x --xlabel TEXT X-axis label |
| 636 |
--annotate TEXT A comma separated list of custom stack |
| 637 |
annotations, e.g. '1,3,4,5,6,7'. Annotation |
| 638 |
list must be same length as sequences. |
| 639 |
--rotate-numbers YES/NO Draw X-axis numbers with vertical orientation |
| 640 |
(default: False). |
| 641 |
--number-interval NUMBER |
| 642 |
Distance between numbers on X-axis (default: |
| 643 |
5) |
| 644 |
-S --yaxis NUMBER Height of yaxis in units. (Default: Maximum |
| 645 |
value with uninformative prior.) |
| 646 |
-Y --show-yaxis YES/NO Display entropy scale along y-axis? (default: |
| 647 |
True) |
| 648 |
-y --ylabel TEXT Y-axis label (default depends on plot type and |
| 649 |
units) |
| 650 |
-E --show-ends YES/NO Label the ends of the sequence? (default: |
| 651 |
False) |
| 652 |
-P --fineprint TEXT The fine print (default: weblogo version) |
| 653 |
--ticmarks NUMBER Distance between ticmarks (default: 1.0) |
| 654 |
--errorbars YES/NO Display error bars? (default: True) |
| 655 |
--reverse-stacks YES/NO Draw stacks with largest letters on top? |
| 656 |
(default: True) |
| 657 |
|
| 658 |
Color Options: |
| 659 |
Colors can be specified using CSS2 syntax. e.g. 'red', '#FF0000', etc. |
| 660 |
|
| 661 |
-c --color-scheme SCHEME Specify a standard color scheme (auto, base |
| 662 |
pairing, charge, chemistry, classic, |
| 663 |
hydrophobicity, monochrome) |
| 664 |
-C --color COLOR SYMBOLS DESCRIPTION |
| 665 |
Specify symbol colors, e.g. --color black AG |
| 666 |
'Purine' --color red TC 'Pyrimidine' |
| 667 |
--default-color COLOR Symbol color if not otherwise specified. |
| 668 |
|
| 669 |
Font Format Options: |
| 670 |
These options provide control over the font sizes and types. |
| 671 |
|
| 672 |
--fontsize POINTS Regular text font size in points (default: 10) |
| 673 |
--title-fontsize POINTS Title text font size in points (default: 12) |
| 674 |
--small-fontsize POINTS Small text font size in points (default: 6) |
| 675 |
--number-fontsize POINTS |
| 676 |
Axis numbers font size in points (default: 8) |
| 677 |
--text-font FONT Specify font for labels (default: ArialMT) |
| 678 |
--logo-font FONT Specify font for logo (default: Arial-BoldMT) |
| 679 |
--title-font FONT Specify font for title (default: ArialMT) |
| 680 |
|
| 681 |
Advanced Format Options: |
| 682 |
These options provide fine control over the display of the logo. |
| 683 |
|
| 684 |
-W --stack-width POINTS Width of a logo stack (default: 10.8) |
| 685 |
--aspect-ratio POINTS Ratio of stack height to width (default: 5) |
| 686 |
--box YES/NO Draw boxes around symbols? (default: no) |
| 687 |
--resolution DPI Bitmap resolution in dots per inch (DPI). |
| 688 |
(Default: 96 DPI, except png_print, 600 DPI) |
| 689 |
Low resolution bitmaps (DPI<300) are |
| 690 |
antialiased. |
| 691 |
--scale-width YES/NO Scale the visible stack width by the fraction |
| 692 |
of symbols in the column? (I.e. columns with |
| 693 |
many gaps of unknowns are narrow.) (Default: |
| 694 |
yes) |
| 695 |
--debug YES/NO Output additional diagnostic information. |
| 696 |
(Default: False) |
| 697 |
--errorbar-fraction NUMBER |
| 698 |
Sets error bars display proportion (default: |
| 699 |
0.9) |
| 700 |
--errorbar-width-fraction NUMBER |
| 701 |
Sets error bars width display proportion |
| 702 |
(default: 0.25) |
| 703 |
--errorbar-gray NUMBER Sets error bars' gray scale percentage |
| 704 |
(default: 0.75) |
| 705 |
|
| 706 |
WebLogo Server: |
| 707 |
Run a standalone webserver on a local port. |
| 708 |
|
| 709 |
--serve Start a standalone WebLogo server for creating |
| 710 |
sequence logos. |
| 711 |
--port PORT Listen to this local port. (Default: 8080) |
| 712 |
</pre> |
| 713 |
</dd> |
| 714 |
</dl> |
| 715 |
<!--end definition list for Weblogo CLI--> |
| 716 |
</div> |
| 717 |
<!--WebLogo Command Line Interface row container end--> |
| 718 |
<!-- ===================================================================== --> |
| 719 |
<div class="row"> |
| 720 |
<!--Weblogo API row container start --> |
| 721 |
<a name="API" ><br></a> |
| 722 |
<h2>WebLogo Application Programmer Interface (API)</h2> |
| 723 |
|
| 724 |
The WebLogo python libraries provide even greater flexibility than the command line client. |
| 725 |
Please consult the code documentation at <a href="https://weblogo.readthedocs.io/en/latest/">readthedocs</a>. |
| 726 |
</div><!--Weblogo API row container end--> |
| 727 |
<!-- ================================================================== --> |
| 728 |
<div class="row"> |
| 729 |
<!--start WebLogo Development row Container--> |
| 730 |
<a name="dev"> |
| 731 |
<br> |
| 732 |
</a> |
| 733 |
<h2>WebLogo Development and Future Features</h2> |
| 734 |
<p> |
| 735 |
The development project is hosted at |
| 736 |
<a href="https://github.com/WebLogo/weblogo">https://github.com/WebLogo/weblogo</a>. If you wish to extend WebLogo or to contribute code, then you should download the full source code development package directly from the Github repository. |
| 737 |
</p> |
| 738 |
<pre> |
| 739 |
> git clone https://github.com/WebLogo/weblogo |
| 740 |
> pip install -e . |
| 741 |
|
| 742 |
|
| 743 |
> cd weblogo |
| 744 |
</pre> |
| 745 |
<p> |
| 746 |
Please consult the developer notes, <code class="code">DEVELOPERS.txt</code> and software license <code class="code">LICENSE.txt</code> |
| 747 |
</p> |
| 748 |
<p> |
| 749 |
Outstanding bugs and feature requests are listed on the <a href="https://github.com/WebLogo/weblogo/issues">WebLogo issue tracker.</a> |
| 750 |
</p> |
| 751 |
</div> |
| 752 |
<!--end WebLogo Development row Container--> |
| 753 |
<!-- ================================================================== --> |
| 754 |
<div class="row"> |
| 755 |
<!--Miscellanea row Container start--> |
| 756 |
<a name="misc"> |
| 757 |
<br> |
| 758 |
</a> |
| 759 |
<h2>Miscellanea</h2> |
| 760 |
<dl> |
| 761 |
<!--start defined list Miscellanea--> |
| 762 |
<dt> |
| 763 |
<h4>WebLogo 2</h4></dt> |
| 764 |
<dd> The legacy WebLogo 2 sever can be found <a href="http://weblogo.berkeley.edu/">here.</a> |
| 765 |
</dd> |
| 766 |
<dt> |
| 767 |
<h4>Acknowledgments</h4></dt> |
| 768 |
<dd> |
| 769 |
<p> |
| 770 |
WebLogo was created by |
| 771 |
<a href="http://threeplusone.com/">Gavin E. Crooks</a>, |
| 772 |
<a href="http://compbio.berkeley.edu/">Liana Lareau</a>, |
| 773 |
<a href="http://compbio.berkeley.edu/">Gary Hon</a>, |
| 774 |
<a href="http://compbio.berkeley.edu/">John-Marc Chandonia</a> and |
| 775 |
<a href="http://compbio.berkeley.edu/people/brenner/">Steven E. Brenner</a>. |
| 776 |
<a href="weblogo_changelog.txt">Many others</a> have provided suggestions, bug fixes and moral support. |
| 777 |
</p> |
| 778 |
</dd> |
| 779 |
<dd> |
| 780 |
<p> |
| 781 |
WebLogo was originally based upon the programs |
| 782 |
<a href="https://alum.mit.edu/www/toms/delila/alpro.html">alpro</a> and |
| 783 |
<a href="https://alum.mit.edu/www/toms/delila/makelogo.html">makelogo</a>, both of which are part of Tom Schneider's |
| 784 |
<a href="https://alum.mit.edu/www/toms/delila.html">delila</a> package. Many thanks are due to him for making this software freely available and for encouraging its use. |
| 785 |
</p> |
| 786 |
</dd> |
| 787 |
<dt> |
| 788 |
<h4>Disclaimer</h4></dt> |
| 789 |
<dd> |
| 790 |
<p> |
| 791 |
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. |
| 792 |
</p> |
| 793 |
</dd> |
| 794 |
<dt> |
| 795 |
<h4>Feedback</h4></dt> |
| 796 |
<dd> |
| 797 |
<p> |
| 798 |
Suggestions on how to improve WebLogo are heartily welcomed! Please direct questions to <a href="https://github.com/WebLogo/weblogo/issues"> WebLogo's issue tracker</a>. |
| 799 |
</p> |
| 800 |
</dd> |
| 801 |
</dl> |
| 802 |
<!--end defined list Miscellanea--> |
| 803 |
</div> |
| 804 |
<!--Miscellanea Container row end--> |
| 805 |
<!-- ================================================================== --> |
| 806 |
<div class="row" id="spacing-row"> |
| 807 |
<hr> |
| 808 |
</div> |
| 809 |
<!--offset for bottom margin--> |
| 810 |
</div> |
| 811 |
<!--end central text col-sm-10--> |
| 812 |
<div class="col-sm-1"></div> |
| 813 |
<!--spacing right margin column--> |
| 814 |
</div> |
| 815 |
<!--Manual.html text Row Container End --> |
| 816 |
</div> |
| 817 |
<!--end outer container fluid--> |
| 818 |
</div> |
| 819 |
<!--OutermostContainer end--> |
| 820 |
<!--fallback to server-hosted files in case CDNs fail--> |
| 821 |
|
| 822 |
<!--google analytics--> |
| 823 |
<script type="text/javascript"> |
| 824 |
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www."); |
| 825 |
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E")); |
| 826 |
</script> |
| 827 |
<script type="text/javascript"> |
| 828 |
var pageTracker = _gat._getTracker("UA-5951066-1"); |
| 829 |
pageTracker._trackPageview(); |
| 830 |
</script> |
| 831 |
</body> |
| 832 |
|
| 833 |
</html> |