File: NCBI_Seqalign.mod.dtd

package info (click to toggle)
python-biopython 1.68%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 46,860 kB
  • ctags: 13,237
  • sloc: python: 160,306; xml: 93,216; ansic: 9,118; sql: 1,208; makefile: 155; sh: 63
file content (570 lines) | stat: -rw-r--r-- 15,026 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
<!-- ============================================
     ::DATATOOL:: Generated from "seqalign.asn"
     ::DATATOOL:: by application DATATOOL version 2.4.4
     ::DATATOOL:: on 08/01/2012 23:04:42
     ============================================ -->

<!-- ============================================ -->
<!-- This section is mapped from module "NCBI-Seqalign"
================================================= -->

<!--
$Revision: 370567 $
**********************************************************************

  NCBI Sequence Alignment elements
  by James Ostell, 1990

**********************************************************************
-->

<!-- Elements used by other modules:
          Seq-align,
          Score,
          Score-set,
          Seq-align-set -->

<!-- Elements referenced from other modules:
          Seq-id,
          Seq-loc,
          Na-strand FROM NCBI-Seqloc,
          User-object,
          Object-id FROM NCBI-General -->
<!-- ============================================ -->

<!--
*** Sequence Alignment ********************************
*
-->
<!ELEMENT Seq-align-set (Seq-align*)>


<!ELEMENT Seq-align (
        Seq-align_type, 
        Seq-align_dim?, 
        Seq-align_score?, 
        Seq-align_segs, 
        Seq-align_bounds?, 
        Seq-align_id?, 
        Seq-align_ext?)>

<!ELEMENT Seq-align_type %ENUM;>

<!--
    diags	-  unbroken, but not ordered, diagonals
    partial	-  mapping pieces together
    disc	-  discontinuous alignment
-->
<!ATTLIST Seq-align_type value (
        not-set |
        global |
        diags |
        partial |
        disc |
        other
        ) #REQUIRED >


<!-- dimensionality -->
<!ELEMENT Seq-align_dim (%INTEGER;)>

<!-- for whole alignment -->
<!ELEMENT Seq-align_score (Score*)>
<!-- alignment data -->
<!ELEMENT Seq-align_segs (
        Seq-align_segs_dendiag | 
        Seq-align_segs_denseg | 
        Seq-align_segs_std | 
        Seq-align_segs_packed | 
        Seq-align_segs_disc | 
        Seq-align_segs_spliced | 
        Seq-align_segs_sparse)>

<!ELEMENT Seq-align_segs_dendiag (Dense-diag*)>
<!--
 Dense-seg: the densist packing for sequence alignments only.
            a start of -1 indicates a gap for that sequence of
            length lens.

 id=100  AAGGCCTTTTAGAGATGATGATGATGATGA
 id=200  AAGGCCTTTTAG.......GATGATGATGA
 id=300  ....CCTTTTAGAGATGATGAT....ATGA

 dim = 3, numseg = 6, ids = { 100, 200, 300 }
 starts = { 0,0,-1, 4,4,0, 12,-1,8, 19,12,15, 22,15,-1, 26,19,18 }
 lens = { 4, 8, 7, 3, 4, 4 }

 for (multiway) global or partial alignments
-->
<!ELEMENT Seq-align_segs_denseg (Dense-seg)>

<!ELEMENT Seq-align_segs_std (Std-seg*)>
<!-- for (multiway) global or partial alignments -->
<!ELEMENT Seq-align_segs_packed (Packed-seg)>
<!--
*** Sequence Alignment ********************************
*
-->
<!ELEMENT Seq-align_segs_disc (Seq-align-set)>

<!ELEMENT Seq-align_segs_spliced (Spliced-seg)>
<!--
 ==========================================================================

 Sparse-seg follows the semantics of dense-seg and is more optimal for
 representing sparse multiple alignments

 ==========================================================================
-->
<!ELEMENT Seq-align_segs_sparse (Sparse-seg)>

<!--
 regions of sequence over which align
  was computed
-->
<!ELEMENT Seq-align_bounds (Seq-loc*)>

<!-- alignment id -->
<!ELEMENT Seq-align_id (Object-id*)>

<!--extra info -->
<!ELEMENT Seq-align_ext (User-object*)>

<!-- for (multiway) diagonals -->
<!ELEMENT Dense-diag (
        Dense-diag_dim?, 
        Dense-diag_ids, 
        Dense-diag_starts, 
        Dense-diag_len, 
        Dense-diag_strands?, 
        Dense-diag_scores?)>

<!-- dimensionality -->
<!ELEMENT Dense-diag_dim (%INTEGER;)>

<!-- sequences in order -->
<!ELEMENT Dense-diag_ids (Seq-id*)>

<!-- start OFFSETS in ids order -->
<!ELEMENT Dense-diag_starts (Dense-diag_starts_E*)>


<!ELEMENT Dense-diag_starts_E (%INTEGER;)>

<!-- len of aligned segments -->
<!ELEMENT Dense-diag_len (%INTEGER;)>

<!ELEMENT Dense-diag_strands (Na-strand*)>

<!ELEMENT Dense-diag_scores (Score*)>

<!--
 Dense-seg: the densist packing for sequence alignments only.
            a start of -1 indicates a gap for that sequence of
            length lens.

 id=100  AAGGCCTTTTAGAGATGATGATGATGATGA
 id=200  AAGGCCTTTTAG.......GATGATGATGA
 id=300  ....CCTTTTAGAGATGATGAT....ATGA

 dim = 3, numseg = 6, ids = { 100, 200, 300 }
 starts = { 0,0,-1, 4,4,0, 12,-1,8, 19,12,15, 22,15,-1, 26,19,18 }
 lens = { 4, 8, 7, 3, 4, 4 }

 for (multiway) global or partial alignments
-->
<!ELEMENT Dense-seg (
        Dense-seg_dim?, 
        Dense-seg_numseg, 
        Dense-seg_ids, 
        Dense-seg_starts, 
        Dense-seg_lens, 
        Dense-seg_strands?, 
        Dense-seg_scores?)>

<!-- dimensionality -->
<!ELEMENT Dense-seg_dim (%INTEGER;)>

<!-- number of segments here -->
<!ELEMENT Dense-seg_numseg (%INTEGER;)>

<!-- sequences in order -->
<!ELEMENT Dense-seg_ids (Seq-id*)>

<!-- start OFFSETS in ids order within segs -->
<!ELEMENT Dense-seg_starts (Dense-seg_starts_E*)>


<!ELEMENT Dense-seg_starts_E (%INTEGER;)>

<!-- lengths in ids order within segs -->
<!ELEMENT Dense-seg_lens (Dense-seg_lens_E*)>


<!ELEMENT Dense-seg_lens_E (%INTEGER;)>

<!ELEMENT Dense-seg_strands (Na-strand*)>

<!-- score for each seg -->
<!ELEMENT Dense-seg_scores (Score*)>

<!-- for (multiway) global or partial alignments -->
<!ELEMENT Packed-seg (
        Packed-seg_dim?, 
        Packed-seg_numseg, 
        Packed-seg_ids, 
        Packed-seg_starts, 
        Packed-seg_present, 
        Packed-seg_lens, 
        Packed-seg_strands?, 
        Packed-seg_scores?)>

<!-- dimensionality -->
<!ELEMENT Packed-seg_dim (%INTEGER;)>

<!-- number of segments here -->
<!ELEMENT Packed-seg_numseg (%INTEGER;)>

<!-- sequences in order -->
<!ELEMENT Packed-seg_ids (Seq-id*)>

<!-- start OFFSETS in ids order for whole alignment -->
<!ELEMENT Packed-seg_starts (Packed-seg_starts_E*)>


<!ELEMENT Packed-seg_starts_E (%INTEGER;)>

<!--
 Boolean if each sequence present or absent in
   each segment
-->
<!ELEMENT Packed-seg_present (%OCTETS;)>

<!-- length of each segment -->
<!ELEMENT Packed-seg_lens (Packed-seg_lens_E*)>


<!ELEMENT Packed-seg_lens_E (%INTEGER;)>

<!ELEMENT Packed-seg_strands (Na-strand*)>

<!-- score for each segment -->
<!ELEMENT Packed-seg_scores (Score*)>


<!ELEMENT Std-seg (
        Std-seg_dim?, 
        Std-seg_ids?, 
        Std-seg_loc, 
        Std-seg_scores?)>

<!-- dimensionality -->
<!ELEMENT Std-seg_dim (%INTEGER;)>

<!ELEMENT Std-seg_ids (Seq-id*)>

<!ELEMENT Std-seg_loc (Seq-loc*)>

<!ELEMENT Std-seg_scores (Score*)>


<!ELEMENT Spliced-seg (
        Spliced-seg_product-id?, 
        Spliced-seg_genomic-id?, 
        Spliced-seg_product-strand?, 
        Spliced-seg_genomic-strand?, 
        Spliced-seg_product-type, 
        Spliced-seg_exons, 
        Spliced-seg_poly-a?, 
        Spliced-seg_product-length?, 
        Spliced-seg_modifiers?)>

<!-- product is either protein or transcript (cDNA) -->
<!ELEMENT Spliced-seg_product-id (Seq-id)>

<!ELEMENT Spliced-seg_genomic-id (Seq-id)>

<!-- should be 'plus' or 'minus' -->
<!ELEMENT Spliced-seg_product-strand (Na-strand)>

<!ELEMENT Spliced-seg_genomic-strand (Na-strand)>

<!ELEMENT Spliced-seg_product-type %ENUM;>
<!ATTLIST Spliced-seg_product-type value (
        transcript |
        protein
        ) #REQUIRED >


<!--
 set of segments involved
 each segment corresponds to one exon
 exons are always in biological order
-->
<!ELEMENT Spliced-seg_exons (Spliced-exon*)>

<!--
 start of poly(A) tail on the transcript
 For sense transcripts:
   aligned product positions < poly-a <= product-length
   poly-a == product-length indicates inferred poly(A) tail at transcript's end
 For antisense transcripts:
   -1 <= poly-a < aligned product positions
   poly-a == -1 indicates inferred poly(A) tail at transcript's start
-->
<!ELEMENT Spliced-seg_poly-a (%INTEGER;)>

<!--
 length of the product, in bases/residues
 from this (or from poly-a if present), a 3' unaligned length can be extracted
-->
<!ELEMENT Spliced-seg_product-length (%INTEGER;)>

<!--
 alignment descriptors / modifiers
 this provides us a set for extension
-->
<!ELEMENT Spliced-seg_modifiers (Spliced-seg-modifier*)>


<!ELEMENT Spliced-seg-modifier (
        Spliced-seg-modifier_start-codon-found | 
        Spliced-seg-modifier_stop-codon-found)>

<!--
 protein aligns from the start and the first codon 
 on both product and genomic is start codon
-->
<!ELEMENT Spliced-seg-modifier_start-codon-found EMPTY>
<!ATTLIST Spliced-seg-modifier_start-codon-found value ( true | false ) #REQUIRED >


<!--
 protein aligns to it's end and there is stop codon 
 on the genomic right after the alignment
-->
<!ELEMENT Spliced-seg-modifier_stop-codon-found EMPTY>
<!ATTLIST Spliced-seg-modifier_stop-codon-found value ( true | false ) #REQUIRED >


<!--
 complete or partial exon
 two consecutive Spliced-exons may belong to one exon
-->
<!ELEMENT Spliced-exon (
        Spliced-exon_product-start, 
        Spliced-exon_product-end, 
        Spliced-exon_genomic-start, 
        Spliced-exon_genomic-end, 
        Spliced-exon_product-id?, 
        Spliced-exon_genomic-id?, 
        Spliced-exon_product-strand?, 
        Spliced-exon_genomic-strand?, 
        Spliced-exon_parts?, 
        Spliced-exon_scores?, 
        Spliced-exon_acceptor-before-exon?, 
        Spliced-exon_donor-after-exon?, 
        Spliced-exon_partial?, 
        Spliced-exon_ext?)>

<!-- product-end >= product-start -->
<!ELEMENT Spliced-exon_product-start (Product-pos)>

<!ELEMENT Spliced-exon_product-end (Product-pos)>

<!-- genomic-end >= genomic-start -->
<!ELEMENT Spliced-exon_genomic-start (%INTEGER;)>

<!ELEMENT Spliced-exon_genomic-end (%INTEGER;)>

<!-- product is either protein or transcript (cDNA) -->
<!ELEMENT Spliced-exon_product-id (Seq-id)>

<!ELEMENT Spliced-exon_genomic-id (Seq-id)>

<!-- should be 'plus' or 'minus' -->
<!ELEMENT Spliced-exon_product-strand (Na-strand)>

<!-- genomic-strand represents the strand of translation -->
<!ELEMENT Spliced-exon_genomic-strand (Na-strand)>

<!-- basic seqments always are in biologic order -->
<!ELEMENT Spliced-exon_parts (Spliced-exon-chunk*)>

<!-- scores for this exon -->
<!ELEMENT Spliced-exon_scores (Score-set)>

<!-- splice sites -->
<!ELEMENT Spliced-exon_acceptor-before-exon (Splice-site)>
<!-- site involved in splice -->
<!ELEMENT Spliced-exon_donor-after-exon (Splice-site)>

<!-- flag: is this exon complete or partial? -->
<!ELEMENT Spliced-exon_partial EMPTY>
<!ATTLIST Spliced-exon_partial value ( true | false ) #REQUIRED >


<!--extra info -->
<!ELEMENT Spliced-exon_ext (User-object*)>


<!ELEMENT Product-pos (
        Product-pos_nucpos | 
        Product-pos_protpos)>

<!ELEMENT Product-pos_nucpos (%INTEGER;)>
<!-- position on protein (1/3 of amino-acid resolution) -->
<!ELEMENT Product-pos_protpos (Prot-pos)>

<!-- position on protein (1/3 of amino-acid resolution) -->
<!ELEMENT Prot-pos (
        Prot-pos_amin, 
        Prot-pos_frame?)>

