The Segment loader has been part of ACEDB a long time, but has never really been used outside of Sanger (and it certainly has not been documented before!). Most of the functionality is redundant - the same results can probably be achieved by use of .ace files. Thus you should only look into this if you're into heavy wizardry. An additional complication is that this function crashes the current 4.5 ace (this bug has been reported to the relevant authorities). It does work in 4.3, though.
The segment loader is only available in the X applications (xace and xaceclient) [???? how 'bout gifaceserver, would it be possible to get it called there? Probably not ...]
Look for the two commands on the dropdown menu in the Sequence (fMap) display. They should be Read Segments and Clear Segments. Now, very few ACEDB users are aware that they are there, and even fewer know what they do. This document will try to explain those commands.
Segments is the way the ACEDB database manager thinks of parts of the Sequence, for instance when it is time to put small markers for splice sites, or large boxes for certain features on the display. Briefly, each segment has at least the following items:
There are 4 different TYPEs, and they each come in two flavours.
| TYPE | Format |
|---|---|
| HOMOL HOMOL_UP | SeqObj Start Stop TYPE MetObj Score SeqName Start Stop |
| SPLICE3 SPLICE3_UP SPLICE5 SPLICE5_UP FEATURE FEATURE_UP | SeqObj Start Stop TYPE MetObj Score |
See Footnote 1 for a slightly more formal description of the format
The data needs to be saved in a file with the extension '.useg', as
Read Segments filters the filenames ruthlessly.
Here is some test data [this needs adjusting to your database, especially the Sequence names]
MD0101 5001 5002 SPLICE3 GF_splice 3.0 MD0101 6001 6002 SPLICE3_UP GF_splice 3.0 MD0101 7001 7002 SPLICE5 GF_splice 3.0 MD0101 8001 8002 SPLICE5_UP GF_splice 3.0 MD0101 5001 10000 FEATURE MyFeat 3.0 MD0101 10001 15000 FEATURE_UP MyFeat 3.0 MD0101 5001 10000 HOMOL blastn 200.0 MD0102 2001 7000 MD0101 10000 5001 HOMOL_UP blastn 300.0 MD0103 2001 7000
.useg extension. Double-click on one of them to load it.If you have got the format right, you should get a small window reporting on the progress, saying how many segments were loaded. If one of the lines is malformed, you'll get an error message, and the Segment loader will skip over that line.
.useq file format
File = Line(\nLine)* Line = Ordinary-line | Homol-line Homol-line = HereLocation <ws> Homol-type <ws> Method-part <ws> HitLocation Ordinary-line = HereLocation <ws> Ordinary-type <ws> Method-part Method-part = MetObj <ws> Score ThisLocation = SeqObj <ws> Location HereLocation = SeqName <ws> Location Location = Start <ws> Stop Homol-type = HOMOL | HOMOL_UP Ordinary-type = SPLICE3 | SPLICE3_UP | SPLICE5 | SPLICE5_UP | FEATURE | FEATURE_UP Score = FLOAT Start = INT Stop = INT <ws> = [ \t]+ SeqName =SeqObj = 'name of the current Sequence object' MetObj = 'name of a Method object' /* does not need to be an existing object, it will be created with default behaviour */