BOXSHADE(1)
π BOXSHADE π
okay bestie, welcome to the boxshade manual page, straight outta the Boxshade Manual. This is the whole thing, no skips, no "eh you don't need that part". We're doing this properly. β¨
π NAME π
boxshade β pretty-printing of multiple sequence alignments. that's it. that's the whole job. it makes your alignments look cute. π¦
β¨ SYNOPSIS β¨
boxshade
literally just run it, bestie. the rest is vibes and questions. π
π DESCRIPTION π
So. BOXSHADE is a program for pretty-printing multiple alignment output. And here's the thing β the program itself does NOT do any alignment. It does not align. It will not align. That's not its job. You have to use a multiple alignment program like ClustalW or Pileup first, and then feed that output into BOXSHADE as input. it's giving "I'm the glow-up artist, not the surgeon". π
-helpβ show the help. that's it, that's the whole thing. π«Ά-checkβ show the help and extend the command line. fancy.-defβ use the defaults, no unnecessary questions. silence. peace. no interrogations. π-numdefβ use default numbering.-dnaβ assume DNA sequences, so usebox_dna.par.-splitβ create separate files for multiple pages. one page per file, no sharing.-toseq=xxxβ shading according to sequence No. xxx. yes, shading by sequence number. iconic.-in=xxxxxβ xxxxx is the input file name.-out=xxxxxβ xxxxx is the output file name.-par=xxxxxβ xxxxx is the parameter file name.-sim=xxxxxβ xxxxx is the file name for similar residues def.-grp=xxxxxβ xxxxx is the file name for grouping residues def.-thr=xβ x is the fraction of sequences that must agree for a consensus.-dev=xβ x is the output device class (see below π).-type=xβ x is the input file format (see below π).-rulerβ print the ruler line. π-consβ create a consensus line.-symbcons=xyzβ xyz are the consensus symbols.-symbcons="xyz"β if the one above does not work, try this one. (quoting is a whole thing, we've all been there π« )-unixβ output files' lines are terminated withLFonly.-macβ output files' lines are terminated withCRonly.-dosβ output files' lines are terminated withCRLF.
This manual page was written for the Debian(TM) distribution because the original program does not have a manual page. The presented information comes from the documentation of the Web Service of the 3.21 version that is not available as a Debian package. so, yeah, we're working with what we've got. π
BOXSHADE is a program for creating good looking printouts from multiple-aligned protein or DNA sequences. Again, for the people in the back: the program does no alignment by itself. It has to take as input a file preprocessed by a multiple alignment program or a multiple file editor. See below for a list of supported input formats and output devices. In the standard BOXSHADE output, identical and similar residues in the multiple-alignment chart are represented by different colors or shadings. There are some more options concerning the kind of shading to be applied, sequence numbering, consensus output and so on. The user interface is a bit clumsy at the moment β one has to answer a lot of questions in order to get the desired output. There is, however, the possibility to use default parameters from a standard parameter file, or to supply the program with parameters from the command line. At the moment, the VMS and DOS versions of BOXSHADE have identical user interfaces. no cap. π«
πΈ Input formats πΈ
BOXSHADE 3.2 knows about the following input file formats (some of them are generally used only for MSDOS or VMS systems):
- CLUSTAL and CLUSTALV, multiple alignment program, DOS/VMS/MAC default extension
.ALN - ESEE, multiple sequence editor, DOS default extension
.ESE - PHYLIP, phylogenetic analysis package, DOS, VMS, UNIX default extension
.PHY - PILEUP and PRETTY of the GCG sequence analysis package, VMS/UNIX default extensions
.MSFand.PRE
NB!! you are strongly encouraged NOT to use the PRETTY format as input, it may be incompatible with the revised version of.MSFinput. We can't actually think why anyone would use this format now,.MSFfiles are more useful generally. (so dramatic but like... correct π)
- MALIGNED, multiple sequence editor, VMS only, default extension
.MAL
BOXSHADE tries to determine the file type from the extension but will work also if different extensions are used. she's flexible like that. π
π Output devices π
- POSTSCRIPT/EPS creates POSTSCRIPT(TM) files for printing on a Laserprinter or for further conversion with a POSTSCRIPT interpreter (like GHOSTSCRIPT)
- HPGL for export to various graphics programs or for conversion/printing with the shareware program PRINTGL. Plotting BOXSHADE output on a plotter is generally not recommended π
- RTF for export to various word-processing and graphics programs
- CRT, uses direct screen writes to the PC-monitor. Possible options depend on the graphics adapter used. This output device is supported only in the MSDOS version.
- ANSI. On a PC, this option uses an ANSI device driver (
ANSI.SYS) that has to be loaded inCONFIG.SYSpreviously. Possible character renditions are reverse, bold, underlined, blinking etc. On non-DOS systems, this option behaves more or less like the VT100 output mode. - VT100 for display on a VT100 compatible terminal or emulator.
- ReGISterm for display on a ReGIS compatible graphics terminal or emulator.
- ReGISfile for later conversion by the program RETOS (copyright DEC) in order to print on DIGITALs printer series.
- LJ250 for printing on DIGITALS LJ250 color printer.
- ASCII output showing either the conserved residues or the varying ones (others as
'-'). - FIG file for xfig
2.1. - PICT files for import to Mac and PC graphics progs.
Some of the formats above offer the possibility of scaling the characters and of rotating the plot. Character size has to be entered in 'point' units. Normal output orientation is in portrait mode (PS/EPS/HPGL/PICT only), to obtain output in landscape orientation, 'rotate plot = y' has to be chosen. When creating multi-page output, all pages are contained in a single output file. If one page per file is desired, one has to use the command line parameter /SPLIT. This is enforced when requesting EPSF or PICT file output, as multi-page EPSFs are a contradiction of the purpose of an EPSF and large PICT files would probably be too big for most personal computers. While using the terminal as output device, the 'RETURN' key has to be pressed to obtain the next page of output. (yes, physically. with your finger. π)
π¦ Sequence numbering π¦
Starting with version 2.2 there is the possibility to add numbering to the output files. The numbers are printed between the sequence names and the sequence itself. Since most of the input-files either use no numbering or number the first position in the alignment always with a "1" (and that does not necessarily reflect the numbers within the original sequence), the user is asked to enter the starting position for each sequence. The command line flag /DEFNUM suppressed that question, a starting position of 1 is assumed for all sequences. Boxshade starts with the value entered for the leftmost position and continues numbering every valid symbol, skipping blanks, '-', '.' and stuff like that. she counts the real ones only, periodt. π
β¨ Default parameters β¨
Several people using previous releases of BOXSHADE pointed me to the need of having default parameters for the various questions asked by the program. They argued that most sites only use one type of input files, one output device and one choice of colors for the output. I therefore added a management of default parameters allowing two levels of assistance to the user.
- all default parameters are contained in an ASCII file that can be modified easily to accommodate the user's taste. The format is roughly documented within the file-header, it resembles the keyboard input one has to make if using the program interactively. There are two such files supplied with this release of BOXSHADE,
BOX_DNA.PARandBOX_PEP.PAR, holding some example parameters for peptide and dna-comparisons. There are no big differences between these two, the major one is that when shading DNA-comparisons one doesn't care of "similar" residues. - to run the program with minimal user interaction, I have added the possibility to use command line parameters. At the moment, you can use:
/check: list all allowed command line parameters (this list) and allows parameters to be added./def: program runs without questions,BOX_PEP.PARis used as default/dna: makes the program useBOX_DNA.PARas parameter file/pep: makes the program useBOX_PEP.PARas parameter file/in=xxx: makes the program take xxx as input file/out=yyy: makes the program take yyy as output file (note1)/par=zzz: makes the program use zzz as a default parameter file/type=1: makes the program assume an input file of type1(PRETTY/MSF)/dev=1: makes the program assume an output device of type1(CRT)/numdef: use default numbering (all sequences starting with"1")/thr: threshold fraction of residues that must agree for a consensus/split: forces one page per file output, creates multiple output files./cons: makes the program create an additional consensus line (see below)/symbcons=: influences the way the consensus line is displayed. (see below)/unix: writes output files in unix style (LF only) (note2)/dos: writes output files in DOS style (CR/LF) (note2)
note1: on unix machines, useout=OUTPUTfor terminal output; on DOS machines, useout=con:; on VMS machines, useout=tt:
note2: if no mode is specified, the native style of the machine is used.
β οΈ ATTENTION β οΈ
on unix systems, the dash (-) instead of the slash (/) has to be used as separation character for command line parameters. For example, a valid unix command line is:
boxshade -def -numdef -cons -symbcons=" .*"
iykyk. the slashes stay home on unix. π«Ά
β¨ Shading strategies (similarity to consensus or single sequence) β¨
okay so since version 3, BOXSHADE has a whole new shading system, and bestie, there are two big glow-ups to talk about π
Glow-up numero uno: there's now a threshold fraction of residues that have to agree before anything counts as a consensus. Back in the day the program just assumed SOME residue was always the consensus β if no two residues matched, the first sequence in the alignment got to be the consensus residue. Iconic? Maybe. Fair? Not really. This threshold fraction can be any number between 0.0 and 1.0. And the number of sequences that must agree for a consensus to exist is, as you'd expect, this fraction times the total number of sequences in the alignment (and heads up, fractions of a sequence count as one β like 3.2 becomes 4, no partial sequences here bestie).
Glow-up numero dos: 'consensus by similarity' π This one's trying to handle those situations where every sequence has, say, R or K at some position but neither one is in the majority. It would be straight up illogical to shade one type of residue as 'identical' and the other as 'similar', and the threshold function might yeet both out of existence for being in too-small numbers. So: if there's not a single residue that's conserved (greater than the threshold) at a position, the program goes looking for a 'group' of amino acids that fulfills the requirements. 'Groups' are defined in the .grp files, and users can tailor these to their personal prejudices (we all have them π
). Any amino acid not listed is assumed not to be in a group. All members of a group are considered mutually similar β and this is different from the .sim files described below, don't mix them up.
If consensus by similarity is found, all the residues in the consensus get shaded using the 'similar' shading defined by the user. If the user does not select 'shading by similarity', only identity-type consensus gets looked at. And if an identity-type consensus IS found, and similarity shading is in operation, the program checks whether the remaining residues are similar to the consensus residue β that's where the box_xxx.sim files come in π
The main difference between relationships in these files and those in the .grp files: in a .grp file the line STA means all three a.a.s are mutually similar. But in a .sim file, S TA means both T and A are considered similar to S, where there's a conserved S residue in more than threshold number of sequences. It does NOT mean that T and A are similar to each other. The way that distinction matters⦠iykyk.
Note: cases where two residues, or groups of residues, fulfill the threshold requirements (which could totally happen with values of the thr. fraction less than or equal to 0.5) are treated as having no consensus. Periodt.
So that's the main shading model: 'shading according to a consensus' π
The alternative model is called 'shading according to a master sequence'. In this case the user gets prompted for a sequence of the alignment, and consecutively that sequence is taken to be the 'consensus'. Only those residues that are identical or similar to the chosen sequence get shaded. Output from this option tends to be less shaded and neglects similarities between the other (non-chosen) sequences. Lowkey a main-character-only situation, which honestly? Very on brand.
Starting in V2.7, this 'master sequence' can be hidden π β so it only influences the shading of the other sequences without being shown itself. Sneaky. Iconic.
πΈ Consensus display πΈ
Starting with version 2.5, BOXSHADE offers the possibility to create an additional line holding a consensus symbol π
You can get this line either by using the command line qualifier /CONS or interactively by answering the question ' create consensus? '.
The way this consensus line is displayed can be modified by the command line parameter SYMBCONS=xyz, by editing the respective entry in the .PAR file, or interactively. Since the SYMBCONS syntax is not intuitive (fr fr, it's giving cryptic), here's a brief description β the SYMBCONS parameter consists of exactly three symbols:
- the first one stands for 'normal' sequence residues that are not involved in any similar/identical relationship π
- the second symbol represents positions that are similar in all sequences of the alignment. Peep the files
BOX_PEP.SIMandBOX_DNA.SIMto see what residues are considered similar π - the third symbol represents positions that are identical in all sequences of the alignment β
A SYMBCONS parameter string " .*" (blank/point/asterisk) means: label all positions in the alignment with totally identical residues by an asterisk, all positions with all similar residues by a point, and do not mark the other positions.
The letter 'B' can be used instead of the blank β this is necessary e.g. when using the command line option /SYMBCONS=B.* which gives the same result as the above example. The option /SYMBCONS= .* would result in an unexpected behaviour π because MSDOS squeezes blanks out of the command line. Not the vibe.
Besides points, asterisks and other symbols, there are two special characters when they appear in the SYMBCONS string: 'L' and 'U':
'L'means that a lowercase representation of the most abundant residue at that position is to be used instead of a fixed consensus symbol'U'means an uppercase character representation of that residue
A possible application would be the SYMBCONS string " LU" where similar residues are represented by lowercase characters and identical by uppercase characters β¨
π¦ Shareware/PD programs useful in conjunction with BOXSHADE π¦
multiple alignment files that are to be used by BOXSHADE can be created, amongst others, by the following PD/freeware programs:
- PHYLIP by Joe Felsenstein, available by ftp from
anthro.utah.edu - ESEE by Eric Cabot, available from the same sources as BOXSHADE (see above)
- CLUSTAL by Des Higgins, ditto
for preview/conversion of POSTSCRIPT files, the program GHOSTSCRIPT from GNU software foundation is highly recommended π«Ά It is available from all major MSDOS ftp-sites (e.g. SIMTEL or ftp.uni-koeln.de). There is also a version tested for use with boxshade available at vax0.biomed.uni-koeln.de although this might be not the most recent release.
for Mac users, there is MacGhostscript, also available from the main archives (info-mac, umich and their mirrors) π
A very good tool for putting a preview image into an EPSF file β often a prerequisite for incorporating into a drawing package β is PS2EPS, by Peter Lerup. This can be found on info-mac.
for preview/conversion of HPGL files, the shareware program PRINTGL 1.18 by Cary Ravitz is highly recommended. It is available from many MSDOS ftp sites and from netserv@embl-heidelberg.de
- output on dot printers β Since PRINTGL offers a broad choice of printer types and is a nice program, I recommend its use for printing BOXSHADE output on non-POSTSCRIPT printers. Use HPGL output with options
0F1Nfor normal residues,2F1Nfor identical residues,3F1Nfor similar residues,2F4Nfor conserved residues, and8for character size not rotated (these are the standard parameters inBOX_PEP.PAR) for creating a HPGL file. (let's call itTEST.PLT) Now use PRINTGL either interactively by callingPMIor use a command line like:
PRINTGL /Fx/S0340/Waaac/Ptest.plt
where test.plt is to be replaced by the filename to convert and the x in the expression /Fx is to be replaced by the letter of the printer you use. (See the PRINTGL documentation for further details)
π RESTRICTIONS π
The RTF output and PHYLIP input implementations are still experimental. Please tell me of your experiences with the program π
- the current DOS version supports only 13 sequences with 2000 residues each. These parameters can be easily changed in the source code.
- If you cannot compile the sources because you are lacking a pascal compiler, contact the author for precompiled versions
π CITING BOXSHADE π
There is no publication on BOXSHADE and none is planned. Most people just use it for figures in publications and don't mention anything β this is ok for the authors of BOXSHADE π
If you really feel like mentioning BOXSHADE, you could either acknowledge it in the figure legend or in the Mat&Meth part on sequence analysis. Slay.
π SEE ALSO π
/etc/boxshade/*.parseaview(1)kalign(1)
π«Ά AUTHORS π«Ά
Kay Hofmann <kay.hofmann@memorec.com>
ISREC, Bioinformatics Group,
CH-1066
Epalinges s/Lausanne Switzerland
Wrote Boxshade.
Michael Baron <michael.baron@bbsrc.ac.uk>
BBSRC Institute for Animal Health,
Pirbright,
Surrey
GU24 0NF
U.K.
Wrote Boxshade.
Harmut Schirmer <hsc@techfak.uni-kiel.de>
Technische Fakultaet,
Kaiserstr. 2
D-24143
Kiel
Germany
C port of Boxshade. (don't send Kay or Michael any questions concerning the 'C' version of boxshade)
Steffen MΓΆller <moeller@debian.org>
Wrote the manpage.
Charles Plessy <plessy@debian.org>
Updated the manpage
π COPYRIGHT π
Copyright Β© 1997 Kay Hofmann, Michael Baron and Harmut Schirmer Copyright Β© 2003, 2007 Steffen Moeller, Charles Plessy
The above copyright notices refer to the program and its manpage respectively.
BOXSHADE is completely public-domain and may be passed around and modified without any notice to the authors. πΈ
This manual page was written for the Debian(TM) system but may be used by others. Permission is granted to copy, distribute and/or modify this document under same terms as boxshade itself.
and that's a wrap bestie π that was boxshade 3.3.1, dated February 09, 2013 β the whole BOXSHADE(1) era, documented and slaying π
β¨
π¦ where this page comes from
- debian bookworm: boxshade 3.3.1-14 Β· public-domain-claim
- debian trixie: boxshade 3.3.1-14 Β· public-domain-claim
- ubuntu jammy: boxshade 3.3.1-14 Β· public-domain-claim
- ubuntu noble: boxshade 3.3.1-14 Β· public-domain-claim
- ubuntu resolute: boxshade 3.3.1-14build1 Β· public-domain-claim
- ubuntu stonking: boxshade 3.3.1-14build1 Β· public-domain-claim
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms