| 1 |
<html> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
<title> ACEDB source code documentation: EMBL dumping </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 |
<H1> EMBL dumping documentation </H1> |
| 16 |
|
| 17 |
EMBL dump now gets information from a Method object, which controls |
| 18 |
what is dumped where. In fact, you can specify dump field information |
| 19 |
either in the Sequence object itself, or a method, or a method |
| 20 |
inherited from the method ..., i.e. you can have defaults that you |
| 21 |
override either in a specialised method or in the object itself. |
| 22 |
<p> |
| 23 |
You can now dump any sequence object for which DNA can be found, |
| 24 |
directly or indirectly (so you can dump links or subsequences). |
| 25 |
<p> |
| 26 |
You can also now dump from giface, including gifaceserver (see |
| 27 |
example below). |
| 28 |
<p> |
| 29 |
There is now code for dumping arbitrary features according to dump |
| 30 |
information in the feature method, plus possible #Feature_info data |
| 31 |
from the Feature lines. This also works on Homol lines now. |
| 32 |
|
| 33 |
<H3> Known bugs/incompletenesses: </H3> |
| 34 |
|
| 35 |
<ol> |
| 36 |
<li> I don't get arbitrary features from subsequences, and recurse on |
| 37 |
them. So in fact dumping links won't work. I realise. |
| 38 |
<li> I should use methods on subsequences when dumping them |
| 39 |
(partially done now; 980815). |
| 40 |
</ol> |
| 41 |
|
| 42 |
<H2> Using EMBL_dump_info and associated methods </H2> |
| 43 |
|
| 44 |
The order of processing the header information is: |
| 45 |
<ol> |
| 46 |
<li> Needs to be a sequence object. Needs to find DNA. |
| 47 |
<li> Complains if no object under _Clone [clone]. This will be used |
| 48 |
in the context of Clone_left_end information (see below). |
| 49 |
<li> The ID entry is derived from _Database "EMBL" [id] [ac]. If it |
| 50 |
exists then use [id]. Else use ID_template from the dump_info, |
| 51 |
replacing %s by the sequence object name. |
| 52 |
<li> AC lines are calculated from _Database "EMBL" [id] [ac]. If |
| 53 |
that does not exist, look under _Ac_number [ac]. Else nothing. |
| 54 |
<li> DE lines come from DE_format in dump_info. %s is |
| 55 |
substituted by the clone name if one exists, else the sequence name. |
| 56 |
<li> KW lines come from _Keyword [keyword] entries. |
| 57 |
<li> OS line from OS_line in method. |
| 58 |
<li> OC lines from OC_lines in method. It does not rewrap these so |
| 59 |
you have to get the lines right. |
| 60 |
<li> References. Submission reference gets RA names from From_author |
| 61 |
in the object, then Previous_author in the object; both can be |
| 62 |
multiple. Fills RL line from RL_submission, relacing DD-MMM-YYYY with |
| 63 |
the date obtained from Submitted in the object if that exists, else |
| 64 |
the current date. Then gets further references from the |
| 65 |
EMBL_reference in the method, parsing fields out of the standard |
| 66 |
Paper model. |
| 67 |
<li> Gets CC lines from CC_line in the method. Replace %s in these by |
| 68 |
clone name, or object name if that does not exist. Each CC_line text |
| 69 |
will be wrapped and appear as a separate paragraph separated by a |
| 70 |
blank XX line from the next paragraph. |
| 71 |
<li> Writes standard CC lines. First set of these give left and right |
| 72 |
end information using Clone_left_end and Clone_right end info from the |
| 73 |
clone for this object, and for other clones with ends in this |
| 74 |
sequence. The second set gives overlap information with neighbouring |
| 75 |
sequences. |
| 76 |
<li> Finally, write CC lines for explicit DB_remark entries from the |
| 77 |
object itself. These are also wrapped and separated into paragraphs |
| 78 |
by XX lines. |
| 79 |
</ol> |
| 80 |
|
| 81 |
The feature table is written in the following order: |
| 82 |
<ol> |
| 83 |
<li> A source feature is written. This uses source_organism from the |
| 84 |
method to fill in /organism. The clone name is given in /clone if |
| 85 |
that exists. The chromosome and map qualifiers are filled from |
| 86 |
EMBL_chromosome and EMBL_map fields in the #EMBL_dump_info of the |
| 87 |
sequence, if they are there. If not, and there is a Map object for |
| 88 |
the sequence, then it looks inside that for a Text entry following the |
| 89 |
tag EMBL_chromosome, and if that is found, writes a /chromosome entry |
| 90 |
containing it. |
| 91 |
<li> Next it does the subsequences: |
| 92 |
<ol> |
| 93 |
<li> |
| 94 |
Prior to 980915 it looks for tags CDS, mRNA, and text following tRNA, |
| 95 |
snRNA, scRNA, misc_RNA and dumps accordingly. For the latter ones |
| 96 |
with text it produces a note containing the text, followed by "-tRNA" |
| 97 |
or "-RNA". |
| 98 |
<li> |
| 99 |
From 980915, in order to be dumped, a subsequence must have a Method, and that |
| 100 |
method must have an EMBL_feature, which specifies the feature key |
| 101 |
used. For pseudogenes use the key "CDS" (required by EMBL rules). |
| 102 |
The RNA notes are filled in as before. |
| 103 |
<li> |
| 104 |
For CDS checks if translatable without a stop codon, and if not then |
| 105 |
sets /pseudo qualifier and messerrors. |
| 106 |
<li> |
| 107 |
Builds the location information, going across LINK boundaries. Checks |
| 108 |
for Start_not_found and End_not_found tags and uses greater than and |
| 109 |
less than signs in these cases (but not /partial). In these cases, it |
| 110 |
sets codon_start where necessary. |
| 111 |
<li> |
| 112 |
If CDS_predicted_by a method, then dumps out /note="predicted using |
| 113 |
%s". |
| 114 |
<li> |
| 115 |
If the name of the object ends in a lower case letter, then prints out |
| 116 |
/note="preliminary prediction". EBI recognises this, and puts the |
| 117 |
resulting peptide into REM-TREMBL, not SP-TREMBL. |
| 118 |
<li> |
| 119 |
If a Locus attached then write /gene="{Locus}". If gene_from_name was |
| 120 |
set in the model, then it will also write out /gene="{object name}". |
| 121 |
<li> |
| 122 |
If a DB_remark attached to the object, then dump that as a note. Else |
| 123 |
if Brief_identification, dump /note="similar to {brief_id}". |
| 124 |
<li> |
| 125 |
For each sequence (normally an EST) attached via Matching_cDNA to the |
| 126 |
object, we print a line saying "cDNA EST EMBL:%s comes from this gene" |
| 127 |
or "cDNA EST %s comes from this gene" depending on whether we can find |
| 128 |
an accession number. 40 lines per /note qualifier. |
| 129 |
<li> |
| 130 |
If find TSL_site followed by an integer, then write a line |
| 131 |
/note="Possible trans-spliced leader site at {position}". Very worm |
| 132 |
specific. |
| 133 |
</ol> |
| 134 |
<li> Next, Features and Homols are dumped as described in the text |
| 135 |
below, if their methods have EMBL_dump information. |
| 136 |
<li> Finally, the sequence itself is dumped as an SQ line followed by |
| 137 |
sequence. |
| 138 |
</ol> |
| 139 |
|
| 140 |
<H3> Model Changes </H3> |
| 141 |
|
| 142 |
Create a new # (subobject) model: |
| 143 |
<pre> |
| 144 |
#EMBL_dump_info EMBL_dump_method UNIQUE ?Method |
| 145 |
ID_template UNIQUE Text |
| 146 |
ID_division UNIQUE Text |
| 147 |
DE_format UNIQUE Text |
| 148 |
OS_line UNIQUE Text |
| 149 |
OC_line Text |
| 150 |
RL_submission Text |
| 151 |
EMBL_reference ?Paper |
| 152 |
CC_line Text |
| 153 |
source_organism UNIQUE Text |
| 154 |
gene_from_name |
| 155 |
EMBL_chromosome UNIQUE Text |
| 156 |
EMBL_map UNIQUE Text |
| 157 |
</pre> |
| 158 |
This information is made accessible by adding to the Method model: |
| 159 |
<pre> |
| 160 |
EMBL_dump_info #EMBL_dump_info |
| 161 |
</pre> |
| 162 |
Add similarly to Sequence model: |
| 163 |
<pre> |
| 164 |
DB_info ... |
| 165 |
EMBL_dump_info #EMBL_dump_info |
| 166 |
</pre> |
| 167 |
The use of the shared subobject model makes things recursive. When |
| 168 |
looking for OS_line, for example, the first one that is found gets |
| 169 |
used, starting with information in the Sequence object, then in its |
| 170 |
EMBL_dump_method, then in its EMBL_dump_method... |
| 171 |
<p> |
| 172 |
Add to Map model: |
| 173 |
<pre> |
| 174 |
EMBL_chromosome UNIQUE Text |
| 175 |
</pre> |
| 176 |
This determines how a Map object is transformed to a /chromosome="xx" |
| 177 |
line under the "source" feature key. |
| 178 |
|
| 179 |
<H3> Models for dumping Features and Homols </H3> |
| 180 |
|
| 181 |
<pre> |
| 182 |
?Sequence ... |
| 183 |
// Homol <tag2> <object> ?Method Float Int UNIQUE Int Int UNIQUE Int #Homol_info |
| 184 |
// <object> is target, Float is score, second pair of |
| 185 |
// ints are y1, y2 |
| 186 |
Feature ?Method Int Int UNIQUE Float UNIQUE Text #Feature_info |
| 187 |
// Float is score, Text is note |
| 188 |
|
| 189 |
?Method ... |
| 190 |
EMBL_dump EMBL_feature UNIQUE Text // require this |
| 191 |
EMBL_threshold UNIQUE Float |
| 192 |
// apply to score unless overridden |
| 193 |
EMBL_qualifier Text UNIQUE Text |
| 194 |
// if 1 Text, it is the entire qualifier including '/' |
| 195 |
// if 2 Texts, 1st is an sprintf format and 2nd is |
| 196 |
// an argument. If this is "score", "note", "y1", "y2" or "target" |
| 197 |
// then use the corresponding field of the Feature or Homol line. |
| 198 |
// multiple formats will be concatenated until one starts with '/'. |
| 199 |
|
| 200 |
#Feature_info EMBL_dump UNIQUE EMBL_dump_YES |
| 201 |
EMBL_dump_NO |
| 202 |
// overrides for embl dump based on method |
| 203 |
EMBL_qualifier Text |
| 204 |
// additional to those in the method, includes '/' |
| 205 |
... |
| 206 |
|
| 207 |
// #Homol_info can have all the same content as ?Feature_info |
| 208 |
</pre> |
| 209 |
|
| 210 |
<H2> Example .ace file </H2> |
| 211 |
<pre> |
| 212 |
Method worm_EMBL-dump |
| 213 |
EMBL_dump_info ID_template "CE%s" |
| 214 |
EMBL_dump_info ID_division INV |
| 215 |
EMBL_dump_info DE_format "Caenorhabditis elegans cosmid %s" |
| 216 |
EMBL_dump_info OS_line "Caenorhabditis elegans (nematode)" |
| 217 |
EMBL_dump_info OC_line "Eukaryota; Animalia; Metazoa; Nematoda; Secernentea; Rhabditia;" |
| 218 |
EMBL_dump_info OC_line "Rhabditida; Rhabditina; Rhabditoidea; Rhabditidae." |
| 219 |
EMBL_dump_info RL_submission "Submitted (DD-MMM-YYYY) to the EMBL Data Library by:" |
| 220 |
EMBL_dump_info RL_submission "Nematode Sequencing Project, Sanger Centre, Hinxton, Cambridge" |
| 221 |
EMBL_dump_info RL_submission "CB10 1RQ, England and Department of Genetics, Washington" |
| 222 |
EMBL_dump_info RL_submission "University, St. Louis, MO 63110, USA." |
| 223 |
EMBL_dump_info RL_submission "E-mail: [email protected] or [email protected]" |
| 224 |
EMBL_dump_info EMBL_reference seq-paper-2 |
| 225 |
EMBL_dump_info CC_line "Current sequence finishing criteria for the C. elegans genome" |
| 226 |
EMBL_dump_info CC_line "sequencing consortium are that all bases are either sequenced" |
| 227 |
EMBL_dump_info CC_line "unambiguously on both strands, or on a single strand with both" |
| 228 |
EMBL_dump_info CC_line "a dye primer and dye terminator reaction, from distinct" |
| 229 |
EMBL_dump_info CC_line "subclones. Exceptions are indicated by an explicit note.\n" |
| 230 |
EMBL_dump_info CC_line "Coding sequences below are predicted from computer analysis," |
| 231 |
EMBL_dump_info CC_line "using predictions from Genefinder (P. Green, U. Washington)," |
| 232 |
EMBL_dump_info CC_line "and other available information.\n" |
| 233 |
EMBL_dump_info CC_line "IMPORTANT: This sequence is NOT necessarily the entire insert" |
| 234 |
EMBL_dump_info CC_line "of the specified clone. It may be shorter because we only" |
| 235 |
EMBL_dump_info CC_line "sequence overlapping sections once, or longer because we" |
| 236 |
EMBL_dump_info CC_line "arrange for a small overlap between neighbouring submissions.\n" |
| 237 |
EMBL_dump_info source_organism "Caenorhabditis elegans" |
| 238 |
|
| 239 |
Paper seq-paper-2 |
| 240 |
Title "2.2 Mb of contiguous nucleotide sequence from chromosome III of C. elegans" |
| 241 |
Journal Nature |
| 242 |
Volume 368 |
| 243 |
Page 32 38 |
| 244 |
Year 1994 |
| 245 |
Author "Wilson R" |
| 246 |
Author "Ainscough R" |
| 247 |
|
| 248 |
Map Sequence-I |
| 249 |
EMBL_chromosome I |
| 250 |
|
| 251 |
Map Sequence-II |
| 252 |
EMBL_chromosome II |
| 253 |
|
| 254 |
Sequence AH6 |
| 255 |
EMBL_dump_info EMBL_dump_method worm_EMBL-dump |
| 256 |
</pre> |
| 257 |
Note the "\n" at the end of comment lines to have them followed by |
| 258 |
blank lines. |
| 259 |
|
| 260 |
<H2> Example giface script </H2> |
| 261 |
<pre> |
| 262 |
giface <<EOF |
| 263 |
acedb> find sequence AH6 |
| 264 |
acedb> gif |
| 265 |
acedb-gif> embl ah6 |
| 266 |
acedb-gif> quit |
| 267 |
acedb> quit |
| 268 |
EOF |
| 269 |
</pre> |
| 270 |
<H2> Example Output </H2> |
| 271 |
<pre> |
| 272 |
ID CEAH6 standard; DNA; INV; 37801 BP. |
| 273 |
XX |
| 274 |
AC Z48009; |
| 275 |
XX |
| 276 |
KW Zinc finger; Transposon; Guanylate cyclase. |
| 277 |
XX |
| 278 |
OS Caenorhabditis elegans (nematode) |
| 279 |
OS Eukaryota; Animalia; Metazoa; Nematoda; Secernentea; Rhabditia; |
| 280 |
XX |
| 281 |
RN [1] |
| 282 |
RP 1-37801 |
| 283 |
RA Berks M.; |
| 284 |
RT ; |
| 285 |
RL Submitted (06-FEB-1995) to the EMBL Data Library by: |
| 286 |
RL Nematode Sequencing Project, Sanger Centre, Hinxton, Cambridge |
| 287 |
RL CB10 1RQ, England and Department of Genetics, Washington |
| 288 |
RL University, St. Louis, MO 63110, USA. |
| 289 |
RL E-mail: [email protected] or [email protected] |
| 290 |
XX |
| 291 |
RN [2] |
| 292 |
RA Wilson R., Ainscough R., Anderson K., Baynes C., Berks M., |
| 293 |
RA Bonfield J., Burton J., Connell M., Copsey T., Cooper J., |
| 294 |
RA Coulson A., Craxton M., Dear S., Du Z., Durbin R., Favello A., |
| 295 |
RA Fulton L., Gardner A., Green P., Hawkins T., Hillier L., Jier M., |
| 296 |
RA Johnston L., Jones M., Kershaw J., Kirsten J., Laister N., |
| 297 |
RA Latreille P., Lightning J., Lloyd C., McMurray A., Mortimore B., |
| 298 |
RA O'Callaghan M., Parsons J., Percy C., Rifken L., Roopra A., |
| 299 |
RA Saunders D., Shownkeen R., Smaldon N., Smith A., Sonnhammer E., |
| 300 |
RA Staden R., Sulston J., Thierry-Mieg J., Thomas K., Vaudin M., |
| 301 |
RA Vaughan K., Waterston R., Watson A., Weinstock L., |
| 302 |
RA Wilkinson-Sproat J., Wohldman P.; |
| 303 |
RT "2.2 Mb of contiguous nucleotide sequence from chromosome III of |
| 304 |
RT C. elegans"; |
| 305 |
RL Nature 368:32-38 (1994). |
| 306 |
XX |
| 307 |
CC Current sequence finishing criteria for the C. elegans genome |
| 308 |
CC sequencing consortium are that all bases are either sequenced |
| 309 |
CC unambiguously on both strands, or on a single strand with both |
| 310 |
CC a dye primer and dye terminator reaction, from distinct |
| 311 |
CC subclones. Exceptions are indicated by an explicit note. |
| 312 |
CC |
| 313 |
CC Coding sequences below are predicted from computer analysis, |
| 314 |
CC using predictions from Genefinder (P. Green, U. Washington), |
| 315 |
CC and other available information. |
| 316 |
CC |
| 317 |
CC IMPORTANT: This sequence is NOT necessarily the entire insert |
| 318 |
CC of the specified clone. It may be shorter because we only |
| 319 |
CC sequence overlapping sections once, or longer because we |
| 320 |
CC arrange for a small overlap between neighbouring submissions. |
| 321 |
CC |
| 322 |
CC The true left end of clone AH6 is at 1 in this sequence. |
| 323 |
CC The true right end of clone AH6 is at 3246 in |
| 324 |
CC sequence Z36752. |
| 325 |
CC The true left end of clone F35H8 is at 37686 in this sequence. |
| 326 |
CC The true right end of clone R134 is at 30025 in this sequence. |
| 327 |
CC The start of this sequence (1..101) overlaps with the end of |
| 328 |
CC sequence Z48007. |
| 329 |
CC The end of this sequence (37686..37801) overlaps with the start of |
| 330 |
CC sequence Z36752. |
| 331 |
XX |
| 332 |
FH Key Location/Qualifiers |
| 333 |
FH |
| 334 |
FT source 1..37801 |
| 335 |
FT /organism="Caenorhabditis elegans" |
| 336 |
FT /clone="AH6" |
| 337 |
FT /chromosome="II" |
| 338 |
FT CDS complement(join(5054..5310,5380..5507,5551..5636, |
| 339 |
FT 5683..5904,5960..6180,6233..6308)) |
| 340 |
FT /product="AH6.2" |
| 341 |
FT CDS join(6579..6638,6872..7051,7096..7416,7464..7595) |
| 342 |
FT /product="AH6.3" |
| 343 |
FT CDS complement(join(7727..7885,7935..8121,8174..8446, |
| 344 |
FT 8499..8644,8872..9102)) |
| 345 |
FT /product="AH6.4" |
| 346 |
FT /gene="sra-1" |
| 347 |
FT CDS join(11523..11741,11789..12303,12357..12681, |
| 348 |
FT 12731..12871,12923..13059,13109..13307) |
| 349 |
FT /product="AH6.5" |
| 350 |
FT /note="similar to zinc finger protein" |
| 351 |
FT /note="cDNA EST yk38b2.3 comes from this gene" |
| 352 |
FT /note="cDNA EST yk38b2.5 comes from this gene" |
| 353 |
FT /note="cDNA EST yk45f12.5 comes from this gene" |
| 354 |
FT CDS complement(join(29091..29243,29290..29476,29667..30316)) |
| 355 |
FT /product="AH6.8" |
| 356 |
FT /gene="sra-4" |
| 357 |
FT CDS complement(join(33869..34021,34183..34375,34425..34816)) |
| 358 |
FT /product="AH6.9" |
| 359 |
FT /gene="sra-5" |
| 360 |
FT CDS join(32117..32766,33253..33439,33487..33639) |
| 361 |
FT /product="AH6.11" |
| 362 |
FT /gene="sra-7" |
| 363 |
FT CDS join(17948..18189,18299..18441,18532..18617) |
| 364 |
FT /product="AH6.13" |
| 365 |
FT CDS join(19742..20391,20445..20637,21068..21220) |
| 366 |
FT /product="AH6.14" |
| 367 |
FT /gene="sra-9" |
| 368 |
FT CDS complement(join(36041..36193,36247..36433,36481..37130)) |
| 369 |
FT /product="AH6.10" |
| 370 |
FT /gene="sra-6" |
| 371 |
FT CDS join(16211..16860,16906..17092,17141..17293) |
| 372 |
FT /product="AH6.6" |
| 373 |
FT /gene="sra-2" |
| 374 |
FT CDS join(25160..25809,26063..26249,26301..26453) |
| 375 |
FT /product="AH6.12" |
| 376 |
FT /gene="sra-8" |
| 377 |
FT CDS complement(join(26752..26904,26982..27168,27605..28254)) |
| 378 |
FT /product="AH6.7" |
| 379 |
FT /gene="sra-3" |
| 380 |
FT CDS complement(21569..24025) |
| 381 |
FT /product="AH6.15" |
| 382 |
FT /pseudo |
| 383 |
FT /note="probably a transposon" |
| 384 |
FT CDS 14448..15525 |
| 385 |
FT /product="AH6.16" |
| 386 |
FT /pseudo |
| 387 |
FT CDS complement(join(Z48007:14051..Z48007:14230,102..337, |
| 388 |
FT 397..500,544..951,1002..1179,1226..1526,1579..2235, |
| 389 |
FT 2288..2418,2483..2621,2672..2797,2851..2948,2999..3151, |
| 390 |
FT 3195..3424,3469..3711,3996..4126,4270..4368)) |
| 391 |
FT /product="AH6.1" |
| 392 |
FT /note="similar to guanylate cyclase" |
| 393 |
XX |
| 394 |
SQ Sequence 37801 BP; 12255 A; 6407 C; 6368 G; 12771 T; 0 other; |
| 395 |
ccatgagagc ttgatggatt tggaatccat ctatcgttgg ttactggtgg tgttgaccga |
| 396 |
ttactaatgc ttcttaactc ggttggttcc atttcaccaa atctgccgtg cacccaaaat |
| 397 |
gtttccataa ctccttttcc ttttataatt acttctcctc gggaactcgt ttcgtattga |
| 398 |
</pre> |
| 399 |
|
| 400 |
<HR WIDTH=100%> |
| 401 |
|
| 402 |
<H4> Richard Durbin $Id: embl.doc.html,v 1.6 1999/01/25 16:53:25 edgrif Exp $ </H4> |
| 403 |
|
| 404 |
</body> |
| 405 |
</html> |
| 406 |
|