File: NCBI_BlastOutput2.mod.xsd

package info (click to toggle)
python-biopython 1.85%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 126,372 kB
  • sloc: xml: 1,047,995; python: 332,722; ansic: 16,944; sql: 1,208; makefile: 140; sh: 81
file content (360 lines) | stat: -rw-r--r-- 12,059 bytes parent folder | download
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
<?xml version="1.0" ?>
<!-- ============================================
     ::DATATOOL:: Generated from "blastxml2.asn"
     ::DATATOOL:: by application DATATOOL version 2.4.4
     ::DATATOOL:: on 09/23/2015 23:04:21
     ============================================ -->

<xs:schema
  xmlns:xs="http://www.w3.org/2001/XMLSchema"
  xmlns:ncbi="http://www.ncbi.nlm.nih.gov"
  xmlns="http://www.ncbi.nlm.nih.gov"
  targetNamespace="http://www.ncbi.nlm.nih.gov"
  elementFormDefault="qualified"
  attributeFormDefault="unqualified">

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


<xs:element name="BlastOutput2">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="report" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Report"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="error" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Err"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="BlastXML2">
  <xs:complexType>
    <xs:sequence minOccurs="0" maxOccurs="unbounded">
      <xs:element ref="BlastOutput2"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Report">
  <xs:complexType>
    <xs:sequence>
<!-- BLAST program: blastp, tblastx etc. -->
      <xs:element name="program" type="xs:string"/>
<!-- Program version  -->
      <xs:element name="version" type="xs:string"/>
<!-- Steven, David, Tom and others -->
      <xs:element name="reference" type="xs:string"/>
      <xs:element name="search-target">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Target"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!-- search parameters -->
      <xs:element name="params">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Parameters"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
      <xs:element name="results">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Results"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Err">
  <xs:complexType>
    <xs:sequence>
      <xs:element name="code" type="xs:integer"/>
      <xs:element name="message" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Target">
  <xs:complexType>
    <xs:choice>
<!-- BLAST Database name -->
      <xs:element name="db" type="xs:string"/>
<!-- Subject IDs -->
      <xs:element name="subjects" type="xs:string" maxOccurs="unbounded"/>
    </xs:choice>
  </xs:complexType>
</xs:element>

<xs:element name="Results">
  <xs:complexType>
    <xs:choice>
      <xs:element name="iterations">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="Iteration"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!--
  iterative search (psi and delta blast)
  db search   
-->
      <xs:element name="search">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Search"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!--  bl2seq -->
      <xs:element name="bl2seq">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="Search"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:choice>
  </xs:complexType>
</xs:element>

<xs:element name="Iteration">
  <xs:complexType>
    <xs:sequence>
<!-- iteration number (use with psiblast) -->
      <xs:element name="iter-num" type="xs:integer"/>
      <xs:element name="search">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Search"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Search">
  <xs:complexType>
    <xs:sequence>
<!-- SeqId of query -->
      <xs:element name="query-id" type="xs:string" minOccurs="0"/>
<!-- Definition line of query -->
      <xs:element name="query-title" type="xs:string" minOccurs="0"/>
<!-- length of query sequence -->
      <xs:element name="query-len" type="xs:integer" minOccurs="0"/>
<!-- Masked offsets. -->
      <xs:element name="query-masking" minOccurs="0">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="Range"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!-- Hits one for every db sequence -->
      <xs:element name="hits" minOccurs="0">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="Hit"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!-- search statistics             -->
      <xs:element name="stat" minOccurs="0">
        <xs:complexType>
          <xs:sequence>
            <xs:element ref="Statistics"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!-- Some (error?) information -->
      <xs:element name="message" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Parameters">
  <xs:complexType>
    <xs:sequence>
<!-- Matrix used (-M) -->
      <xs:element name="matrix" type="xs:string" minOccurs="0"/>
<!-- Expectation threshold (-e) -->
      <xs:element name="expect" type="xs:double"/>
<!-- Inclusion threshold (-h) -->
      <xs:element name="include" type="xs:double" minOccurs="0"/>
<!-- match score for NT (-r) -->
      <xs:element name="sc-match" type="xs:integer" minOccurs="0"/>
<!-- mismatch score for NT (-q) -->
      <xs:element name="sc-mismatch" type="xs:integer" minOccurs="0"/>
<!-- Gap opening cost (-G) -->
      <xs:element name="gap-open" type="xs:integer" minOccurs="0"/>
<!-- Gap extension cost (-E) -->
      <xs:element name="gap-extend" type="xs:integer" minOccurs="0"/>
<!-- Filtering options (-F) -->
      <xs:element name="filter" type="xs:string" minOccurs="0"/>
<!-- PHI-BLAST pattern -->
      <xs:element name="pattern" type="xs:string" minOccurs="0"/>
<!-- Limit of request to Entrez query -->
      <xs:element name="entrez-query" type="xs:string" minOccurs="0"/>
<!--
 composition-based stats (numbers correspond to
 numbering in stand-alone application parameter -comp_based_stats).
-->
      <xs:element name="cbs" type="xs:integer" minOccurs="0"/>
<!-- genetic code for query (blastx or tblastx) -->
      <xs:element name="query-gencode" type="xs:integer" minOccurs="0"/>
