Sha256: d1d6fe01396bd585e66e8a2f95b252d118c955b6d80e691644df27f57e9db620
Contents?: true
Size: 794 Bytes
Versions: 5
Compression:
Stored size: 794 Bytes
Contents
#!/usr/bin/ruby require 'rubygems' require 'biointerchange' include BioInterchange # Get the URI of an ontology term by label: GFF3O.seqid() # Ambiguous labels will return an array of URIs: # "start" can refer to a sub-property of "feature_properties" or "target_properties" GFF3O.start() # "feature_properties" can be either a datatype or object property GFF3O.feature_properties() # Use build-in method "is_datatype_property" to resolve ambiguity: # (Note: there is exactly one item in the result set, so the selection of the first item is acceptable.) feature_properties = GFF3O.feature_properties().select { |uri| GFF3O.is_datatype_property(uri) }[0] # Use build-in method "with_parent" to pick properties based on their context: GFF3O.with_parent(GFF3O.start(), feature_properties)
Version data entries
5 entries across 5 versions & 1 rubygems