biointerchange 0.2.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +1 -0
- data/README.md +269 -19
- data/VERSION +1 -1
- data/examples/bininda_emonds_mammals.new +1 -0
- data/examples/rdfization.rb +17 -0
- data/examples/tree1.new +1 -0
- data/examples/tree2.new +1 -0
- data/examples/vocabulary.rb +26 -5
- data/generators/javaify.rb +12 -18
- data/generators/make_supplement_releases.rb +2 -0
- data/generators/pythonify.rb +21 -8
- data/generators/rdfxml.rb +15 -1
- data/lib/biointerchange/cdao.rb +2014 -0
- data/lib/biointerchange/core.rb +70 -77
- data/lib/biointerchange/genomics/gff3_rdf_ntriples.rb +16 -0
- data/lib/biointerchange/genomics/gff3_reader.rb +18 -4
- data/lib/biointerchange/genomics/gvf_reader.rb +14 -0
- data/lib/biointerchange/phylogenetics/cdao_rdf_ntriples.rb +108 -0
- data/lib/biointerchange/phylogenetics/newick_reader.rb +81 -0
- data/lib/biointerchange/phylogenetics/tree_set.rb +50 -0
- data/lib/biointerchange/registry.rb +50 -8
- data/lib/biointerchange/so.rb +150 -0
- data/lib/biointerchange/textmining/pdfx_xml_reader.rb +21 -2
- data/lib/biointerchange/textmining/pubannos_json_reader.rb +24 -1
- data/lib/biointerchange/textmining/text_mining_rdf_ntriples.rb +9 -0
- data/lib/biointerchange/textmining/text_mining_reader.rb +5 -5
- data/spec/phylogenetics_spec.rb +79 -0
- data/supplemental/java/biointerchange/pom.xml +1 -1
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/CDAO.java +2602 -0
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/FALDO.java +30 -28
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GFF3O.java +136 -104
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/GVF1O.java +367 -278
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SIO.java +4388 -3127
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SO.java +5970 -4351
- data/supplemental/java/biointerchange/src/main/java/org/biointerchange/vocabulary/SOFA.java +733 -544
- data/supplemental/java/biointerchange/src/test/java/org/biointerchange/AppTest.java +3 -1
- data/supplemental/python/biointerchange/cdao.py +2021 -0
- data/supplemental/python/biointerchange/faldo.py +37 -38
- data/supplemental/python/biointerchange/gff3o.py +156 -157
- data/supplemental/python/biointerchange/goxref.py +172 -172
- data/supplemental/python/biointerchange/gvf1o.py +428 -429
- data/supplemental/python/biointerchange/sio.py +3133 -3134
- data/supplemental/python/biointerchange/so.py +6626 -6527
- data/supplemental/python/biointerchange/sofa.py +790 -791
- data/supplemental/python/example.py +23 -5
- data/supplemental/python/setup.py +2 -2
- data/web/about.html +1 -0
- data/web/api.html +223 -15
- data/web/biointerchange.js +27 -6
- data/web/cli.html +8 -3
- data/web/index.html +6 -2
- data/web/ontologies.html +3 -0
- data/web/service/rdfizer.fcgi +7 -15
- data/web/webservices.html +6 -2
- metadata +30 -3
@@ -8,348 +8,348 @@ class GFF3O:
|
|
8
8
|
@classmethod
|
9
9
|
def seqid(cls):
|
10
10
|
"""Establishes the landmark (cls, e.g. a chromosome) on which a feature is located.
|
11
|
-
(GFF3_0004)
|
11
|
+
(http://www.biointerchange.org/gff3o#GFF3_0004)
|
12
12
|
"""
|
13
|
-
return _namespace_GFF3O('GFF3_0004')
|
13
|
+
return cls._namespace_GFF3O('GFF3_0004')
|
14
14
|
|
15
15
|
@classmethod
|
16
16
|
def strand(cls):
|
17
17
|
"""Either:
|
18
18
|
Strand of the feature.
|
19
|
-
(cls, GFF3_0010)
|
19
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0010)
|
20
20
|
Or:
|
21
21
|
Strand of a target -- if applicable.
|
22
|
-
(GFF3_0045)
|
22
|
+
(http://www.biointerchange.org/gff3o#GFF3_0045)
|
23
23
|
"""
|
24
|
-
return [ _namespace_GFF3O('GFF3_0010'), _namespace_GFF3O('GFF3_0045') ]
|
24
|
+
return [ cls._namespace_GFF3O('GFF3_0010'), cls._namespace_GFF3O('GFF3_0045') ]
|
25
25
|
|
26
26
|
@classmethod
|
27
27
|
def attributes(cls):
|
28
28
|
"""Tag name/value pair attributes of a feature that are not covered by object-/data-properties of the ontology. Tags that are represented as object-/data-properties are: ID, Name, Alias, Parent, Target, Gap, Derives_from, Dbxref, Ontology_term, Ontology_term, or Is_circular
|
29
|
-
(cls, GFF3_0012)
|
29
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0012)
|
30
30
|
"""
|
31
|
-
return _namespace_GFF3O('GFF3_0012')
|
31
|
+
return cls._namespace_GFF3O('GFF3_0012')
|
32
32
|
|
33
33
|
@classmethod
|
34
34
|
def parent(cls):
|
35
35
|
"""Link out to the parent feature.
|
36
|
-
(cls, GFF3_0014)
|
36
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0014)
|
37
37
|
"""
|
38
|
-
return _namespace_GFF3O('GFF3_0014')
|
38
|
+
return cls._namespace_GFF3O('GFF3_0014')
|
39
39
|
|
40
40
|
@classmethod
|
41
41
|
def contains(cls):
|
42
42
|
"""Relationship that describes which features belong to a feature set.
|
43
|
-
(cls, GFF3_0015)
|
43
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0015)
|
44
44
|
"""
|
45
|
-
return _namespace_GFF3O('GFF3_0015')
|
45
|
+
return cls._namespace_GFF3O('GFF3_0015')
|
46
46
|
|
47
47
|
@classmethod
|
48
48
|
def region(cls):
|
49
49
|
"""Either:
|
50
50
|
FALDO "Region" instance replacement for a feature's start, stop, strand properties.
|
51
|
-
(cls, GFF3_0021)
|
51
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0021)
|
52
52
|
Or:
|
53
53
|
FALDO "Region" instance replacement for a target's start, stop, strand properties.
|
54
|
-
(GFF3_0050)
|
54
|
+
(http://www.biointerchange.org/gff3o#GFF3_0050)
|
55
55
|
"""
|
56
|
-
return [ _namespace_GFF3O('GFF3_0021'), _namespace_GFF3O('GFF3_0050') ]
|
56
|
+
return [ cls._namespace_GFF3O('GFF3_0021'), cls._namespace_GFF3O('GFF3_0050') ]
|
57
57
|
|
58
58
|
@classmethod
|
59
59
|
def species(cls):
|
60
60
|
"""NCBI Taxonomy Ontology "NCBITaxon_1" (cls, or sub-classes) instance that denotes the species for a feature set.
|
61
|
-
(GFF3_0023)
|
61
|
+
(http://www.biointerchange.org/gff3o#GFF3_0023)
|
62
62
|
"""
|
63
|
-
return _namespace_GFF3O('GFF3_0023')
|
63
|
+
return cls._namespace_GFF3O('GFF3_0023')
|
64
64
|
|
65
65
|
@classmethod
|
66
66
|
def set_properties(cls):
|
67
67
|
"""Either:
|
68
68
|
Properties that are directly associated with Set class instances.
|
69
|
-
(cls, GFF3_0025)
|
69
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0025)
|
70
70
|
Or:
|
71
71
|
Properties that are directly associated with Set class instances.
|
72
|
-
(GFF3_0027)
|
72
|
+
(http://www.biointerchange.org/gff3o#GFF3_0027)
|
73
73
|
"""
|
74
|
-
return [ _namespace_GFF3O('GFF3_0025'), _namespace_GFF3O('GFF3_0027') ]
|
74
|
+
return [ cls._namespace_GFF3O('GFF3_0025'), cls._namespace_GFF3O('GFF3_0027') ]
|
75
75
|
|
76
76
|
@classmethod
|
77
77
|
def feature_properties(cls):
|
78
78
|
"""Either:
|
79
79
|
Properties that are directly associated with Feature class instances.
|
80
|
-
(cls, GFF3_0026)
|
80
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0026)
|
81
81
|
Or:
|
82
82
|
Properties that are directly associated with Feature class instances.
|
83
|
-
(GFF3_0028)
|
83
|
+
(http://www.biointerchange.org/gff3o#GFF3_0028)
|
84
84
|
"""
|
85
|
-
return [ _namespace_GFF3O('GFF3_0026'), _namespace_GFF3O('GFF3_0028') ]
|
85
|
+
return [ cls._namespace_GFF3O('GFF3_0026'), cls._namespace_GFF3O('GFF3_0028') ]
|
86
86
|
|
87
87
|
@classmethod
|
88
88
|
def target(cls):
|
89
89
|
"""Identifies the target that the features aligns to.
|
90
|
-
(cls, GFF3_0039)
|
90
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0039)
|
91
91
|
"""
|
92
|
-
return _namespace_GFF3O('GFF3_0039')
|
92
|
+
return cls._namespace_GFF3O('GFF3_0039')
|
93
93
|
|
94
94
|
@classmethod
|
95
95
|
def target_properties(cls):
|
96
96
|
"""Either:
|
97
97
|
Properties that are directly associated with Target class instances.
|
98
|
-
(cls, GFF3_0044)
|
98
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0044)
|
99
99
|
Or:
|
100
100
|
Properties that are directly associated with Target class instances.
|
101
|
-
(GFF3_0040)
|
101
|
+
(http://www.biointerchange.org/gff3o#GFF3_0040)
|
102
102
|
"""
|
103
|
-
return [ _namespace_GFF3O('GFF3_0044'), _namespace_GFF3O('GFF3_0040') ]
|
103
|
+
return [ cls._namespace_GFF3O('GFF3_0044'), cls._namespace_GFF3O('GFF3_0040') ]
|
104
104
|
|
105
105
|
@classmethod
|
106
106
|
def derives_from(cls):
|
107
107
|
"""Describes a temporal relationship between two features, where the object denotes the subjects origin.
|
108
|
-
(cls, GFF3_0047)
|
108
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0047)
|
109
109
|
"""
|
110
|
-
return _namespace_GFF3O('GFF3_0047')
|
110
|
+
return cls._namespace_GFF3O('GFF3_0047')
|
111
111
|
|
112
112
|
@classmethod
|
113
113
|
def feature_ontology(cls):
|
114
114
|
"""Explicit link-out to one or more ontologies that have been used for describing features. This is a meta comment about the URIs that link out to SO/SOFA or other ontologies.
|
115
|
-
(cls, GFF3_0056)
|
115
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0056)
|
116
116
|
"""
|
117
|
-
return _namespace_GFF3O('GFF3_0056')
|
117
|
+
return cls._namespace_GFF3O('GFF3_0056')
|
118
118
|
|
119
119
|
@classmethod
|
120
120
|
def source(cls):
|
121
121
|
"""A free text qualifier that describes the algorithm or operating procedure that generated this feature. For example, the name of the software that generated this feature or a database name.
|
122
|
-
(cls, GFF3_0005)
|
122
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0005)
|
123
123
|
"""
|
124
|
-
return _namespace_GFF3O('GFF3_0005')
|
124
|
+
return cls._namespace_GFF3O('GFF3_0005')
|
125
125
|
|
126
126
|
@classmethod
|
127
127
|
def type(cls):
|
128
128
|
"""Type of the feature, which is either an entry the "lite" version of the Sequence Ontology (cls, SOFA) or a child entry of sequence_feature (SO:0000110) of the full Sequence Ontology (SO).
|
129
|
-
(GFF3_0006)
|
129
|
+
(http://www.biointerchange.org/gff3o#GFF3_0006)
|
130
130
|
"""
|
131
|
-
return _namespace_GFF3O('GFF3_0006')
|
131
|
+
return cls._namespace_GFF3O('GFF3_0006')
|
132
132
|
|
133
133
|
@classmethod
|
134
134
|
def start(cls):
|
135
135
|
"""Either:
|
136
136
|
Start coordinate of the feature on the seqid landmark.
|
137
|
-
(cls, GFF3_0007)
|
137
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0007)
|
138
138
|
Or:
|
139
139
|
Start coordinate of the target.
|
140
|
-
(GFF3_0042)
|
140
|
+
(http://www.biointerchange.org/gff3o#GFF3_0042)
|
141
141
|
Or:
|
142
142
|
Genomic start coordinate of the landmark.
|
143
|
-
(GFF3_0054)
|
143
|
+
(http://www.biointerchange.org/gff3o#GFF3_0054)
|
144
144
|
"""
|
145
|
-
return [ _namespace_GFF3O('GFF3_0007'), _namespace_GFF3O('GFF3_0042'), _namespace_GFF3O('GFF3_0054') ]
|
145
|
+
return [ cls._namespace_GFF3O('GFF3_0007'), cls._namespace_GFF3O('GFF3_0042'), cls._namespace_GFF3O('GFF3_0054') ]
|
146
146
|
|
147
147
|
@classmethod
|
148
148
|
def end(cls):
|
149
149
|
"""Either:
|
150
150
|
End coordinate of the feature on the seqid landmark.
|
151
|
-
(cls, GFF3_0008)
|
151
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0008)
|
152
152
|
Or:
|
153
153
|
End coordinate of the target.
|
154
|
-
(GFF3_0043)
|
154
|
+
(http://www.biointerchange.org/gff3o#GFF3_0043)
|
155
155
|
Or:
|
156
156
|
Genomic end coordinate of the landmark.
|
157
|
-
(GFF3_0055)
|
157
|
+
(http://www.biointerchange.org/gff3o#GFF3_0055)
|
158
158
|
"""
|
159
|
-
return [ _namespace_GFF3O('GFF3_0008'), _namespace_GFF3O('GFF3_0043'), _namespace_GFF3O('GFF3_0055') ]
|
159
|
+
return [ cls._namespace_GFF3O('GFF3_0008'), cls._namespace_GFF3O('GFF3_0043'), cls._namespace_GFF3O('GFF3_0055') ]
|
160
160
|
|
161
161
|
@classmethod
|
162
162
|
def score(cls):
|
163
163
|
"""Score of the feature. For example, an E-value for sequence similarity features or a P-value for ab initio gene prediction features.
|
164
|
-
(cls, GFF3_0009)
|
164
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0009)
|
165
165
|
"""
|
166
|
-
return _namespace_GFF3O('GFF3_0009')
|
166
|
+
return cls._namespace_GFF3O('GFF3_0009')
|
167
167
|
|
168
168
|
@classmethod
|
169
169
|
def phase(cls):
|
170
170
|
"""Phase for "CDS" features. It indicates where the feature begins with reference to the reading frame. For forward strand features, phase is counted from the start field, whilst for reverse strand features, phase is counted from the end field.
|
171
|
-
(cls, GFF3_0011)
|
171
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0011)
|
172
172
|
"""
|
173
|
-
return _namespace_GFF3O('GFF3_0011')
|
173
|
+
return cls._namespace_GFF3O('GFF3_0011')
|
174
174
|
|
175
175
|
@classmethod
|
176
176
|
def tag(cls):
|
177
177
|
"""Tag name of a feature attribute.
|
178
|
-
(cls, GFF3_0013)
|
178
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0013)
|
179
179
|
"""
|
180
|
-
return _namespace_GFF3O('GFF3_0013')
|
180
|
+
return cls._namespace_GFF3O('GFF3_0013')
|
181
181
|
|
182
182
|
@classmethod
|
183
183
|
def version(cls):
|
184
184
|
"""Version of the GFF3 specification that defines the feature set contents.
|
185
|
-
(cls, GFF3_0022)
|
185
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0022)
|
186
186
|
"""
|
187
|
-
return _namespace_GFF3O('GFF3_0022')
|
187
|
+
return cls._namespace_GFF3O('GFF3_0022')
|
188
188
|
|
189
189
|
@classmethod
|
190
190
|
def build(cls):
|
191
191
|
"""Name of a genome assembly build that denotes the provenance of features in a feature set. For example, 'NCBI 36' or 'FlyBase r4.1'.
|
192
|
-
(cls, GFF3_0024)
|
192
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0024)
|
193
193
|
"""
|
194
|
-
return _namespace_GFF3O('GFF3_0024')
|
194
|
+
return cls._namespace_GFF3O('GFF3_0024')
|
195
195
|
|
196
196
|
@classmethod
|
197
197
|
def attribute_properties(cls):
|
198
198
|
"""Properties that are directly associated with Attribute class instances.
|
199
|
-
(cls, GFF3_0029)
|
199
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0029)
|
200
200
|
"""
|
201
|
-
return _namespace_GFF3O('GFF3_0029')
|
201
|
+
return cls._namespace_GFF3O('GFF3_0029')
|
202
202
|
|
203
203
|
@classmethod
|
204
204
|
def dbxref(cls):
|
205
205
|
"""A database cross-reference to associate a sequence alteration to its representation in another database.
|
206
|
-
(cls, GFF3_0034)
|
206
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0034)
|
207
207
|
"""
|
208
|
-
return _namespace_GFF3O('GFF3_0034')
|
208
|
+
return cls._namespace_GFF3O('GFF3_0034')
|
209
209
|
|
210
210
|
@classmethod
|
211
211
|
def ontology_term(cls):
|
212
212
|
"""A cross-reference to an ontology term that is associated with a feature.
|
213
|
-
(cls, GFF3_0035)
|
213
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0035)
|
214
214
|
"""
|
215
|
-
return _namespace_GFF3O('GFF3_0035')
|
215
|
+
return cls._namespace_GFF3O('GFF3_0035')
|
216
216
|
|
217
217
|
@classmethod
|
218
218
|
def name(cls):
|
219
219
|
"""Name of a feature, which can be used for display purposes. The name is not a unique property among features.
|
220
|
-
(cls, GFF3_0036)
|
220
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0036)
|
221
221
|
"""
|
222
|
-
return _namespace_GFF3O('GFF3_0036')
|
222
|
+
return cls._namespace_GFF3O('GFF3_0036')
|
223
223
|
|
224
224
|
@classmethod
|
225
225
|
def alias(cls):
|
226
226
|
"""An alternative name for a feature. This can be another descriptive name of a feature, such as a locus name or accession number.
|
227
|
-
(cls, GFF3_0037)
|
227
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0037)
|
228
228
|
"""
|
229
|
-
return _namespace_GFF3O('GFF3_0037')
|
229
|
+
return cls._namespace_GFF3O('GFF3_0037')
|
230
230
|
|
231
231
|
@classmethod
|
232
232
|
def target_id(cls):
|
233
233
|
"""ID or accession of the target alignment.
|
234
|
-
(cls, GFF3_0041)
|
234
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0041)
|
235
235
|
"""
|
236
|
-
return _namespace_GFF3O('GFF3_0041')
|
236
|
+
return cls._namespace_GFF3O('GFF3_0041')
|
237
237
|
|
238
238
|
@classmethod
|
239
239
|
def gap(cls):
|
240
240
|
"""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.
|
241
|
-
(cls, GFF3_0046)
|
241
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0046)
|
242
242
|
"""
|
243
|
-
return _namespace_GFF3O('GFF3_0046')
|
243
|
+
return cls._namespace_GFF3O('GFF3_0046')
|
244
244
|
|
245
245
|
@classmethod
|
246
246
|
def note(cls):
|
247
247
|
"""A free text note.
|
248
|
-
(cls, GFF3_0048)
|
248
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0048)
|
249
249
|
"""
|
250
|
-
return _namespace_GFF3O('GFF3_0048')
|
250
|
+
return cls._namespace_GFF3O('GFF3_0048')
|
251
251
|
|
252
252
|
@classmethod
|
253
253
|
def is_circular(cls):
|
254
254
|
"""Describes whether a feature is circular or not.
|
255
|
-
(cls, GFF3_0049)
|
255
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0049)
|
256
256
|
"""
|
257
|
-
return _namespace_GFF3O('GFF3_0049')
|
257
|
+
return cls._namespace_GFF3O('GFF3_0049')
|
258
258
|
|
259
259
|
@classmethod
|
260
260
|
def landmark_properties(cls):
|
261
261
|
"""Properties that are directly associated with Landmark class instances.
|
262
|
-
(cls, GFF3_0052)
|
262
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0052)
|
263
263
|
"""
|
264
|
-
return _namespace_GFF3O('GFF3_0052')
|
264
|
+
return cls._namespace_GFF3O('GFF3_0052')
|
265
265
|
|
266
266
|
@classmethod
|
267
267
|
def id(cls):
|
268
268
|
"""ID that uniquely establishes the Landmark's identity within a Set.
|
269
|
-
(cls, GFF3_0053)
|
269
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0053)
|
270
270
|
"""
|
271
|
-
return _namespace_GFF3O('GFF3_0053')
|
271
|
+
return cls._namespace_GFF3O('GFF3_0053')
|
272
272
|
|
273
273
|
@classmethod
|
274
274
|
def sequence(cls):
|
275
275
|
"""Either:
|
276
276
|
Sequence associated with this feature, if it has been specified using a FASTA string.
|
277
|
-
(cls, GFF3_0057)
|
277
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0057)
|
278
278
|
Or:
|
279
279
|
Sequence associated with this feature, if it has been specified using a FASTA string.
|
280
|
-
(GFF3_0058)
|
280
|
+
(http://www.biointerchange.org/gff3o#GFF3_0058)
|
281
281
|
"""
|
282
|
-
return [ _namespace_GFF3O('GFF3_0057'), _namespace_GFF3O('GFF3_0058') ]
|
282
|
+
return [ cls._namespace_GFF3O('GFF3_0057'), cls._namespace_GFF3O('GFF3_0058') ]
|
283
283
|
|
284
284
|
@classmethod
|
285
285
|
def Set(cls):
|
286
286
|
"""Set of genomic sequence features, whose identifiers are unique within the set.
|
287
|
-
(cls, GFF3_0001)
|
287
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0001)
|
288
288
|
"""
|
289
|
-
return _namespace_GFF3O('GFF3_0001')
|
289
|
+
return cls._namespace_GFF3O('GFF3_0001')
|
290
290
|
|
291
291
|
@classmethod
|
292
292
|
def Feature(cls):
|
293
293
|
"""A genomic sequence feature.
|
294
|
-
(cls, GFF3_0002)
|
294
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0002)
|
295
295
|
"""
|
296
|
-
return _namespace_GFF3O('GFF3_0002')
|
296
|
+
return cls._namespace_GFF3O('GFF3_0002')
|
297
297
|
|
298
298
|
@classmethod
|
299
299
|
def Attribute(cls):
|
300
300
|
"""Describes additional feature attributes besides ID, Name, Alias, Parent, Target, Gap, Derives_from, Dbxref, Ontology_term, Ontology_term, or Is_circular.
|
301
|
-
(cls, GFF3_0003)
|
301
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0003)
|
302
302
|
"""
|
303
|
-
return _namespace_GFF3O('GFF3_0003')
|
303
|
+
return cls._namespace_GFF3O('GFF3_0003')
|
304
304
|
|
305
305
|
@classmethod
|
306
306
|
def Strand(cls):
|
307
307
|
"""Class describing a genomic strand. Instances of the class (cls, individuals) are used to denote forward-/reverse-strands, etc.
|
308
|
-
(GFF3_0016)
|
308
|
+
(http://www.biointerchange.org/gff3o#GFF3_0016)
|
309
309
|
"""
|
310
|
-
return _namespace_GFF3O('GFF3_0016')
|
310
|
+
return cls._namespace_GFF3O('GFF3_0016')
|
311
311
|
|
312
312
|
@classmethod
|
313
313
|
def Target(cls):
|
314
314
|
"""Indicates a feature's "target" of a nucleotide-to-nucleotide or protein-to-nucleotide alignment.
|
315
|
-
(cls, GFF3_0038)
|
315
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0038)
|
316
316
|
"""
|
317
|
-
return _namespace_GFF3O('GFF3_0038')
|
317
|
+
return cls._namespace_GFF3O('GFF3_0038')
|
318
318
|
|
319
319
|
@classmethod
|
320
320
|
def Landmark(cls):
|
321
321
|
"""A landmark that establishes the coordinate system for features.
|
322
|
-
(cls, GFF3_0051)
|
322
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0051)
|
323
323
|
"""
|
324
|
-
return _namespace_GFF3O('GFF3_0051')
|
324
|
+
return cls._namespace_GFF3O('GFF3_0051')
|
325
325
|
|
326
326
|
@classmethod
|
327
327
|
def Positive(cls):
|
328
328
|
"""Location on the positive (cls, forward) strand.
|
329
|
-
(GFF3_0017)
|
329
|
+
(http://www.biointerchange.org/gff3o#GFF3_0017)
|
330
330
|
"""
|
331
|
-
return _namespace_GFF3O('GFF3_0017')
|
331
|
+
return cls._namespace_GFF3O('GFF3_0017')
|
332
332
|
|
333
333
|
@classmethod
|
334
334
|
def Negative(cls):
|
335
335
|
"""Location on the negative (cls, reverse) strand.
|
336
|
-
(GFF3_0018)
|
336
|
+
(http://www.biointerchange.org/gff3o#GFF3_0018)
|
337
337
|
"""
|
338
|
-
return _namespace_GFF3O('GFF3_0018')
|
338
|
+
return cls._namespace_GFF3O('GFF3_0018')
|
339
339
|
|
340
340
|
@classmethod
|
341
341
|
def UnknownStrand(cls):
|
342
342
|
"""Strand was not determined, which leaves it open whether the location is on the positive (cls, forward) or negative (reverse) strand.
|
343
|
-
(GFF3_0019)
|
343
|
+
(http://www.biointerchange.org/gff3o#GFF3_0019)
|
344
344
|
"""
|
345
|
-
return _namespace_GFF3O('GFF3_0019')
|
345
|
+
return cls._namespace_GFF3O('GFF3_0019')
|
346
346
|
|
347
347
|
@classmethod
|
348
348
|
def NotStranded(cls):
|
349
349
|
"""Strand is not applicable.
|
350
|
-
(cls, GFF3_0020)
|
350
|
+
(cls, http://www.biointerchange.org/gff3o#GFF3_0020)
|
351
351
|
"""
|
352
|
-
return _namespace_GFF3O('GFF3_0020')
|
352
|
+
return cls._namespace_GFF3O('GFF3_0020')
|
353
353
|
|
354
354
|
@classmethod
|
355
355
|
def is_object_property(cls, uri):
|
@@ -357,35 +357,35 @@ class GFF3O:
|
|
357
357
|
|
358
358
|
uri -- URI that is tested for being an object property
|
359
359
|
"""
|
360
|
-
if uri == _namespace_GFF3O('GFF3_0004'):
|
360
|
+
if uri == cls._namespace_GFF3O('GFF3_0004'):
|
361
361
|
return True
|
362
|
-
if uri == _namespace_GFF3O('GFF3_0010'):
|
362
|
+
if uri == cls._namespace_GFF3O('GFF3_0010'):
|
363
363
|
return True
|
364
|
-
if uri == _namespace_GFF3O('GFF3_0012'):
|
364
|
+
if uri == cls._namespace_GFF3O('GFF3_0012'):
|
365
365
|
return True
|
366
|
-
if uri == _namespace_GFF3O('GFF3_0014'):
|
366
|
+
if uri == cls._namespace_GFF3O('GFF3_0014'):
|
367
367
|
return True
|
368
|
-
if uri == _namespace_GFF3O('GFF3_0015'):
|
368
|
+
if uri == cls._namespace_GFF3O('GFF3_0015'):
|
369
369
|
return True
|
370
|
-
if uri == _namespace_GFF3O('GFF3_0021'):
|
370
|
+
if uri == cls._namespace_GFF3O('GFF3_0021'):
|
371
371
|
return True
|
372
|
-
if uri == _namespace_GFF3O('GFF3_0023'):
|
372
|
+
if uri == cls._namespace_GFF3O('GFF3_0023'):
|
373
373
|
return True
|
374
|
-
if uri == _namespace_GFF3O('GFF3_0025'):
|
374
|
+
if uri == cls._namespace_GFF3O('GFF3_0025'):
|
375
375
|
return True
|
376
|
-
if uri == _namespace_GFF3O('GFF3_0026'):
|
376
|
+
if uri == cls._namespace_GFF3O('GFF3_0026'):
|
377
377
|
return True
|
378
|
-
if uri == _namespace_GFF3O('GFF3_0039'):
|
378
|
+
if uri == cls._namespace_GFF3O('GFF3_0039'):
|
379
379
|
return True
|
380
|
-
if uri == _namespace_GFF3O('GFF3_0044'):
|
380
|
+
if uri == cls._namespace_GFF3O('GFF3_0044'):
|
381
381
|
return True
|
382
|
-
if uri == _namespace_GFF3O('GFF3_0045'):
|
382
|
+
if uri == cls._namespace_GFF3O('GFF3_0045'):
|
383
383
|
return True
|
384
|
-
if uri == _namespace_GFF3O('GFF3_0047'):
|
384
|
+
if uri == cls._namespace_GFF3O('GFF3_0047'):
|
385
385
|
return True
|
386
|
-
if uri == _namespace_GFF3O('GFF3_0050'):
|
386
|
+
if uri == cls._namespace_GFF3O('GFF3_0050'):
|
387
387
|
return True
|
388
|
-
if uri == _namespace_GFF3O('GFF3_0056'):
|
388
|
+
if uri == cls._namespace_GFF3O('GFF3_0056'):
|
389
389
|
return True
|
390
390
|
return False
|
391
391
|
|
@@ -395,63 +395,63 @@ class GFF3O:
|
|
395
395
|
|
396
396
|
uri -- URI that is tested for being a datatype property
|
397
397
|
"""
|
398
|
-
if uri == _namespace_GFF3O('GFF3_0005'):
|
398
|
+
if uri == cls._namespace_GFF3O('GFF3_0005'):
|
399
399
|
return True
|
400
|
-
if uri == _namespace_GFF3O('GFF3_0006'):
|
400
|
+
if uri == cls._namespace_GFF3O('GFF3_0006'):
|
401
401
|
return True
|
402
|
-
if uri == _namespace_GFF3O('GFF3_0007'):
|
402
|
+
if uri == cls._namespace_GFF3O('GFF3_0007'):
|
403
403
|
return True
|
404
|
-
if uri == _namespace_GFF3O('GFF3_0008'):
|
404
|
+
if uri == cls._namespace_GFF3O('GFF3_0008'):
|
405
405
|
return True
|
406
|
-
if uri == _namespace_GFF3O('GFF3_0009'):
|
406
|
+
if uri == cls._namespace_GFF3O('GFF3_0009'):
|
407
407
|
return True
|
408
|
-
if uri == _namespace_GFF3O('GFF3_0011'):
|
408
|
+
if uri == cls._namespace_GFF3O('GFF3_0011'):
|
409
409
|
return True
|
410
|
-
if uri == _namespace_GFF3O('GFF3_0013'):
|
410
|
+
if uri == cls._namespace_GFF3O('GFF3_0013'):
|
411
411
|
return True
|
412
|
-
if uri == _namespace_GFF3O('GFF3_0022'):
|
412
|
+
if uri == cls._namespace_GFF3O('GFF3_0022'):
|
413
413
|
return True
|
414
|
-
if uri == _namespace_GFF3O('GFF3_0024'):
|
414
|
+
if uri == cls._namespace_GFF3O('GFF3_0024'):
|
415
415
|
return True
|
416
|
-
if uri == _namespace_GFF3O('GFF3_0027'):
|
416
|
+
if uri == cls._namespace_GFF3O('GFF3_0027'):
|
417
417
|
return True
|
418
|
-
if uri == _namespace_GFF3O('GFF3_0028'):
|
418
|
+
if uri == cls._namespace_GFF3O('GFF3_0028'):
|
419
419
|
return True
|
420
|
-
if uri == _namespace_GFF3O('GFF3_0029'):
|
420
|
+
if uri == cls._namespace_GFF3O('GFF3_0029'):
|
421
421
|
return True
|
422
|
-
if uri == _namespace_GFF3O('GFF3_0034'):
|
422
|
+
if uri == cls._namespace_GFF3O('GFF3_0034'):
|
423
423
|
return True
|
424
|
-
if uri == _namespace_GFF3O('GFF3_0035'):
|
424
|
+
if uri == cls._namespace_GFF3O('GFF3_0035'):
|
425
425
|
return True
|
426
|
-
if uri == _namespace_GFF3O('GFF3_0036'):
|
426
|
+
if uri == cls._namespace_GFF3O('GFF3_0036'):
|
427
427
|
return True
|
428
|
-
if uri == _namespace_GFF3O('GFF3_0037'):
|
428
|
+
if uri == cls._namespace_GFF3O('GFF3_0037'):
|
429
429
|
return True
|
430
|
-
if uri == _namespace_GFF3O('GFF3_0040'):
|
430
|
+
if uri == cls._namespace_GFF3O('GFF3_0040'):
|
431
431
|
return True
|
432
|
-
if uri == _namespace_GFF3O('GFF3_0041'):
|
432
|
+
if uri == cls._namespace_GFF3O('GFF3_0041'):
|
433
433
|
return True
|
434
|
-
if uri == _namespace_GFF3O('GFF3_0042'):
|
434
|
+
if uri == cls._namespace_GFF3O('GFF3_0042'):
|
435
435
|
return True
|
436
|
-
if uri == _namespace_GFF3O('GFF3_0043'):
|
436
|
+
if uri == cls._namespace_GFF3O('GFF3_0043'):
|
437
437
|
return True
|
438
|
-
if uri == _namespace_GFF3O('GFF3_0046'):
|
438
|
+
if uri == cls._namespace_GFF3O('GFF3_0046'):
|
439
439
|
return True
|
440
|
-
if uri == _namespace_GFF3O('GFF3_0048'):
|
440
|
+
if uri == cls._namespace_GFF3O('GFF3_0048'):
|
441
441
|
return True
|
442
|
-
if uri == _namespace_GFF3O('GFF3_0049'):
|
442
|
+
if uri == cls._namespace_GFF3O('GFF3_0049'):
|
443
443
|
return True
|
444
|
-
if uri == _namespace_GFF3O('GFF3_0052'):
|
444
|
+
if uri == cls._namespace_GFF3O('GFF3_0052'):
|
445
445
|
return True
|
446
|
-
if uri == _namespace_GFF3O('GFF3_0053'):
|
446
|
+
if uri == cls._namespace_GFF3O('GFF3_0053'):
|
447
447
|
return True
|
448
|
-
if uri == _namespace_GFF3O('GFF3_0054'):
|
448
|
+
if uri == cls._namespace_GFF3O('GFF3_0054'):
|
449
449
|
return True
|
450
|
-
if uri == _namespace_GFF3O('GFF3_0055'):
|
450
|
+
if uri == cls._namespace_GFF3O('GFF3_0055'):
|
451
451
|
return True
|
452
|
-
if uri == _namespace_GFF3O('GFF3_0057'):
|
452
|
+
if uri == cls._namespace_GFF3O('GFF3_0057'):
|
453
453
|
return True
|
454
|
-
if uri == _namespace_GFF3O('GFF3_0058'):
|
454
|
+
if uri == cls._namespace_GFF3O('GFF3_0058'):
|
455
455
|
return True
|
456
456
|
return False
|
457
457
|
|
@@ -461,17 +461,17 @@ class GFF3O:
|
|
461
461
|
|
462
462
|
uri -- URI that is tested for being a class
|
463
463
|
"""
|
464
|
-
if uri == _namespace_GFF3O('GFF3_0001'):
|
464
|
+
if uri == cls._namespace_GFF3O('GFF3_0001'):
|
465
465
|
return True
|
466
|
-
if uri == _namespace_GFF3O('GFF3_0002'):
|
466
|
+
if uri == cls._namespace_GFF3O('GFF3_0002'):
|
467
467
|
return True
|
468
|
-
if uri == _namespace_GFF3O('GFF3_0003'):
|
468
|
+
if uri == cls._namespace_GFF3O('GFF3_0003'):
|
469
469
|
return True
|
470
|
-
if uri == _namespace_GFF3O('GFF3_0016'):
|
470
|
+
if uri == cls._namespace_GFF3O('GFF3_0016'):
|
471
471
|
return True
|
472
|
-
if uri == _namespace_GFF3O('GFF3_0038'):
|
472
|
+
if uri == cls._namespace_GFF3O('GFF3_0038'):
|
473
473
|
return True
|
474
|
-
if uri == _namespace_GFF3O('GFF3_0051'):
|
474
|
+
if uri == cls._namespace_GFF3O('GFF3_0051'):
|
475
475
|
return True
|
476
476
|
return False
|
477
477
|
|
@@ -481,13 +481,13 @@ class GFF3O:
|
|
481
481
|
|
482
482
|
uri -- URI that is tested for being a named individual
|
483
483
|
"""
|
484
|
-
if uri == _namespace_GFF3O('GFF3_0017'):
|
484
|
+
if uri == cls._namespace_GFF3O('GFF3_0017'):
|
485
485
|
return True
|
486
|
-
if uri == _namespace_GFF3O('GFF3_0018'):
|
486
|
+
if uri == cls._namespace_GFF3O('GFF3_0018'):
|
487
487
|
return True
|
488
|
-
if uri == _namespace_GFF3O('GFF3_0019'):
|
488
|
+
if uri == cls._namespace_GFF3O('GFF3_0019'):
|
489
489
|
return True
|
490
|
-
if uri == _namespace_GFF3O('GFF3_0020'):
|
490
|
+
if uri == cls._namespace_GFF3O('GFF3_0020'):
|
491
491
|
return True
|
492
492
|
return False
|
493
493
|
|
@@ -513,11 +513,10 @@ class GFF3O:
|
|
513
513
|
return cls.has_parent(cls.__parent_properties[uri], parent)
|
514
514
|
return False
|
515
515
|
|
516
|
-
|
517
|
-
|
518
|
-
|
519
|
-
return __namespace_GFF3O[accession]
|
516
|
+
@classmethod
|
517
|
+
def _namespace_GFF3O(cls, accession):
|
518
|
+
return Namespace('http://www.biointerchange.org/gff3o#')[accession]
|
520
519
|
|
521
|
-
__parent_properties = {
|
520
|
+
__parent_properties = { Namespace('http://www.biointerchange.org/gff3o#GFF3_0004') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0010') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0012') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0014') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0015') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0025') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0021') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0023') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0025') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0039') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0045') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0044') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0047') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0026') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0050') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0044') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0056') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0025') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0005') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0006') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0007') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0008') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0009') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0011') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0013') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0029') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0022') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0027') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0024') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0027') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0034') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0035') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0036') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0037') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0041') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0040') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0042') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0040') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0043') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0040') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0046') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0048') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0049') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0053') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0052') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0054') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0052') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0055') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0052') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0057') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0028') , Namespace('http://www.biointerchange.org/gff3o#GFF3_0058') : Namespace('http://www.biointerchange.org/gff3o#GFF3_0052') }
|
522
521
|
|
523
522
|
|