<!-- genetic code for db or subjects (tblastn or tblastx) -->
      <xs:element name="db-gencode" type="xs:integer" minOccurs="0"/>
<!-- bl2seq mode  -->
      <xs:element name="bl2seq-mode" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<!-- Used to specify start/stop of masking on query. -->
<xs:element name="Range">
  <xs:complexType>
    <xs:sequence>
<!-- Beginning of masked range (one-offset) -->
      <xs:element name="from" type="xs:integer"/>
<!-- End of masked range (one-offset) -->
      <xs:element name="to" type="xs:integer"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Statistics">
  <xs:complexType>
    <xs:sequence>
<!-- Number of sequences in BLAST db -->
      <xs:element name="db-num" type="xs:long" minOccurs="0"/>
<!-- Length of BLAST db -->
      <xs:element name="db-len" type="xs:long" minOccurs="0"/>
<!-- Effective HSP length -->
      <xs:element name="hsp-len" type="xs:integer"/>
<!-- Effective search space -->
      <xs:element name="eff-space" type="xs:long"/>
<!-- Karlin-Altschul parameter K -->
      <xs:element name="kappa" type="xs:double"/>
<!-- Karlin-Altschul parameter Lambda -->
      <xs:element name="lambda" type="xs:double"/>
<!-- Karlin-Altschul parameter H -->
      <xs:element name="entropy" type="xs:double"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<!-- Description of entries for this (possibly non-redundant) sequence. -->
<xs:element name="HitDescr">
  <xs:complexType>
    <xs:sequence>
<!-- SeqId of subject -->
      <xs:element name="id" type="xs:string"/>
<!-- accession -->
      <xs:element name="accession" type="xs:string" minOccurs="0"/>
<!-- title (definition line) of subject -->
      <xs:element name="title" type="xs:string" minOccurs="0"/>
<!-- NCBI taxid (9606 for human) -->
      <xs:element name="taxid" type="xs:integer" minOccurs="0"/>
<!-- binomial scientific name ("Homo sapiens" for human).   -->
      <xs:element name="sciname" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Hit">
  <xs:complexType>
    <xs:sequence>
<!-- hit number -->
      <xs:element name="num" type="xs:integer"/>
<!-- ID, title, and taxonomy for each entry in the PIG -->
      <xs:element name="description">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="HitDescr"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
<!-- length of subject -->
      <xs:element name="len" type="xs:integer"/>
<!-- all HSP regions for the given subject -->
      <xs:element name="hsps" minOccurs="0">
        <xs:complexType>
          <xs:sequence minOccurs="0" maxOccurs="unbounded">
            <xs:element ref="Hsp"/>
          </xs:sequence>
        </xs:complexType>
      </xs:element>
    </xs:sequence>
  </xs:complexType>
</xs:element>

<xs:element name="Hsp">
  <xs:complexType>
    <xs:sequence>
<!-- HSP number -->
      <xs:element name="num" type="xs:integer"/>
<!-- score (in bits) of HSP -->
      <xs:element name="bit-score" type="xs:double"/>
<!-- score of HSP -->
      <xs:element name="score" type="xs:double"/>
<!-- e-value of HSP -->
      <xs:element name="evalue" type="xs:double"/>
<!-- number of identities in HSP -->
      <xs:element name="identity" type="xs:integer" minOccurs="0"/>
<!-- number of positives in HSP -->
      <xs:element name="positive" type="xs:integer" minOccurs="0"/>
<!-- score density -->
      <xs:element name="density" type="xs:integer" minOccurs="0"/>
<!-- start of PHI-BLAST pattern -->
      <xs:element name="pattern-from" type="xs:integer" minOccurs="0"/>
<!-- end of PHI-BLAST pattern -->
      <xs:element name="pattern-to" type="xs:integer" minOccurs="0"/>
<!-- start of HSP in query -->
      <xs:element name="query-from" type="xs:integer"/>
<!-- end of HSP -->
      <xs:element name="query-to" type="xs:integer"/>
<!-- Strand of query (blastn) -->
      <xs:element name="query-strand" type="xs:string" minOccurs="0"/>
<!-- translation frame of query (blastx, tblastx) -->
      <xs:element name="query-frame" type="xs:integer" minOccurs="0"/>
<!-- start of HSP in subject -->
      <xs:element name="hit-from" type="xs:integer"/>
<!-- end of HSP in subject -->
      <xs:element name="hit-to" type="xs:integer"/>
<!-- Strand of subject (blastn) -->
      <xs:element name="hit-strand" type="xs:string" minOccurs="0"/>
<!-- translation frame of subject (tblastn, tblastx) -->
      <xs:element name="hit-frame" type="xs:integer" minOccurs="0"/>
<!-- length of the alignment used -->
      <xs:element name="align-len" type="xs:integer" minOccurs="0"/>
<!-- number of gaps in HSP -->
      <xs:element name="gaps" type="xs:integer" minOccurs="0"/>
<!-- alignment string for the query (with gaps) -->
      <xs:element name="qseq" type="xs:string"/>
<!-- alignment string for subject (with gaps) -->
      <xs:element name="hseq" type="xs:string"/>
<!-- formating middle line -->
      <xs:element name="midline" type="xs:string" minOccurs="0"/>
    </xs:sequence>
  </xs:complexType>
</xs:element>

</xs:schema>