| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<TITLE>User Guide To ACEDB Tools</TITLE> |
| 5 |
|
| 6 |
<LINK rel=stylesheet type="text/css" |
| 7 |
href="./wdoc.css" |
| 8 |
title="Style sheet for wdoc developer documents"> |
| 9 |
|
| 10 |
</HEAD> |
| 11 |
|
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<BLOCKQUOTE> |
| 16 |
<DIV ALIGN=CENTER> |
| 17 |
<IMG SRC="acedb-logo.gif" ALT="[ACEDB DOCUMENTATION]" align=middle> |
| 18 |
<H3> |
| 19 |
ACEDB Tools |
| 20 |
</H3> |
| 21 |
</DIV> |
| 22 |
|
| 23 |
|
| 24 |
<DIV ALIGN=CENTER> |
| 25 |
|
| 26 |
<H1 align=center> |
| 27 |
User Guide To Acedb Tools |
| 28 |
</H1> |
| 29 |
|
| 30 |
<ADDRESS>Originally written by<BR> |
| 31 |
Ed Griffiths <[email protected]>, March 2000</ADDRESS> |
| 32 |
|
| 33 |
</DIV> |
| 34 |
|
| 35 |
|
| 36 |
<H2>Background</H2> |
| 37 |
|
| 38 |
<P>The ACEDB tools are a collection of shell, perl and python scripts and C executables |
| 39 |
that are useful for the curating/administration of databases. The tools can all be |
| 40 |
found in the <B>/wtools</B> directory. |
| 41 |
|
| 42 |
|
| 43 |
<H2>The Tools</H2> |
| 44 |
|
| 45 |
<UL> |
| 46 |
<LI><B><A href="./acetools.html#XXXX">INSTALL</A></B> |
| 47 |
- Acedb installation. |
| 48 |
<LI><B><A href="./acetools.html#XXXX">INSTALL.acembly</A></B> |
| 49 |
- Acedb installation. |
| 50 |
<LI><B><A href="./acetools.html#XXXX">INSTALL.xclient</A></B> |
| 51 |
- Acedb installation. |
| 52 |
<LI><B><A href="./acetools.html#XXXX">MAKE_ACEMBLY</A></B> |
| 53 |
- Acedb installation. |
| 54 |
<LI><B><A href="./acetools.html#XXXX">MAKE_ACEMBLY_BIN</A></B> |
| 55 |
- Acedb installation. |
| 56 |
<LI><B><A href="./acetools.html#XXXX">MAKE_OTHERS</A></B> |
| 57 |
- Acedb installation. |
| 58 |
<LI><B><A href="./acetools.html#XXXX">MAKE_SERVER</A></B> |
| 59 |
- Acedb installation. |
| 60 |
<LI><B><A href="./acetools.html#XXXX">MAKE_SOURCE_DISTRIBUTION</A></B> |
| 61 |
- Acedb installation. |
| 62 |
<LI><B><A href="./acetools.html#XXXX">MAKE_TAR_FILES</A></B> |
| 63 |
- Acedb installation. |
| 64 |
<LI><B><A href="./acetools.html#Restriction2Motif">Restriction2Motif</A></B> |
| 65 |
- convert ace2 Restriction objects to ace4 Motif |
| 66 |
<LI><B><A href="./acetools.html#aceExtract">aceExtract</A></B> |
| 67 |
- extract objects from an ace file |
| 68 |
<LI><B><A href="./acetools.html#aceGetVersion">aceGetVersion</A></B> |
| 69 |
- read the acedb kernel version from the source file that |
| 70 |
holds the version number |
| 71 |
<LI><B><A href="./acetools.html#ace_perl">ace_perl.pl</A></B> |
| 72 |
- |
| 73 |
<LI><B><A href="./acetools.html#acecsplit">acecsplit</A></B> |
| 74 |
- split a .ace file into parts according to mapping file |
| 75 |
<LI><B><A href="./acetools.html#acesplit">acesplit</A></B> |
| 76 |
- read a .ace file and split it every n objects |
| 77 |
<LI><B><A href="./tools/ace2line.html">ace2line & line2ace</A></B> |
| 78 |
- read a .ace file and convert into line records and vice versa. |
| 79 |
<LI><B><A href="./acetools.html#classCount">classCount</A></B> |
| 80 |
- |
| 81 |
<LI><B><A href="./acetools.html#embl2ace">embl2ace</A></B> |
| 82 |
- script to process EMBL entry to ACEDB4 .ace file |
| 83 |
<LI><B><A href="./acetools.html#fmap2_4">fmap2_4</A></B> |
| 84 |
- convert Sanger ace files containing Sequence/DNA |
| 85 |
objects to ACEDB4 models. |
| 86 |
<LI><B><A href="./acetools.html#homol2match">homol2match</A></B> |
| 87 |
- |
| 88 |
<LI><B><A href="./acetools.html#homonym">homonym</A></B> |
| 89 |
- |
| 90 |
<LI><B><A href="./acetools.html#html2txt">html2txt</A></B> |
| 91 |
- decorate an html file with text characters for prettier plain text output. |
| 92 |
<LI><B><A href="./acetools.html#modelcheck">modelcheck</A></B> |
| 93 |
- check a model file for correctness |
| 94 |
<LI><B><A href="./acetools.html#models2tags">models2tags</A></B> |
| 95 |
- parse models.wrm and generate tags.tmp and classes.tmp from it |
| 96 |
<LI><B><A href="./acetools.html#parsecode">parsecode</A></B> |
| 97 |
- |
| 98 |
<LI><B><A href="./acetools.html#rm-O">rm-O</A></B> |
| 99 |
- removes -O usersession data and big pointless keysets |
| 100 |
<LI><B><A href="./acetools.html#rsort">rsort</A></B> |
| 101 |
- sort ace dump |
| 102 |
<LI><B><A href="./acetools.html#split">split.c</A></B> |
| 103 |
- split big ace files in a naive way |
| 104 |
<LI><B><A href="./acetools.html#splitdump">splitdump</A></B> |
| 105 |
- split up ACEDB dump output into classes |
| 106 |
<LI><B><A href="./acetools.html#tace2table">tace2table</A></B> |
| 107 |
- process dumped tables so fields are not lost when split |
| 108 |
<LI><B><A href="./acetools.html#tagCount">tagCount</A></B> |
| 109 |
- |
| 110 |
<LI><B><A href="./acetools.html#tagsInModel">tagsInModel</A></B> |
| 111 |
- lists tags and classes used in a model |
| 112 |
<LI><B><A href="./acetools.html#xcl">xcl</A></B> |
| 113 |
- Launches a graphic acedb xace working as a client on an ace-server |
| 114 |
</UL> |
| 115 |
|
| 116 |
|
| 117 |
<H2><A name="XXXX">Not Written Yet</A></H2> |
| 118 |
<PRE> |
| 119 |
Sorry, there is no description of this item yet. |
| 120 |
</PRE> |
| 121 |
|
| 122 |
|
| 123 |
<H2>Tools decriptions</H2> |
| 124 |
|
| 125 |
<H3><A name="Restriction2Motif">Restriction2Motif</A></H3> |
| 126 |
<PRE> |
| 127 |
# |
| 128 |
# awk script to convert ace2 Restriction objects to ace4 Motif |
| 129 |
# |
| 130 |
</PRE> |
| 131 |
|
| 132 |
<H3><A name="aceExtract">aceExtract</A></H3> |
| 133 |
<PRE> |
| 134 |
# perl script to extract objects from an ace file |
| 135 |
# |
| 136 |
# usage: aceExtract class:name acefile ... |
| 137 |
# |
| 138 |
# perl regexp allowed in name (but protect from shell globbing) |
| 139 |
# |
| 140 |
</PRE> |
| 141 |
|
| 142 |
<H3><A name="aceGetVersion">aceGetVersion</A></H3> |
| 143 |
<PRE> |
| 144 |
# |
| 145 |
# Perl script to read the acedb kernel version from the source file that |
| 146 |
# holds the version number: aceversion.c |
| 147 |
# |
| 148 |
# The idea is that only the version.c source file will be altered when changing |
| 149 |
# the ACEDB version number, then the scripts that produce the public tar files |
| 150 |
# will use this script to get that version number. |
| 151 |
# |
| 152 |
# The script returns the version, release and update read from aceversion.c |
| 153 |
# in the form: <version>_<release><update> e.g. 4_6d |
| 154 |
# |
| 155 |
# it must be given the name of the directory where aceversion.c can be found. |
| 156 |
# |
| 157 |
</PRE> |
| 158 |
|
| 159 |
|
| 160 |
<H3><A name="ace_perl">ace_perl</A></H3> |
| 161 |
<PRE> |
| 162 |
# File: ace_perl.pl |
| 163 |
# Author: Jean Thierry-Mieg, Steve Rosen, Gabor Marth |
| 164 |
# ------------------------------------------------------------------- |
| 165 |
# This file is part of the client/server interface to |
| 166 |
# the ACEDB genome database package, written by |
| 167 |
# Richard Durbin (MRC LMB, UK) [email protected], and |
| 168 |
# Jean Thierry-Mieg (CRBM du CNRS, France) [email protected] |
| 169 |
# Copyright (C) J Thierry-Mieg and R Durbin, 1989- |
| 170 |
# |
| 171 |
# Description: |
| 172 |
# Exported functions: |
| 173 |
# ace_in, ace_new, ace_count, ace_table, ace_script |
| 174 |
# ------------------------------------------------------------------- |
| 175 |
</PRE> |
| 176 |
|
| 177 |
<H3><A name="acecsplit">acecsplit</A></H3> |
| 178 |
<PRE> |
| 179 |
# This file is part of the IGD project |
| 180 |
# |
| 181 |
# Description: split a .ace file into parts according to mapping file |
| 182 |
# usage: acecsplit [-c <configfile>] [-p <prefix>] [<filename>...] |
| 183 |
# Inputs: .ace data from files or stdin |
| 184 |
# if option -c is given, then |
| 185 |
# split according to config file, |
| 186 |
# else split by class name |
| 187 |
# Output: .ace data is distributed into files according to config |
| 188 |
# if <prefix> is given then all output files start with it, |
| 189 |
# default for <prefix> is "split." |
| 190 |
</PRE> |
| 191 |
|
| 192 |
<H3><A name="acesplit">acesplit</A></H3> |
| 193 |
<PRE> |
| 194 |
# read a .ace file and split it every n objects |
| 195 |
# contributed by Detlef Wolf, DKFZ |
| 196 |
# |
| 197 |
# Fri Feb 3 10:54:04 MET 1995 dok256 |
| 198 |
# - comments may start anywhere on a line |
| 199 |
# Thu Feb 2 10:28:53 MET 1995 dok256; bugs fixed: |
| 200 |
# - DNA tags are no longer treated as objects |
| 201 |
# - .ace commands -D -R -A are recognized |
| 202 |
# - terminates even if last line of last file does not end with a newline |
| 203 |
</PRE> |
| 204 |
|
| 205 |
<H3><A name="classCount">classCount</A></H3> |
| 206 |
<PRE> |
| 207 |
There is no help...sigh... |
| 208 |
</PRE> |
| 209 |
|
| 210 |
<H3><A name="embl2ace">embl2ace</A></H3> |
| 211 |
<PRE> |
| 212 |
# script to process EMBL entry to ACEDB4 .ace file |
| 213 |
</PRE> |
| 214 |
|
| 215 |
<H3><A name="fmap2_4">fmap2_4</A></H3> |
| 216 |
<PRE> |
| 217 |
# Script to convert Sanger ace files containing Sequence/DNA |
| 218 |
# objects to ACEDB4 models. |
| 219 |
# May assume sometimes layout of .ace file dumped from acedb. |
| 220 |
</PRE> |
| 221 |
|
| 222 |
<H3><A name="homol2match">homol2match</A></H3> |
| 223 |
<PRE> |
| 224 |
There is no help...sigh... |
| 225 |
</PRE> |
| 226 |
|
| 227 |
<H3><A name="homonym">homonym</A></H3> |
| 228 |
<PRE> |
| 229 |
# |
| 230 |
# Replacement of old homonym C program |
| 231 |
# |
| 232 |
# Format of homfile: |
| 233 |
# // any line starting with '//' is ignored |
| 234 |
# Full name 1 = |
| 235 |
# Variant A of 1 |
| 236 |
# Variant B_of_1 |
| 237 |
# Full_name 2 = |
| 238 |
# Variant of 2 |
| 239 |
# etc. |
| 240 |
# i.e. the correct names come first, followed by an '=' sign |
| 241 |
# all names on subsequent lines up until the next '=' sign are treated |
| 242 |
# as homonyms. NOTE THAT THIS IS DIFFERENT FROM THE OLD FORMAT. |
| 243 |
# |
| 244 |
# By default Author lines are substituted, but you can apply to any other |
| 245 |
# tag using option "-T tag" |
| 246 |
# |
| 247 |
# Option -c will just output information on changes that will be made |
| 248 |
# |
| 249 |
# Option -2 is like -T, but looks for items 2 in from the tag |
| 250 |
# |
| 251 |
# Lines ending with '// fix' will not be changed |
| 252 |
|
| 253 |
$usage = "Usage: homonym [-T tag] [-c] [-2 tag] homfile [files]\n" ; |
| 254 |
</PRE> |
| 255 |
|
| 256 |
<H3><A name="html2txt">html2txt</A></H3> |
| 257 |
<PRE> |
| 258 |
|
| 259 |
Don't be fooled, this doesn't really translate html -> plain text !! |
| 260 |
|
| 261 |
Now read on... |
| 262 |
|
| 263 |
|
| 264 |
html2txt - decorate an html file with text characters for prettier plain text output. |
| 265 |
|
| 266 |
|
| 267 |
html2txt < inputfile > outputfile |
| 268 |
|
| 269 |
|
| 270 |
This perl module decorates an HTML file in such a way that |
| 271 |
when it is saved from Netscape (other browsers untested) as |
| 272 |
plain text then headings will be underlined so they still |
| 273 |
stand out in the text. |
| 274 |
|
| 275 |
You have some html that you want to translate to text but you have |
| 276 |
noticed that when you do this with Netscape ("Save as" menu option) |
| 277 |
none of the headers are marked in any way. This script takes an |
| 278 |
html file and adds underlining to headers using ordinary text |
| 279 |
characters to produce a new decorated html file. View this new |
| 280 |
file in Netscape and save it as plain text. If you now look at |
| 281 |
the plain text file you will see that all the headings are now |
| 282 |
underlined. (The script also marks bold text as well.) |
| 283 |
|
| 284 |
e.g. headings: |
| 285 |
|
| 286 |
<H1> A Heading </H1> |
| 287 |
|
| 288 |
would become: |
| 289 |
|
| 290 |
A Heading |
| 291 |
********* |
| 292 |
|
| 293 |
e.g. bold: |
| 294 |
|
| 295 |
<B>Some text</B> |
| 296 |
|
| 297 |
would become: |
| 298 |
|
| 299 |
_Some text_ |
| 300 |
|
| 301 |
|
| 302 |
If you want more details then you can use the perl pod2XXX commands to |
| 303 |
extract the man page in the html2txt perl script. |
| 304 |
|
| 305 |
Currently this script is used to prepare a plain text version of |
| 306 |
acedb monthly newsletter (which is in html). |
| 307 |
|
| 308 |
</PRE> |
| 309 |
|
| 310 |
|
| 311 |
<H3><A name="modelcheck">modelcheck</A></H3> |
| 312 |
<PRE> |
| 313 |
To run the program: |
| 314 |
|
| 315 |
> modelcheck models.wrm |
| 316 |
|
| 317 |
|
| 318 |
Output is written densely to stdout so you will probably want to capture it into a file. |
| 319 |
|
| 320 |
<B>NOTE</B> that you need python version 1.5 or later to run this script. |
| 321 |
</PRE> |
| 322 |
|
| 323 |
<H3><A name="models2tags">models2tags</A></H3> |
| 324 |
<PRE> |
| 325 |
# parse models.wrm and generate |
| 326 |
# tags.tmp and classes.tmp from it |
| 327 |
</PRE> |
| 328 |
|
| 329 |
<H3><A name="parsecode">parsecode</A></H3> |
| 330 |
<PRE> |
| 331 |
You are beyond all help... |
| 332 |
</PRE> |
| 333 |
|
| 334 |
<H3><A name="rm-O">rm-O</A></H3> |
| 335 |
<PRE> |
| 336 |
# |
| 337 |
# removes -O usersession data and big pointless keysets |
| 338 |
# particularly good for dumps |
| 339 |
# |
| 340 |
</PRE> |
| 341 |
|
| 342 |
<H3><A name="rsort">rsort</A></H3> |
| 343 |
<PRE> |
| 344 |
# |
| 345 |
# rsort was written to sort ace dump but |
| 346 |
# is general enough to be used for |
| 347 |
# other purposes. |
| 348 |
# |
| 349 |
</PRE> |
| 350 |
|
| 351 |
<H3><A name="split">split</A></H3> |
| 352 |
<PRE> |
| 353 |
* Description: stand alone, will split big ace files in a naive way |
| 354 |
"Usage split prefix, splits stdin into n files of max 10^5 lines called prefix.n |
| 355 |
</PRE> |
| 356 |
|
| 357 |
<H3><A name="splitdump">splitdump</A></H3> |
| 358 |
<PRE> |
| 359 |
# |
| 360 |
# script to split up ACEDB dump output into classes |
| 361 |
# |
| 362 |
</PRE> |
| 363 |
|
| 364 |
<H3><A name="tace2table">tace2table</A></H3> |
| 365 |
<PRE> |
| 366 |
# tace2table |
| 367 |
# |
| 368 |
# tace dumps tables with ; separating the fields. |
| 369 |
# |
| 370 |
# Typically : "E77B4";;"95-06-08";;;; |
| 371 |
# |
| 372 |
# Convert ;; to ;""; so don't lose fields when split |
| 373 |
# |
| 374 |
</PRE> |
| 375 |
|
| 376 |
<H3><A name="tagCount">tagCount</A></H3> |
| 377 |
<PRE> |
| 378 |
No help here... |
| 379 |
</PRE> |
| 380 |
|
| 381 |
<H3><A name="tagsInModel">tagsInModel</A></H3> |
| 382 |
<PRE> |
| 383 |
# |
| 384 |
# lists tags and classes used in a model |
| 385 |
# |
| 386 |
</PRE> |
| 387 |
|
| 388 |
<H3><A name="xcl">xcl</A></H3> |
| 389 |
<PRE> |
| 390 |
#------------------------------------------------------------------- |
| 391 |
# Usage: xcl host port |
| 392 |
# example: xcl beta 20000100 |
| 393 |
#------------------------------------------------------------------- |
| 394 |
# Description: |
| 395 |
# Launches a graphic acedb xace working as a client on an ace-server |
| 396 |
# |
| 397 |
</PRE> |
| 398 |
|
| 399 |
|
| 400 |
<HR> |
| 401 |
<H3 ALIGN="CENTER">ACEDB Tools</H3> |
| 402 |
|
| 403 |
|
| 404 |
<HR> |
| 405 |
<ADDRESS><A href="mailto:[email protected]">Ed Griffiths <[email protected]></A></ADDRESS> |
| 406 |
<!-- hhmts start --> |
| 407 |
Last modified: Fri Feb 15 09:50:28 GMT 2002 |
| 408 |
<!-- hhmts end --> |
| 409 |
|
| 410 |
</BLOCKQUOTE> |
| 411 |
</BODY> |
| 412 |
</HTML> |