Class: Bio::Taxonomy
Overview
This is general Taxonomy class.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#authority ⇒ Object
is used to keep the authority, such as ‘J.
-
#code ⇒ Object
pattern = [a-zA-Z0-9_]2,10 Can refer to any code/abbreviation/mnemonic, such as Bsu for Bacillus subtilis.
-
#common_names ⇒ Object
An array of strings.
-
#rank ⇒ Object
value comes from list: domain kingdom, subkingdom, branch, infrakingdom, superphylum, phylum, subphylum, infraphylum, microphylum, superdivision, division, subdivision, infradivision, superclass, class, subclass, infraclass, superlegion, legion, sublegion, infralegion, supercohort, cohort, subcohort, infracohort, superorder, order, suborder, superfamily, family, subfamily, supertribe, tribe, subtribe, infratribe, genus, subgenus, superspecies, species, subspecies, variety, subvariety, form, subform, cultivar, unknown, other.
-
#scientific_name ⇒ Object
String.
-
#synonyms ⇒ Object
An array of strings.
Instance Method Summary collapse
-
#initialize ⇒ Taxonomy
constructor
A new instance of Taxonomy.
Constructor Details
#initialize ⇒ Taxonomy
Returns a new instance of Taxonomy.
64 65 66 67 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 64 def initialize @common_names = [] @synonyms = [] end |
Instance Attribute Details
#authority ⇒ Object
is used to keep the authority, such as ‘J. G. Cooper, 1863’, associated with the ‘scientific_name’.
58 59 60 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 58 def @authority end |
#code ⇒ Object
pattern = [a-zA-Z0-9_]2,10 Can refer to any code/abbreviation/mnemonic, such as Bsu for Bacillus subtilis.
40 41 42 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 40 def code @code end |
#common_names ⇒ Object
An array of strings
45 46 47 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 45 def common_names @common_names end |
#rank ⇒ Object
value comes from list: domain kingdom, subkingdom, branch, infrakingdom, superphylum, phylum, subphylum, infraphylum, microphylum, superdivision, division, subdivision, infradivision, superclass, class, subclass, infraclass, superlegion, legion, sublegion, infralegion, supercohort, cohort, subcohort, infracohort, superorder, order, suborder, superfamily, family, subfamily, supertribe, tribe, subtribe, infratribe, genus, subgenus, superspecies, species, subspecies, variety, subvariety, form, subform, cultivar, unknown, other
55 56 57 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 55 def rank @rank end |
#scientific_name ⇒ Object
String.
43 44 45 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 43 def scientific_name @scientific_name end |
#synonyms ⇒ Object
An array of strings. Holds synonyms for scientific names or common names.
61 62 63 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 61 def synonyms @synonyms end |