| 1 |
<HTML> |
| 2 |
|
| 3 |
<HEAD> |
| 4 |
|
| 5 |
<TITLE> ACEDB source code documentation: EMBL/Genbank into ACEDB </TITLE> |
| 6 |
|
| 7 |
<LINK rel=stylesheet type="text/css" |
| 8 |
href="./wdoc.css" |
| 9 |
title="Style sheet for wdoc developer documents"> |
| 10 |
|
| 11 |
</HEAD> |
| 12 |
|
| 13 |
<BODY> |
| 14 |
|
| 15 |
<H1>Spec for translating EMBL/Genbank entries to ACEDB 4 objects</H1> |
| 16 |
|
| 17 |
<PRE> |
| 18 |
|
| 19 |
Goal is to hand-edit NOTHING |
| 20 |
|
| 21 |
Name of object is EM:acc_no |
| 22 |
|
| 23 |
DNA sequence -> DNA object of same name |
| 24 |
|
| 25 |
Database EMBL ID_name Acc_no |
| 26 |
|
| 27 |
Upper region mapping: |
| 28 |
--------------------- |
| 29 |
|
| 30 |
DE -> Title |
| 31 |
DT -> Date DateType Text |
| 32 |
Text is info on what done |
| 33 |
(*) KW, split on ';' -> Keyword |
| 34 |
Ian also splits DE and adds to Keyword. Then remove junk |
| 35 |
words and look by hand (now). |
| 36 |
(*) CC -> DB_remark |
| 37 |
|
| 38 |
cDNA_EST from division on title line |
| 39 |
|
| 40 |
Locus: we scan DE, KW, CC for worm gene name structure, then hand edit |
| 41 |
For human can get this from GDB. |
| 42 |
|
| 43 |
References: |
| 44 |
----------- |
| 45 |
|
| 46 |
use getz: EMBL -> Medline |
| 47 |
|
| 48 |
Feature table: |
| 49 |
-------------- |
| 50 |
|
| 51 |
Map the following to Subsequence objects, called {Name}.{feature}.1, |
| 52 |
etc. all direct first generation children of the main object. |
| 53 |
Following each are instructions on tags to be set in the subobject, |
| 54 |
including mapping some qualifiers. |
| 55 |
|
| 56 |
CDS if /pseudo then set Pseudogene |
| 57 |
else set CDS |
| 58 |
/codon_start=x -> CDS x |
| 59 |
misc_RNA set Transcript |
| 60 |
mRNA set mRNA |
| 61 |
prim_transcript set Unprocessed_mRNA |
| 62 |
rRNA set rRNA |
| 63 |
/product=x -> rRNA x |
| 64 |
scRNA set scRNA |
| 65 |
/product=x -> scRNA x |
| 66 |
snRNA set snRNA |
| 67 |
/product=x -> snRNA x |
| 68 |
tRNA set tRNA |
| 69 |
/anticodon=(pos:x,aa:y) -> tRNA y |
| 70 |
|
| 71 |
General qualifier mapping: |
| 72 |
/gene -> Locus |
| 73 |
(*) /note=x -> DB_remark "Note:x" |
| 74 |
(*) /product -> DB_remark "Product:x" |
| 75 |
(*) /gdb_xref=x -> Database GDB x |
| 76 |
?Look at this - maybe just report to log file |
| 77 |
in a distinct form another script can pull out. |
| 78 |
|
| 79 |
Location mapping: |
| 80 |
If position starts with '<', then set Start_not_found. |
| 81 |
If position ends with '>', then set End_not_found. |
| 82 |
Map join() to Source_exons. |
| 83 |
|
| 84 |
All other Features get mapped to EMBL_feature, except: |
| 85 |
|
| 86 |
Exon, Intron, if spanned by any Subsequence. |
| 87 |
Source, but perhaps /Clone=x -> DB_remark "Clone:x", |
| 88 |
and similarly for Tissue_type, etc. (*) |
| 89 |
|
| 90 |
General rules for feature locations: |
| 91 |
For EMBL_feature |
| 92 |
(x..y) = a range, take the outside value, i.e. the one that |
| 93 |
makes the feature longest. |
| 94 |
U05316:1745..2396 really need to make a correctly ordered LINK object |
| 95 |
and then propagate the Subsequence to be a subsequence of this |
| 96 |
link. Very messy. Write message to log file, process by hand. |
| 97 |
|
| 98 |
<PRE> |
| 99 |
|
| 100 |
|
| 101 |
|
| 102 |
</BODY> |
| 103 |
</HTML> |