2 # This is the alscript command file used to create the figure
3 # published in: Roach P. L. et al (1995), Nature (June)
5 # The figure shows Isopenicillin N synthase with homologues
6 # secondary structure and other information. It makes use
7 # of many features of alscript 2.0
9 # Comments in the file all start with the # sign
12 # define the alignment block file
14 # define the output file name
16 # select portrait mode - longest paper side is vertical
18 # select point size for characters - this can be any number.
21 # Define fonts that we will use in the alignment. You give each font
22 # a unique number. The names of the fonts are standard PostScript
25 # This one means call Helvetica at the Default pointsize, font 0
26 DEFINE_FONT 0 Helvetica DEFAULT
27 # This means call Helvetica-Oblique at 70% of the default point size, font 1
28 DEFINE_FONT 1 Helvetica-Oblique REL 0.70
29 DEFINE_FONT 2 Helvetica-Bold DEFAULT
30 define_font 5 Symbol REL 1.2
31 define_font 6 Helvetica REL 0.7
35 # Define the colours that we will use in the alignment. Each colour is given
36 # a number by which it is referred to later. The three numbers following
37 # each colour are red,green,blue intensities.
39 # e.g. this defines colour number 1 to be red (1,0,0).
41 #DEFINE_COLOUR 2 0.8 1 0.8
46 DEFINE_COLOUR 6 1 0.5 0
50 define_colour 10 0 1 0
51 define_colour 11 0 0 0
53 # The add_seq command adds extra space to the alignment you have read in.
56 # Here we are adding space for four more lines after sequence number 8.
59 # This means don't number the sequences
62 # Alter the width of the space for identifiers at the lhs of the plot. This
63 # must be set by trial and error - 10 is the default.
66 # Only print sequence identifiers on the first line of a multi-line/page
70 # This is some fiddling to reduce the default vertical spacing between
71 # sequence lines. We did this to improve the appearance of the alignment
72 # in a single column of Nature. Other features of the display can
73 # be modified in a similar way - e.g. x_space_factor.
76 # commands above the SETUP are about the overall layout etc. Commands
77 # after, are giving specific boxing/shading/colouring etc.
81 # Calcluate conservation values for the complete alignment. Conservation
82 # values range from 0-10 where 10 is an identity. Values above 5 show
83 # increasing similarities in physico-chemical properties. Having calculated
84 # conservation values, we can then colour the plot to highlight conserved
89 # set mask for conserved position better than 5
91 # this clears the MASK array of all previous settings
93 # this masks all columns of the alignment for which the conservation
95 mask CONSERVATION ALL 5
97 # Now we box the masked positions and colour the
98 # text backgrounds yellow (colour 2). Note that this operation could
99 # be restricted to a subset of the alignment rather than the whole thing.
102 # The SCOL command colours the backgrounds of the character. The CCOL
103 # command colours the character itself.
104 mask SCOL 1 1 424 8 2
106 # This resets the MASK commands ready for another operation. If you don't
107 # reset, then subsequent mask commands are ADDED to the existing mask
111 #now do thw same for identities, only this time in red
112 #with white lettering
113 mask CONSERVATION ALL 10
114 mask SCOL 1 1 424 8 1
115 mask CCOL 1 1 424 8 99
116 mask FONT 1 1 424 8 2
119 # sub_id allows the identifier to be modified. At present it is not possible
120 # to mix fonts within an ID, but the ID_FONT command can be used to modify the
121 # font used for individual IDs.
128 sub_id 7 "DAOC/DACS "
131 # These are the secondary structure definitions. They were entered by
132 # hand from an analysis of the IPNS structure.
134 # Secondary structure
136 # Set Numbering relative to IPNS
138 # The x values (sequence position) of any commands that follow a
139 # relative_to command will be translated into absolute alignment position.
140 # This takes account of gaps in the alignment.
143 # Set the font for the line that will say alpha1, beta2 etc to Symbol font.
144 # Region commands operate on a region of the alignment - they usually expect
145 # four numbers to define the region - the numbers are x,y,x1,y1 where y and y1
146 # are the sequences and x and x1 are the residue positions.
147 font_region 1 11 331 11 5
149 #colour all secondary structures black (colour 11)
151 colour_text_region 1 10 331 10 11
153 # Now draw all the helices and strands and label and colour them.
155 # For example, Tell ALSCRIPT to draw a strand from 11 to 13 of sequence 10
157 # Now write the text b1 (will be a Greek b because of the
158 # font_region command above).
183 # set the colour to green for this strand.
184 colour_text_region 183 10 189 10 10
197 colour_text_region 210 10 214 10 10
200 colour_text_region 220 10 225 10 10
203 colour_text_region 231 10 235 10 10
206 colour_text_region 238 10 241 10 10
209 colour_text_region 249 10 253 10 10
218 colour_text_region 270 10 273 10 10
221 colour_text_region 279 10 286 10 10
232 #Now add arrows for the residues within 8A of the Mn
234 # The TEXT command normally just writes out the specified text
235 # at the specified position. However, special TEXT objects
236 # exist. These all start with the @ symbol.
238 colour_text_region 214 12 214 12 1
240 # This draws a filled up arrow at position 214,12.
241 text 214 12 "@fuparrow"
242 colour_text_region 216 12 216 12 1
243 text 216 12 "@fuparrow"
244 colour_text_region 270 12 270 12 1
245 text 270 12 "@fuparrow"
246 colour_text_region 330 12 330 12 1
247 text 330 12 "@fuparrow"
249 text 41 12 "@fuparrow"
250 text 252 12 "@fuparrow"
251 text 221 12 "@fuparrow"
252 text 187 12 "@fuparrow"
253 text 285 12 "@fuparrow"
254 text 223 12 "@fuparrow"
255 text 272 12 "@fuparrow"
256 text 218 12 "@fuparrow"
257 text 231 12 "@fuparrow"
260 # Now set the sequence numbering back to alignment positions.
264 # From here to the end of the file was created by the alsnum program
265 # alsnum creates text commands for numbering a plot relative to a
266 # specific sequence, rather than the alignment numbers that are
267 # normally shown. Please see the ALSCRIPT manual for further details.
270 # Text commands created for numbering