seqsplit.asn
上传用户:yhdzpy8989
上传日期:2007-06-13
资源大小:13604k
文件大小:4k
源码类别:

生物技术

开发平台:

C/C++

  1. --$Revision: 1000.1 $
  2. --********************************************************************
  3. --
  4. --  Network Id server network access
  5. --  Vasilchenko 2003
  6. --
  7. --
  8. --*********************************************************************
  9. --
  10. --  ID2.asn
  11. --
  12. --     messages for id server network access
  13. --
  14. --*********************************************************************
  15. NCBI-Seq-split DEFINITIONS ::=
  16. BEGIN
  17. EXPORTS ID2S-Chunk-Id, ID2S-Seq-annot-Info;
  18. IMPORTS Seq-loc                                 FROM NCBI-Seqloc
  19.         Seq-annot, Seq-descr, Seq-literal       FROM NCBI-Sequence
  20.         Seq-align                               FROM NCBI-Seqalign;
  21. ----------------------------------------------------------------------------
  22. -- Blob split info types
  23. ----------------------------------------------------------------------------
  24. ID2S-Split-Info ::= SEQUENCE {
  25.         bioseqs-info    SET OF ID2S-Bioseqs-Info OPTIONAL,
  26.         chunks          SET OF ID2S-Chunk-Info
  27. }
  28. ID2S-Bioseqs-Info ::= SEQUENCE {
  29.         info            ID2S-Bioseq-Info,
  30.         bioseqs         ID2-Id-Range
  31. }
  32. ID2S-Bioseq-Info ::= SEQUENCE {
  33.         gap-count       INTEGER OPTIONAL,
  34.         seq-map-has-ref BOOLEAN OPTIONAL,
  35.         sequence-split  ID2S-Sequence-Split-Info OPTIONAL
  36. }
  37. ID2S-Sequence-Split-Info ::= SEQUENCE {
  38.         block-size      INTEGER,
  39.         chunk-start     ID2S-Chunk-Id,
  40.         chunk-blocks    SEQUENCE OF INTEGER
  41. }
  42. ID2S-Chunk-Info ::= SEQUENCE {
  43.         id              ID2S-Chunk-Id,
  44.         content         SET OF ID2S-Chunk-Content
  45. }
  46. ID2S-Chunk-Content ::= CHOICE {
  47.         seq-descr       ID2S-Seq-descr-Info,
  48.         seq-annot       ID2S-Seq-annot-Info,
  49.         seq-assembly    ID2S-Seq-assembly-Info,
  50.         seq-map         ID2S-Seq-map-Info,
  51.         seq-data        ID2S-Seq-data-Info,
  52.         seq-annot-place ID2S-Seq-annot-place-Info
  53. }
  54. ID2S-Seq-descr-Info ::= SEQUENCE {
  55.         type-mask       INTEGER, -- mask of Seq-descr types,
  56.         bioseqs         SET OF ID2-Id-Range OPTIONAL,
  57.         bioseq-sets     SET OF ID2-Id-Range OPTIONAL
  58. }
  59. ID2S-Seq-annot-Info ::= SEQUENCE {
  60.         -- name is set if this is named annot
  61.         -- name may be empty which differ from unnamed annot
  62.         name            VisibleString OPTIONAL,
  63.         align           NULL OPTIONAL,
  64.         graph           NULL OPTIONAL,
  65.         feat            SET OF ID2S-Feat-type-Info OPTIONAL,
  66.         seq-loc         ID2-Seq-loc OPTIONAL
  67. }
  68. ID2S-Seq-annot-place-Info ::= SEQUENCE {
  69.         name            VisibleString OPTIONAL,
  70.         bioseqs         SET OF ID2-Id-Range OPTIONAL,
  71.         bioseq-sets     SET OF ID2-Id-Range OPTIONAL
  72. }
  73. ID2S-Feat-type-Info ::=  SEQUENCE {
  74.         type            INTEGER,
  75.         subtypes        SET OF INTEGER OPTIONAL
  76. }
  77. ID2S-Seq-assembly-Info ::= SEQUENCE {
  78.         bioseqs         SET OF ID2-Id-Range
  79. }
  80. ID2S-Seq-map-Info ::= ID2-Seq-loc
  81. ID2S-Seq-data-Info ::= ID2-Seq-loc
  82. ID2S-Chunk ::= SEQUENCE {
  83.         data            SET OF ID2S-Chunk-Data
  84. }
  85. ID2S-Chunk-Data ::= SEQUENCE {
  86.         id              CHOICE {
  87.                 bioseq-set      INTEGER,
  88.                 gi              INTEGER
  89.         },
  90.         descrs          SET OF Seq-descr OPTIONAL,
  91.         annots          SET OF Seq-annot OPTIONAL,
  92.         assembly        SET OF Seq-align OPTIONAL,
  93.         seq-map         SEQUENCE OF Seq-literal OPTIONAL,
  94.         seq-data        SEQUENCE OF Seq-literal OPTIONAL
  95. }
  96. ----------------------------------------------------------------------------
  97. -- utility types
  98. ----------------------------------------------------------------------------
  99. ID2S-Chunk-Id ::= INTEGER
  100. ID2-Id-Range ::= SEQUENCE {
  101.         start           INTEGER,  -- gi for Bioseq, local id for Bioseq-set
  102.         count           INTEGER DEFAULT 1
  103. }
  104. ID2-Seq-loc ::= CHOICE {
  105.         gi-whole        INTEGER,
  106.         interval        ID2-Interval,
  107.         packed-ints     ID2-Packed-Seq-ints,
  108.         gi-whole-range  ID2-Id-Range,
  109.         loc-set         SET OF ID2-Seq-loc,
  110.         seq-loc         Seq-loc
  111. }
  112. ID2-Interval ::= SEQUENCE {
  113.         gi              INTEGER,
  114.         start           INTEGER,
  115.         length          INTEGER DEFAULT 1
  116. }
  117. ID2-Seq-range ::= SEQUENCE {
  118.         start           INTEGER,
  119.         length          INTEGER DEFAULT 1
  120. }
  121. ID2-Packed-Seq-ints ::= SEQUENCE {
  122.         gi              INTEGER,
  123.         intervals       SET OF ID2-Seq-range
  124. }
  125. END