Newer
Older
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
Method : "Eds_alignments"
Style "My favourite lovely style"
// A feature set with child feature sets which will all be displayed in the column "Parent column".
Method : "Parent column"
Style "overall column style"
Method : "First Child feature set"
Column_parent "Parent column"
Style "my style"
Method : "Second Child feature set"
Column_parent "Parent column"
Style "my style"
//------------------------------------------------------------------------------------
</pre>
The entry in the "featuresets" stanza in the ZMap config file would be:
<pre class="example">
[source]
featuresets = Eds_alignments ; Parent column
</pre>
<h4>Genefinder and Auto-created Method objects</h4>
<p>The acedb code creates some method objects itself, this is generally for display of features
calculated by the code, e.g. gene finder features. (In fact I think this is the only case we
need to be aware of...famous last words....)
<p>To avoid zmap having to second guess acedbs self generation stuff it is necessary for the database
administrator to add these methods in advance. A simple way to do this is as follows:
<ol>
<li><p> run the genefinder from within fmap and then "Save" the database before exitting, the
auto-created methods will then be saved in the database. </p>
<li><p>Add a "Style" tag to each genefinder:</p>
<pre class="example">
//------------------------------------------------------------------------------------
Method : "ATG"
Style "ATG"
Method : "hexExon"
Style "hexExon"
Method : "hexIntron"
Style "hexIntron"
Method : "GF_coding_seg"
Style "GF_coding_seg"
Method : "GF_ATG"
Style "GF_ATG"
Method : "GF_splice"
Style "GF_splice"
//------------------------------------------------------------------------------------
</pre>
<li><p>Add the Style for each method:</p>
<pre class="example">
//------------------------------------------------------------------------------------
ZMap_Style : "ATG"
Remark "This method is used by acedb to display potential methionine initiation codons"
Basic
Colours Normal Fill "yellow"
Width 15.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
GFF Source "ATG"
GFF Feature "translation"
ZMap_Style : "hexExon"
Remark "GeneFinder method"
Basic
Colours Normal Fill "orange"
Colours Normal Border "black"
Width 15.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
Score_by_width
Score_bounds 10.000000 100.000000
ZMap_Style : "hexIntron"
Remark "GeneFinder method"
Basic
Colours Normal Fill "orange"
Colours Normal Border "black"
Width 15.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
Score_by_width
Score_bounds 10.000000 100.000000
ZMap_Style : "GF_coding_seg"
Remark "GeneFinder method"
Basic
Colours Normal Fill "gray"
Colours Normal Border "black"
Width 15.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
Score_by_width
Score_bounds 2.0 8.0
ZMap_Style : "GF_ATG"
Remark "GeneFinder method"
Basic
Colours Normal Fill "orange"
Colours Normal Border "black"
Width 15.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
Show_only_as_3_frame
Score_by_width
Score_bounds 0.000000 3.000000
ZMap_Style : "GF_splice"
Remark "GeneFinder method"
Glyph Splice
Frame_0 Normal Fill "red"
Frame_1 Normal Fill "blue"
Frame_2 Normal Fill "green"
Width 10.000000
Bump_mode Complete
Strand_sensitive
Show_only_as_3_frame
Show_only_as_1_column
Score_by_width
Score_bounds -2.000000 4.000000
//------------------------------------------------------------------------------------
</pre>
</ol>
<h4>Using ?Method objects for styles (deprecated)</h4>
<p>Rules for using ?Method objects:</p>
<ul>
<li><p>ZMap must be instructed to look for ?Method objects rather than ?ZMap_style objects
by specifying the "use_methods" tag in the configuration file "source" stanza:</p>
<pre class="example">
[source]
use_methods = true
</pre>
<li><p>ZMap will only read a subset of the ?Method object display and processing tags (see below)
to create styles for feature display.</p>
</ul>
<p> Using ?Method objects means that both feature display and feature retrieval is completely controlled by the
?Method object. There is no separation of these two, the ?Method is both the feature set and
it's display/processing. The ?Method object tags will not be extended so only a subset of ZMap
display features can be used. Use of ?Method objects should be seen as a "quick and easy" way of display
which will duplicate most of the acedb FMap display but that is all. The following extract from the ?Method class
shows which tags ZMap reads.
</p>
<pre class="example">
// Method:
//
// These are the only tags read by ZMap.
//
//
?Method Remark ?Text #Evidence
//
// the Display information controls how the column looks.
Display Control UNIQUE No_display // never display features
Init_hidden // initially hide features
Colour #Colour
CDS_colour #Colour
Frame_sensitive // Is feature read frame dependent ?
Strand_sensitive Show_up_strand #Colour
Score Score_by_offset // has priority over width, for Jean
Score_by_histogram UNIQUE Float // baseline value
Score_bounds UNIQUE Float UNIQUE Float
Overlap_mode UNIQUE Overlap // draw on top - default
Bumpable // bump to avoid overlap
Cluster // one column per homol target
Width UNIQUE Float
Max_mag UNIQUE Float // don't show if more bases per line
Min_mag UNIQUE Float // don't show if fewer bases per line
Gapped // draw sequences or homols with gaps
Join_blocks // link up all blocks of a single feature with lines
GFF GFF_source UNIQUE Text
GFF_feature UNIQUE Text
</pre>
<h4>Converting from ?Method to ?ZMap_style objects</h4>
<p>ZMap includes a small utility script, methods2style.pl, to do a first pass conversion, the result will
require hand editting as some fields cannot be determined from the ?Method object,
e.g. Mode.</p>
<pre class="example">
SYNOPSIS: methods2style.pl -file <methods.ace> -help
e.g. methods2style.pl -file ./my/methods/file > ./my_new/styles/file
</pre>
</fieldset>
<br/>
<fieldset>
<legend id="keyword_value_format">Keyword Value Format</legend>
<p>"<b>Key Files</b>" are derived from MS Windows <b>".ini"</b> files although the standard they follow
(<a href="http://freedesktop.org/wiki/Specifications/desktop-entry-spec?action=show&redirect=Standards%2Fdesktop-entry-spec">
the Desktop Entry Specification</a>)
is different in places. The basic format is:</p>
<pre class="example">
# this is an example copied from the GLib documentation of these files.
[First Group]
Name=Key File Example\tthis value shows\nescaping
Welcome = Hello
[Another Group]
Numbers=2;20;-200;0
Booleans=true;false;true;true
</pre>
<p>"<b>Case Sensitivity</b>:" key files are case sensitive and you should be careful to
sepecify all information in lower case.
</p>
<p>A restriction of Key Files is that because they support merging of groups
within a file you cannot use multiple groups with the same name to produce
separate groups. Each separate group <b>must</b> have a unique name. What this
means for Styles is that the Style name <b>is</b> the group name:
</p>
<pre class="example">
[Curated]
width = 2
[Allele]
width = 1
<i>etc.</i>
</pre>
</fieldset>
<!--#include virtual="/perl/footer"-->