<!-- amino-acid position (0-based) -->
<!ELEMENT Prot-pos_amin (%INTEGER;)>

<!--
 position within codon (1-based)
 0 = not set (meaning 1)
-->
<!ELEMENT Prot-pos_frame (%INTEGER;)>

<!--
 Spliced-exon-chunk: piece of an exon
 lengths are given in nucleotide bases (1/3 of aminoacid when product is a
 protein)
-->
<!ELEMENT Spliced-exon-chunk (
        Spliced-exon-chunk_match | 
        Spliced-exon-chunk_mismatch | 
        Spliced-exon-chunk_diag | 
        Spliced-exon-chunk_product-ins | 
        Spliced-exon-chunk_genomic-ins)>

<!-- both sequences represented, product and genomic sequences match -->
<!ELEMENT Spliced-exon-chunk_match (%INTEGER;)>

<!-- both sequences represented, product and genomic sequences do not match -->
<!ELEMENT Spliced-exon-chunk_mismatch (%INTEGER;)>

<!--
 both sequences are represented, there is sufficient similarity 
 between product and genomic sequences. Can be used to replace stretches
 of matches and mismatches, mostly for protein to genomic where 
 definition of match or mismatch depends on translation table
-->
<!ELEMENT Spliced-exon-chunk_diag (%INTEGER;)>

<!-- insertion in product sequence (i.e. gap in the genomic sequence) -->
<!ELEMENT Spliced-exon-chunk_product-ins (%INTEGER;)>

<!-- insertion in genomic sequence (i.e. gap in the product sequence) -->
<!ELEMENT Spliced-exon-chunk_genomic-ins (%INTEGER;)>

<!-- site involved in splice -->
<!ELEMENT Splice-site (
        Splice-site_bases)>

<!--
 typically two bases in the intronic region, always
 in IUPAC format
-->
<!ELEMENT Splice-site_bases (#PCDATA)>

<!--
 ==========================================================================

 Sparse-seg follows the semantics of dense-seg and is more optimal for
 representing sparse multiple alignments

 ==========================================================================
-->
<!ELEMENT Sparse-seg (
        Sparse-seg_master-id?, 
        Sparse-seg_rows, 
        Sparse-seg_row-scores?, 
        Sparse-seg_ext?)>

<!ELEMENT Sparse-seg_master-id (Seq-id)>

<!-- pairwise alignments constituting this multiple alignment -->
<!ELEMENT Sparse-seg_rows (Sparse-align*)>

<!-- per-row scores -->
<!ELEMENT Sparse-seg_row-scores (Score*)>

<!-- index of extra items -->
<!ELEMENT Sparse-seg_ext (Sparse-seg-ext*)>


<!ELEMENT Sparse-align (
        Sparse-align_first-id, 
        Sparse-align_second-id, 
        Sparse-align_numseg, 
        Sparse-align_first-starts, 
        Sparse-align_second-starts, 
        Sparse-align_lens, 
        Sparse-align_second-strands?, 
        Sparse-align_seg-scores?)>

<!ELEMENT Sparse-align_first-id (Seq-id)>

<!ELEMENT Sparse-align_second-id (Seq-id)>

<!--number of segments -->
<!ELEMENT Sparse-align_numseg (%INTEGER;)>

<!--starts on the first sequence [numseg] -->
<!ELEMENT Sparse-align_first-starts (Sparse-align_first-starts_E*)>


<!ELEMENT Sparse-align_first-starts_E (%INTEGER;)>

<!--starts on the second sequence [numseg] -->
<!ELEMENT Sparse-align_second-starts (Sparse-align_second-starts_E*)>


<!ELEMENT Sparse-align_second-starts_E (%INTEGER;)>

<!--lengths of segments [numseg] -->
<!ELEMENT Sparse-align_lens (Sparse-align_lens_E*)>


<!ELEMENT Sparse-align_lens_E (%INTEGER;)>

<!ELEMENT Sparse-align_second-strands (Na-strand*)>

<!-- per-segment scores -->
<!ELEMENT Sparse-align_seg-scores (Score*)>


<!ELEMENT Sparse-seg-ext (
        Sparse-seg-ext_index)>

<!--
seg-ext SET OF {
    index INTEGER,
    data User-field
 }
-->
<!ELEMENT Sparse-seg-ext_index (%INTEGER;)>

<!-- use of Score is discouraged for external ASN.1 specifications -->
<!ELEMENT Score (
        Score_id?, 
        Score_value)>

<!ELEMENT Score_id (Object-id)>

<!ELEMENT Score_value (
        Score_value_real | 
        Score_value_int)>

<!ELEMENT Score_value_real (%REAL;)>

<!ELEMENT Score_value_int (%INTEGER;)>

<!-- use of Score-set is encouraged for external ASN.1 specifications -->
<!ELEMENT Score-set (Score*)>