biointerchange 0.1.3 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +17 -0
- data/VERSION +1 -1
- data/generators/GOxrefify.rb +41 -0
- data/generators/rdfxml.rb +6 -4
- data/lib/biointerchange/core.rb +94 -20
- data/lib/biointerchange/genomics/gff3_feature_set.rb +11 -3
- data/lib/biointerchange/genomics/gff3_pragmas.rb +3 -3
- data/lib/biointerchange/genomics/gff3_rdf_ntriples.rb +217 -12
- data/lib/biointerchange/genomics/gff3_reader.rb +78 -20
- data/lib/biointerchange/genomics/gvf_reader.rb +9 -3
- data/lib/biointerchange/gff3o.rb +69 -55
- data/lib/biointerchange/goxref.rb +867 -0
- data/lib/biointerchange/gvf1o.rb +546 -82
- data/lib/biointerchange/textmining/text_mining_reader.rb +9 -0
- data/spec/gff3_rdfwriter_spec.rb +1 -1
- data/spec/gvf_rdfwriter_spec.rb +1 -1
- data/spec/text_mining_pdfx_xml_reader_spec.rb +3 -0
- data/spec/text_mining_pubannos_json_reader_spec.rb +4 -1
- data/supplemental/java/biointerchange/pom.xml +1 -1
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GFF3O.java +93 -125
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GVF1O.java +304 -205
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SIO.java +4044 -4290
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SOFA.java +3 -3
- data/supplemental/python/biointerchange/gff3o.py +1 -89
- data/supplemental/python/biointerchange/gvf1o.py +129 -147
- data/supplemental/python/biointerchange/sio.py +817 -46
- data/supplemental/python/biointerchange/sofa.py +543 -543
- data/supplemental/python/setup.py +1 -1
- data/web/ontologies.html +1 -3
- metadata +7 -2
@@ -2947,10 +2947,10 @@ public class SOFA {
|
|
2947
2947
|
}
|
2948
2948
|
|
2949
2949
|
private static Resource _namespace_SOFA(String accession) {
|
2950
|
-
if (isClass(ResourceFactory.createResource("http://purl.obolibrary.org/obo/" + accession))) {
|
2951
|
-
return ResourceFactory.createResource("http://purl.obolibrary.org/obo/" + accession);
|
2950
|
+
if (isClass(ResourceFactory.createResource("http://purl.obolibrary.org/obo/http_//purl.org/obo/" + accession))) {
|
2951
|
+
return ResourceFactory.createResource("http://purl.obolibrary.org/obo/http_//purl.org/obo/" + accession);
|
2952
2952
|
} else {
|
2953
|
-
return ResourceFactory.createProperty("http://purl.obolibrary.org/obo/" + accession);
|
2953
|
+
return ResourceFactory.createProperty("http://purl.obolibrary.org/obo/http_//purl.org/obo/" + accession);
|
2954
2954
|
}
|
2955
2955
|
}
|
2956
2956
|
|
@@ -113,17 +113,6 @@ class GFF3O:
|
|
113
113
|
"""
|
114
114
|
return [ _namespace_GFF3O('GFF3_0044'), _namespace_GFF3O('GFF3_0040') ]
|
115
115
|
|
116
|
-
@classmethod
|
117
|
-
def strand(cls):
|
118
|
-
"""Either:
|
119
|
-
Strand of the feature.
|
120
|
-
(cls, GFF3_0010)
|
121
|
-
Or:
|
122
|
-
Strand of a target -- if applicable.
|
123
|
-
(GFF3_0045)
|
124
|
-
"""
|
125
|
-
return [ _namespace_GFF3O('GFF3_0010'), _namespace_GFF3O('GFF3_0045') ]
|
126
|
-
|
127
116
|
@classmethod
|
128
117
|
def derives_from(cls):
|
129
118
|
"""Describes a temporal relationship between two features, where the object denotes the subjects origin.
|
@@ -131,17 +120,6 @@ class GFF3O:
|
|
131
120
|
"""
|
132
121
|
return _namespace_GFF3O('GFF3_0047')
|
133
122
|
|
134
|
-
@classmethod
|
135
|
-
def region(cls):
|
136
|
-
"""Either:
|
137
|
-
FALDO "Region" instance replacement for a feature's start, stop, strand properties.
|
138
|
-
(cls, GFF3_0021)
|
139
|
-
Or:
|
140
|
-
FALDO "Region" instance replacement for a target's start, stop, strand properties.
|
141
|
-
(GFF3_0050)
|
142
|
-
"""
|
143
|
-
return [ _namespace_GFF3O('GFF3_0021'), _namespace_GFF3O('GFF3_0050') ]
|
144
|
-
|
145
123
|
@classmethod
|
146
124
|
def seqid(cls):
|
147
125
|
"""ID of the landmark that establishes the coordinate system for the current feature.
|
@@ -220,28 +198,6 @@ class GFF3O:
|
|
220
198
|
"""
|
221
199
|
return _namespace_GFF3O('GFF3_0024')
|
222
200
|
|
223
|
-
@classmethod
|
224
|
-
def set_properties(cls):
|
225
|
-
"""Either:
|
226
|
-
Properties that are directly associated with Set class instances.
|
227
|
-
(cls, GFF3_0025)
|
228
|
-
Or:
|
229
|
-
Properties that are directly associated with Set class instances.
|
230
|
-
(GFF3_0027)
|
231
|
-
"""
|
232
|
-
return [ _namespace_GFF3O('GFF3_0025'), _namespace_GFF3O('GFF3_0027') ]
|
233
|
-
|
234
|
-
@classmethod
|
235
|
-
def feature_properties(cls):
|
236
|
-
"""Either:
|
237
|
-
Properties that are directly associated with Feature class instances.
|
238
|
-
(cls, GFF3_0026)
|
239
|
-
Or:
|
240
|
-
Properties that are directly associated with Feature class instances.
|
241
|
-
(GFF3_0028)
|
242
|
-
"""
|
243
|
-
return [ _namespace_GFF3O('GFF3_0026'), _namespace_GFF3O('GFF3_0028') ]
|
244
|
-
|
245
201
|
@classmethod
|
246
202
|
def attribute_properties(cls):
|
247
203
|
"""Properties that are directly associated with Attribute class instances.
|
@@ -274,17 +230,6 @@ class GFF3O:
|
|
274
230
|
"""
|
275
231
|
return _namespace_GFF3O('GFF3_0033')
|
276
232
|
|
277
|
-
@classmethod
|
278
|
-
def name(cls):
|
279
|
-
"""Either:
|
280
|
-
Name of an external database. For example, "dbSNP" or "OMIM".
|
281
|
-
(cls, GFF3_0032)
|
282
|
-
Or:
|
283
|
-
Name of a feature, which can be used for display purposes. The name is not a unique property among features.
|
284
|
-
(GFF3_0036)
|
285
|
-
"""
|
286
|
-
return [ _namespace_GFF3O('GFF3_0032'), _namespace_GFF3O('GFF3_0036') ]
|
287
|
-
|
288
233
|
@classmethod
|
289
234
|
def alias(cls):
|
290
235
|
"""An alternative name for a feature. This can be another descriptive name of a feature, such as a locus name or accession number.
|
@@ -292,17 +237,6 @@ class GFF3O:
|
|
292
237
|
"""
|
293
238
|
return _namespace_GFF3O('GFF3_0037')
|
294
239
|
|
295
|
-
@classmethod
|
296
|
-
def target_properties(cls):
|
297
|
-
"""Either:
|
298
|
-
Properties that are directly associated with Target class instances.
|
299
|
-
(cls, GFF3_0044)
|
300
|
-
Or:
|
301
|
-
Properties that are directly associated with Target class instances.
|
302
|
-
(GFF3_0040)
|
303
|
-
"""
|
304
|
-
return [ _namespace_GFF3O('GFF3_0044'), _namespace_GFF3O('GFF3_0040') ]
|
305
|
-
|
306
240
|
@classmethod
|
307
241
|
def target_id(cls):
|
308
242
|
"""ID or accession of the target alignment.
|
@@ -310,28 +244,6 @@ class GFF3O:
|
|
310
244
|
"""
|
311
245
|
return _namespace_GFF3O('GFF3_0041')
|
312
246
|
|
313
|
-
@classmethod
|
314
|
-
def start(cls):
|
315
|
-
"""Either:
|
316
|
-
Start coordinate of the feature on the seqid landmark.
|
317
|
-
(cls, GFF3_0007)
|
318
|
-
Or:
|
319
|
-
Start coordinate of the target.
|
320
|
-
(GFF3_0042)
|
321
|
-
"""
|
322
|
-
return [ _namespace_GFF3O('GFF3_0007'), _namespace_GFF3O('GFF3_0042') ]
|
323
|
-
|
324
|
-
@classmethod
|
325
|
-
def end(cls):
|
326
|
-
"""Either:
|
327
|
-
End coordinate of the feature on the seqid landmark.
|
328
|
-
(cls, GFF3_0008)
|
329
|
-
Or:
|
330
|
-
End coordinate of the target.
|
331
|
-
(GFF3_0043)
|
332
|
-
"""
|
333
|
-
return [ _namespace_GFF3O('GFF3_0008'), _namespace_GFF3O('GFF3_0043') ]
|
334
|
-
|
335
247
|
@classmethod
|
336
248
|
def gap(cls):
|
337
249
|
"""Gap describing the feature/target alignment if the sequences are not collinear. The formal description of this property has been lost due to a dead link in the GFF3 specification.
|
@@ -577,5 +489,5 @@ class GFF3O:
|
|
577
489
|
return cls.has_parent(cls.__parent_properties[uri], parent)
|
578
490
|
return False
|
579
491
|
|
580
|
-
__parent_properties = { _namespace_GFF3O('GFF3_0010') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0012') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0014') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0015') : _namespace_GFF3O('GFF3_0025') , _namespace_GFF3O('GFF3_0021') : _namespace_GFF3O('
|
492
|
+
__parent_properties = { _namespace_GFF3O('GFF3_0010') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0012') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0014') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0015') : _namespace_GFF3O('GFF3_0025') , _namespace_GFF3O('GFF3_0021') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0023') : _namespace_GFF3O('GFF3_0025') , _namespace_GFF3O('GFF3_0034') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0035') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0039') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0045') : _namespace_GFF3O('GFF3_0044') , _namespace_GFF3O('GFF3_0047') : _namespace_GFF3O('GFF3_0026') , _namespace_GFF3O('GFF3_0050') : _namespace_GFF3O('GFF3_0044') , _namespace_GFF3O('GFF3_0004') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0005') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0006') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0007') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0008') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0009') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0011') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0013') : _namespace_GFF3O('GFF3_0029') , _namespace_GFF3O('GFF3_0022') : _namespace_GFF3O('GFF3_0027') , _namespace_GFF3O('GFF3_0024') : _namespace_GFF3O('GFF3_0027') , _namespace_GFF3O('GFF3_0032') : _namespace_GFF3O('GFF3_0031') , _namespace_GFF3O('GFF3_0033') : _namespace_GFF3O('GFF3_0031') , _namespace_GFF3O('GFF3_0036') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0037') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0041') : _namespace_GFF3O('GFF3_0040') , _namespace_GFF3O('GFF3_0042') : _namespace_GFF3O('GFF3_0040') , _namespace_GFF3O('GFF3_0043') : _namespace_GFF3O('GFF3_0040') , _namespace_GFF3O('GFF3_0046') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0048') : _namespace_GFF3O('GFF3_0028') , _namespace_GFF3O('GFF3_0049') : _namespace_GFF3O('GFF3_0028') }
|
581
493
|
|
@@ -11,10 +11,17 @@ class GVF1O:
|
|
11
11
|
|
12
12
|
@classmethod
|
13
13
|
def strand(cls):
|
14
|
-
"""
|
15
|
-
|
14
|
+
"""Either:
|
15
|
+
Strand of the feature.
|
16
|
+
(cls, GVF1_0010)
|
17
|
+
Or:
|
18
|
+
Strand of the breakpoint.
|
19
|
+
(GVF1_0083)
|
20
|
+
Or:
|
21
|
+
Strand of a target -- if applicable.
|
22
|
+
(GVF1_0091)
|
16
23
|
"""
|
17
|
-
return _namespace_GVF1O('GVF1_0010')
|
24
|
+
return [ _namespace_GVF1O('GVF1_0010'), _namespace_GVF1O('GVF1_0083'), _namespace_GVF1O('GVF1_0091') ]
|
18
25
|
|
19
26
|
@classmethod
|
20
27
|
def attributes(cls):
|
@@ -45,8 +52,11 @@ class GVF1O:
|
|
45
52
|
Or:
|
46
53
|
FALDO "Region" instance replacement for a breakpoint's start, stop, strand properties.
|
47
54
|
(GVF1_0079)
|
55
|
+
Or:
|
56
|
+
FALDO "Region" instance replacement for a target's start, stop, strand properties.
|
57
|
+
(GVF1_0090)
|
48
58
|
"""
|
49
|
-
return [ _namespace_GVF1O('GVF1_0021'), _namespace_GVF1O('GVF1_0079') ]
|
59
|
+
return [ _namespace_GVF1O('GVF1_0021'), _namespace_GVF1O('GVF1_0079'), _namespace_GVF1O('GVF1_0090') ]
|
50
60
|
|
51
61
|
@classmethod
|
52
62
|
def species(cls):
|
@@ -69,6 +79,13 @@ class GVF1O:
|
|
69
79
|
"""
|
70
80
|
return _namespace_GVF1O('GVF1_0036')
|
71
81
|
|
82
|
+
@classmethod
|
83
|
+
def zygosity(cls):
|
84
|
+
"""Zygosity of a variant.
|
85
|
+
(cls, GVF1_0038)
|
86
|
+
"""
|
87
|
+
return _namespace_GVF1O('GVF1_0038')
|
88
|
+
|
72
89
|
@classmethod
|
73
90
|
def effect(cls):
|
74
91
|
"""An effect of a particular feature variant.
|
@@ -195,15 +212,22 @@ class GVF1O:
|
|
195
212
|
return _namespace_GVF1O('GVF1_0078')
|
196
213
|
|
197
214
|
@classmethod
|
198
|
-
def
|
215
|
+
def breakpoint(cls):
|
216
|
+
"""Potential source or destination of zero-length sequence alterations.
|
217
|
+
(cls, GVF1_0080)
|
218
|
+
"""
|
219
|
+
return _namespace_GVF1O('GVF1_0080')
|
220
|
+
|
221
|
+
@classmethod
|
222
|
+
def target_properties(cls):
|
199
223
|
"""Either:
|
200
|
-
|
201
|
-
(cls,
|
224
|
+
Properties that are directly associated with Target class instances.
|
225
|
+
(cls, GVF1_0089)
|
202
226
|
Or:
|
203
|
-
|
204
|
-
(
|
227
|
+
Properties that are directly associated with Target class instances.
|
228
|
+
(GVF1_0092)
|
205
229
|
"""
|
206
|
-
return [ _namespace_GVF1O('
|
230
|
+
return [ _namespace_GVF1O('GVF1_0089'), _namespace_GVF1O('GVF1_0092') ]
|
207
231
|
|
208
232
|
@classmethod
|
209
233
|
def seqid(cls):
|
@@ -241,8 +265,11 @@ class GVF1O:
|
|
241
265
|
Or:
|
242
266
|
Start coordinate of the feature on the seqid landmark.
|
243
267
|
(GVF1_0073)
|
268
|
+
Or:
|
269
|
+
Start coordinate of the target.
|
270
|
+
(GVF1_0094)
|
244
271
|
"""
|
245
|
-
return [ _namespace_GVF1O('GVF1_0007'), _namespace_GVF1O('GVF1_0048'), _namespace_GVF1O('GVF1_0073') ]
|
272
|
+
return [ _namespace_GVF1O('GVF1_0007'), _namespace_GVF1O('GVF1_0048'), _namespace_GVF1O('GVF1_0073'), _namespace_GVF1O('GVF1_0094') ]
|
246
273
|
|
247
274
|
@classmethod
|
248
275
|
def end(cls):
|
@@ -255,8 +282,11 @@ class GVF1O:
|
|
255
282
|
Or:
|
256
283
|
End coordinate of the feature on the seqid landmark.
|
257
284
|
(GVF1_0074)
|
285
|
+
Or:
|
286
|
+
End coordinate of the target.
|
287
|
+
(GVF1_0095)
|
258
288
|
"""
|
259
|
-
return [ _namespace_GVF1O('GVF1_0008'), _namespace_GVF1O('GVF1_0049'), _namespace_GVF1O('GVF1_0074') ]
|
289
|
+
return [ _namespace_GVF1O('GVF1_0008'), _namespace_GVF1O('GVF1_0049'), _namespace_GVF1O('GVF1_0074'), _namespace_GVF1O('GVF1_0095') ]
|
260
290
|
|
261
291
|
@classmethod
|
262
292
|
def score(cls):
|
@@ -273,7 +303,7 @@ class GVF1O:
|
|
273
303
|
return _namespace_GVF1O('GVF1_0013')
|
274
304
|
|
275
305
|
@classmethod
|
276
|
-
def
|
306
|
+
def gvf_version(cls):
|
277
307
|
"""Version of the GVF specification that defines the feature set contents.
|
278
308
|
(cls, GVF1_0022)
|
279
309
|
"""
|
@@ -342,13 +372,6 @@ class GVF1O:
|
|
342
372
|
"""
|
343
373
|
return _namespace_GVF1O('GVF1_0037')
|
344
374
|
|
345
|
-
@classmethod
|
346
|
-
def zygosity(cls):
|
347
|
-
"""Zygosity of a feature locus.
|
348
|
-
(cls, GVF1_0038)
|
349
|
-
"""
|
350
|
-
return _namespace_GVF1O('GVF1_0038')
|
351
|
-
|
352
375
|
@classmethod
|
353
376
|
def variant_freq(cls):
|
354
377
|
"""Frequency of a variant in a population.
|
@@ -356,34 +379,6 @@ class GVF1O:
|
|
356
379
|
"""
|
357
380
|
return _namespace_GVF1O('GVF1_0039')
|
358
381
|
|
359
|
-
@classmethod
|
360
|
-
def start(cls):
|
361
|
-
"""Either:
|
362
|
-
Start coordinate of the feature on the seqid landmark.
|
363
|
-
(cls, GVF1_0007)
|
364
|
-
Or:
|
365
|
-
A coordinate that defines the start of an ambiguous coordinate range.
|
366
|
-
(GVF1_0048)
|
367
|
-
Or:
|
368
|
-
Start coordinate of the feature on the seqid landmark.
|
369
|
-
(GVF1_0073)
|
370
|
-
"""
|
371
|
-
return [ _namespace_GVF1O('GVF1_0007'), _namespace_GVF1O('GVF1_0048'), _namespace_GVF1O('GVF1_0073') ]
|
372
|
-
|
373
|
-
@classmethod
|
374
|
-
def end(cls):
|
375
|
-
"""Either:
|
376
|
-
End coordinate of the feature on the seqid landmark.
|
377
|
-
(cls, GVF1_0008)
|
378
|
-
Or:
|
379
|
-
A coordinate that defines the end of an ambiguous coordinate range.
|
380
|
-
(GVF1_0049)
|
381
|
-
Or:
|
382
|
-
End coordinate of the feature on the seqid landmark.
|
383
|
-
(GVF1_0074)
|
384
|
-
"""
|
385
|
-
return [ _namespace_GVF1O('GVF1_0008'), _namespace_GVF1O('GVF1_0049'), _namespace_GVF1O('GVF1_0074') ]
|
386
|
-
|
387
382
|
@classmethod
|
388
383
|
def phased(cls):
|
389
384
|
"""Unclear from GVF specification.
|
@@ -419,28 +414,6 @@ class GVF1O:
|
|
419
414
|
"""
|
420
415
|
return _namespace_GVF1O('GVF1_0057')
|
421
416
|
|
422
|
-
@classmethod
|
423
|
-
def feature_properties(cls):
|
424
|
-
"""Either:
|
425
|
-
Properties that are directly associated with Feature class instances.
|
426
|
-
(cls, GVF1_0066)
|
427
|
-
Or:
|
428
|
-
Properties that are directly associated with Feature class instances.
|
429
|
-
(GVF1_0059)
|
430
|
-
"""
|
431
|
-
return [ _namespace_GVF1O('GVF1_0066'), _namespace_GVF1O('GVF1_0059') ]
|
432
|
-
|
433
|
-
@classmethod
|
434
|
-
def variant_properties(cls):
|
435
|
-
"""Either:
|
436
|
-
Properties that are directly associated with Variant class instances.
|
437
|
-
(cls, GVF1_0069)
|
438
|
-
Or:
|
439
|
-
Properties that are directly associated with Variant class instances.
|
440
|
-
(GVF1_0060)
|
441
|
-
"""
|
442
|
-
return [ _namespace_GVF1O('GVF1_0069'), _namespace_GVF1O('GVF1_0060') ]
|
443
|
-
|
444
417
|
@classmethod
|
445
418
|
def range_properties(cls):
|
446
419
|
"""Properties that are directly associated with Range class instances.
|
@@ -455,17 +428,6 @@ class GVF1O:
|
|
455
428
|
"""
|
456
429
|
return _namespace_GVF1O('GVF1_0062')
|
457
430
|
|
458
|
-
@classmethod
|
459
|
-
def set_properties(cls):
|
460
|
-
"""Either:
|
461
|
-
Properties that are directly associated with Set class instances.
|
462
|
-
(cls, GVF1_0068)
|
463
|
-
Or:
|
464
|
-
Properties that are directly associated with Set class instances.
|
465
|
-
(GVF1_0063)
|
466
|
-
"""
|
467
|
-
return [ _namespace_GVF1O('GVF1_0068'), _namespace_GVF1O('GVF1_0063') ]
|
468
|
-
|
469
431
|
@classmethod
|
470
432
|
def attribute_properties(cls):
|
471
433
|
"""Properties that are directly associated with Attribute class instances.
|
@@ -474,79 +436,32 @@ class GVF1O:
|
|
474
436
|
return _namespace_GVF1O('GVF1_0064')
|
475
437
|
|
476
438
|
@classmethod
|
477
|
-
def
|
478
|
-
"""
|
479
|
-
|
480
|
-
(cls, GVF1_0067)
|
481
|
-
Or:
|
482
|
-
Properties that are directly associated with SequencedIndividual class instances.
|
483
|
-
(GVF1_0065)
|
484
|
-
"""
|
485
|
-
return [ _namespace_GVF1O('GVF1_0067'), _namespace_GVF1O('GVF1_0065') ]
|
486
|
-
|
487
|
-
@classmethod
|
488
|
-
def breakpoint_properties(cls):
|
489
|
-
"""Either:
|
490
|
-
Properties that are directly associated with Breakpoint class instances.
|
491
|
-
(cls, GVF1_0075)
|
492
|
-
Or:
|
493
|
-
Properties that are directly associated with Breakpoint class instances.
|
494
|
-
(GVF1_0071)
|
439
|
+
def a_context(cls):
|
440
|
+
"""Sequence context (cls, positive strand) of a feature on the 5' end.
|
441
|
+
(GVF1_0076)
|
495
442
|
"""
|
496
|
-
return
|
443
|
+
return _namespace_GVF1O('GVF1_0076')
|
497
444
|
|
498
445
|
@classmethod
|
499
|
-
def
|
500
|
-
"""
|
501
|
-
|
502
|
-
(cls, GVF1_0004)
|
503
|
-
Or:
|
504
|
-
ID of the landmark that establishes the coordinate system for a breakpoint.
|
505
|
-
(GVF1_0072)
|
446
|
+
def gff_version(cls):
|
447
|
+
"""Version of the GFF specification that defines the feature set contents apart from GVF related definitions.
|
448
|
+
(cls, GVF1_0081)
|
506
449
|
"""
|
507
|
-
return
|
450
|
+
return _namespace_GVF1O('GVF1_0081')
|
508
451
|
|
509
452
|
@classmethod
|
510
|
-
def
|
511
|
-
"""
|
512
|
-
|
513
|
-
(cls, GVF1_0007)
|
514
|
-
Or:
|
515
|
-
A coordinate that defines the start of an ambiguous coordinate range.
|
516
|
-
(GVF1_0048)
|
517
|
-
Or:
|
518
|
-
Start coordinate of the feature on the seqid landmark.
|
519
|
-
(GVF1_0073)
|
453
|
+
def file_date(cls):
|
454
|
+
"""Creation date of the GVF file that this set stems from.
|
455
|
+
(cls, GVF1_0082)
|
520
456
|
"""
|
521
|
-
return
|
457
|
+
return _namespace_GVF1O('GVF1_0082')
|
522
458
|
|
523
459
|
@classmethod
|
524
|
-
def
|
525
|
-
"""
|
526
|
-
|
527
|
-
(cls, GVF1_0008)
|
528
|
-
Or:
|
529
|
-
A coordinate that defines the end of an ambiguous coordinate range.
|
530
|
-
(GVF1_0049)
|
531
|
-
Or:
|
532
|
-
End coordinate of the feature on the seqid landmark.
|
533
|
-
(GVF1_0074)
|
460
|
+
def target_id(cls):
|
461
|
+
"""ID or accession of the target alignment.
|
462
|
+
(cls, GVF1_0093)
|
534
463
|
"""
|
535
|
-
return
|
536
|
-
|
537
|
-
@classmethod
|
538
|
-
def a_context(cls):
|
539
|
-
"""Sequence context (cls, positive strand) of a feature on the 5' end.
|
540
|
-
(GVF1_0076)
|
541
|
-
"""
|
542
|
-
return _namespace_GVF1O('GVF1_0076')
|
543
|
-
|
544
|
-
@classmethod
|
545
|
-
def a_context(cls):
|
546
|
-
"""Sequence context (cls, positive strand) of a feature on the 3' end.
|
547
|
-
(GVF1_0077)
|
548
|
-
"""
|
549
|
-
return _namespace_GVF1O('GVF1_0077')
|
464
|
+
return _namespace_GVF1O('GVF1_0093')
|
550
465
|
|
551
466
|
@classmethod
|
552
467
|
def Set(cls):
|
@@ -622,6 +537,20 @@ class GVF1O:
|
|
622
537
|
"""
|
623
538
|
return _namespace_GVF1O('GVF1_0058')
|
624
539
|
|
540
|
+
@classmethod
|
541
|
+
def Zygosity(cls):
|
542
|
+
"""Denotes the zygosity of alleles.
|
543
|
+
(cls, GVF1_0084)
|
544
|
+
"""
|
545
|
+
return _namespace_GVF1O('GVF1_0084')
|
546
|
+
|
547
|
+
@classmethod
|
548
|
+
def Target(cls):
|
549
|
+
"""Indicates a feature's "target" of a nucleotide-to-nucleotide or protein-to-nucleotide alignment.
|
550
|
+
(cls, GVF1_0088)
|
551
|
+
"""
|
552
|
+
return _namespace_GVF1O('GVF1_0088')
|
553
|
+
|
625
554
|
@classmethod
|
626
555
|
def Positive(cls):
|
627
556
|
"""Location on the positive (cls, forward) strand.
|
@@ -650,6 +579,27 @@ class GVF1O:
|
|
650
579
|
"""
|
651
580
|
return _namespace_GVF1O('GVF1_0020')
|
652
581
|
|
582
|
+
@classmethod
|
583
|
+
def Heterozygous(cls):
|
584
|
+
"""Denotes heterozygous alleles.
|
585
|
+
(cls, GVF1_0085)
|
586
|
+
"""
|
587
|
+
return _namespace_GVF1O('GVF1_0085')
|
588
|
+
|
589
|
+
@classmethod
|
590
|
+
def Homozygous(cls):
|
591
|
+
"""Denotes homozygous alleles.
|
592
|
+
(cls, GVF1_0086)
|
593
|
+
"""
|
594
|
+
return _namespace_GVF1O('GVF1_0086')
|
595
|
+
|
596
|
+
@classmethod
|
597
|
+
def Hemizygous(cls):
|
598
|
+
"""Denotes hemizygous alleles.
|
599
|
+
(cls, GVF1_0087)
|
600
|
+
"""
|
601
|
+
return _namespace_GVF1O('GVF1_0087')
|
602
|
+
|
653
603
|
@classmethod
|
654
604
|
def is_object_property(cls, uri):
|
655
605
|
"""Determines whether the given URI is an object property.
|
@@ -672,6 +622,8 @@ class GVF1O:
|
|
672
622
|
return True
|
673
623
|
if uri == _namespace_GVF1O('GVF1_0036'):
|
674
624
|
return True
|
625
|
+
if uri == _namespace_GVF1O('GVF1_0038'):
|
626
|
+
return True
|
675
627
|
if uri == _namespace_GVF1O('GVF1_0041'):
|
676
628
|
return True
|
677
629
|
if uri == _namespace_GVF1O('GVF1_0042'):
|
@@ -704,6 +656,16 @@ class GVF1O:
|
|
704
656
|
return True
|
705
657
|
if uri == _namespace_GVF1O('GVF1_0079'):
|
706
658
|
return True
|
659
|
+
if uri == _namespace_GVF1O('GVF1_0080'):
|
660
|
+
return True
|
661
|
+
if uri == _namespace_GVF1O('GVF1_0083'):
|
662
|
+
return True
|
663
|
+
if uri == _namespace_GVF1O('GVF1_0089'):
|
664
|
+
return True
|
665
|
+
if uri == _namespace_GVF1O('GVF1_0090'):
|
666
|
+
return True
|
667
|
+
if uri == _namespace_GVF1O('GVF1_0091'):
|
668
|
+
return True
|
707
669
|
return False
|
708
670
|
|
709
671
|
@classmethod
|
@@ -746,8 +708,6 @@ class GVF1O:
|
|
746
708
|
return True
|
747
709
|
if uri == _namespace_GVF1O('GVF1_0037'):
|
748
710
|
return True
|
749
|
-
if uri == _namespace_GVF1O('GVF1_0038'):
|
750
|
-
return True
|
751
711
|
if uri == _namespace_GVF1O('GVF1_0039'):
|
752
712
|
return True
|
753
713
|
if uri == _namespace_GVF1O('GVF1_0048'):
|
@@ -790,6 +750,18 @@ class GVF1O:
|
|
790
750
|
return True
|
791
751
|
if uri == _namespace_GVF1O('GVF1_0077'):
|
792
752
|
return True
|
753
|
+
if uri == _namespace_GVF1O('GVF1_0081'):
|
754
|
+
return True
|
755
|
+
if uri == _namespace_GVF1O('GVF1_0082'):
|
756
|
+
return True
|
757
|
+
if uri == _namespace_GVF1O('GVF1_0092'):
|
758
|
+
return True
|
759
|
+
if uri == _namespace_GVF1O('GVF1_0093'):
|
760
|
+
return True
|
761
|
+
if uri == _namespace_GVF1O('GVF1_0094'):
|
762
|
+
return True
|
763
|
+
if uri == _namespace_GVF1O('GVF1_0095'):
|
764
|
+
return True
|
793
765
|
return False
|
794
766
|
|
795
767
|
@classmethod
|
@@ -820,6 +792,10 @@ class GVF1O:
|
|
820
792
|
return True
|
821
793
|
if uri == _namespace_GVF1O('GVF1_0058'):
|
822
794
|
return True
|
795
|
+
if uri == _namespace_GVF1O('GVF1_0084'):
|
796
|
+
return True
|
797
|
+
if uri == _namespace_GVF1O('GVF1_0088'):
|
798
|
+
return True
|
823
799
|
return False
|
824
800
|
|
825
801
|
@classmethod
|
@@ -836,6 +812,12 @@ class GVF1O:
|
|
836
812
|
return True
|
837
813
|
if uri == _namespace_GVF1O('GVF1_0020'):
|
838
814
|
return True
|
815
|
+
if uri == _namespace_GVF1O('GVF1_0085'):
|
816
|
+
return True
|
817
|
+
if uri == _namespace_GVF1O('GVF1_0086'):
|
818
|
+
return True
|
819
|
+
if uri == _namespace_GVF1O('GVF1_0087'):
|
820
|
+
return True
|
839
821
|
return False
|
840
822
|
|
841
823
|
@classmethod
|
@@ -860,5 +842,5 @@ class GVF1O:
|
|
860
842
|
return cls.has_parent(cls.__parent_properties[uri], parent)
|
861
843
|
return False
|
862
844
|
|
863
|
-
__parent_properties = { _namespace_GVF1O('GVF1_0010') : _namespace_GVF1O('
|
845
|
+
__parent_properties = { _namespace_GVF1O('GVF1_0010') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0012') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0014') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0015') : _namespace_GVF1O('GVF1_0068') , _namespace_GVF1O('GVF1_0021') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0023') : _namespace_GVF1O('GVF1_0068') , _namespace_GVF1O('GVF1_0034') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0036') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0038') : _namespace_GVF1O('GVF1_0069') , _namespace_GVF1O('GVF1_0041') : _namespace_GVF1O('GVF1_0069') , _namespace_GVF1O('GVF1_0042') : _namespace_GVF1O('GVF1_0070') , _namespace_GVF1O('GVF1_0043') : _namespace_GVF1O('GVF1_0070') , _namespace_GVF1O('GVF1_0044') : _namespace_GVF1O('GVF1_0070') , _namespace_GVF1O('GVF1_0046') : _namespace_GVF1O('GVF1_0070') , _namespace_GVF1O('GVF1_0047') : _namespace_GVF1O('GVF1_0070') , _namespace_GVF1O('GVF1_0051') : _namespace_GVF1O('GVF1_0067') , _namespace_GVF1O('GVF1_0053') : _namespace_GVF1O('GVF1_0069') , _namespace_GVF1O('GVF1_0078') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0079') : _namespace_GVF1O('GVF1_0075') , _namespace_GVF1O('GVF1_0080') : _namespace_GVF1O('GVF1_0066') , _namespace_GVF1O('GVF1_0083') : _namespace_GVF1O('GVF1_0075') , _namespace_GVF1O('GVF1_0090') : _namespace_GVF1O('GVF1_0089') , _namespace_GVF1O('GVF1_0091') : _namespace_GVF1O('GVF1_0089') , _namespace_GVF1O('GVF1_0004') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0005') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0006') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0007') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0008') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0009') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0013') : _namespace_GVF1O('GVF1_0064') , _namespace_GVF1O('GVF1_0022') : _namespace_GVF1O('GVF1_0063') , _namespace_GVF1O('GVF1_0024') : _namespace_GVF1O('GVF1_0063') , _namespace_GVF1O('GVF1_0025') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0026') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0027') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0029') : _namespace_GVF1O('GVF1_0062') , _namespace_GVF1O('GVF1_0030') : _namespace_GVF1O('GVF1_0062') , _namespace_GVF1O('GVF1_0031') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0032') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0037') : _namespace_GVF1O('GVF1_0065') , _namespace_GVF1O('GVF1_0039') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0048') : _namespace_GVF1O('GVF1_0061') , _namespace_GVF1O('GVF1_0049') : _namespace_GVF1O('GVF1_0061') , _namespace_GVF1O('GVF1_0050') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0054') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0055') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0056') : _namespace_GVF1O('GVF1_0060') , _namespace_GVF1O('GVF1_0057') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0072') : _namespace_GVF1O('GVF1_0071') , _namespace_GVF1O('GVF1_0073') : _namespace_GVF1O('GVF1_0071') , _namespace_GVF1O('GVF1_0074') : _namespace_GVF1O('GVF1_0071') , _namespace_GVF1O('GVF1_0076') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0077') : _namespace_GVF1O('GVF1_0059') , _namespace_GVF1O('GVF1_0081') : _namespace_GVF1O('GVF1_0063') , _namespace_GVF1O('GVF1_0082') : _namespace_GVF1O('GVF1_0063') , _namespace_GVF1O('GVF1_0093') : _namespace_GVF1O('GVF1_0092') , _namespace_GVF1O('GVF1_0094') : _namespace_GVF1O('GVF1_0092') , _namespace_GVF1O('GVF1_0095') : _namespace_GVF1O('GVF1_0092') , _namespace_GVF1O('GVF1_0088') : _namespace_GVF1O('http://www.w3.org/2002/07/owl#Thing') }
|
864
846
|
|