Class: Bio::PhyloXML::Tree
- Defined in:
- lib/bio/db/phyloxml/phyloxml_elements.rb
Overview
Object to hold one phylogeny element (and its subelements.) Extended version of Bio::Tree.
Constant Summary
Constants inherited from Tree
Instance Attribute Summary collapse
-
#branch_length_unit ⇒ Object
String.
-
#clade_relations ⇒ Object
CladeRelation object.
-
#confidences ⇒ Object
Array of confidence object.
-
#date ⇒ Object
String.
-
#description ⇒ Object
String.
-
#name ⇒ Object
String.
-
#other ⇒ Object
Array of Other objects.
-
#phylogeny_id ⇒ Object
Id object.
-
#properties ⇒ Object
Array of Property object.
-
#rerootable ⇒ Object
Boolean.
-
#rooted ⇒ Object
Boolean.
-
#sequence_relations ⇒ Object
SequenceRelation object.
-
#type ⇒ Object
String.
Attributes inherited from Tree
Instance Method Summary collapse
-
#initialize ⇒ Tree
constructor
A new instance of Tree.
Methods inherited from Tree
#add_edge, #add_node, #adjacency_matrix, #adjacent_nodes, #ancestors, #children, #clear, #clear_node, #collect_edge!, #collect_node!, #concat, #descendents, #distance, #distance_matrix, #each_edge, #each_edge_in_path, #each_node, #each_out_edge, #edges, #get_edge, #get_edge_distance, #get_edge_distance_string, #get_edge_merged, #get_node_bootstrap, #get_node_bootstrap_string, #get_node_by_name, #get_node_name, #include?, #insert_node, #leaves, #lowest_common_ancestor, #nodes, #number_of_edges, #number_of_nodes, #out_degree, #out_edges, #output, #output_newick, #output_nhx, #output_phylip_distance_matrix, #parent, #path, #remove_edge, #remove_edge_if, #remove_node, #remove_node_if, #remove_nonsense_nodes, #subtree, #subtree_with_all_paths, #total_distance
Constructor Details
#initialize ⇒ Tree
Returns a new instance of Tree.
155 156 157 158 159 160 161 162 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 155 def initialize super @sequence_relations = [] @clade_relations = [] @confidences = [] @properties = [] @other = [] end |
Instance Attribute Details
#branch_length_unit ⇒ Object
String.
143 144 145 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 143 def branch_length_unit @branch_length_unit end |
#clade_relations ⇒ Object
CladeRelation object. This is used to express a typed relationship between two clades. For example it could be used to describe multiple parents of a clade.
134 135 136 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 134 def clade_relations @clade_relations end |
#confidences ⇒ Object
Array of confidence object
140 141 142 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 140 def confidences @confidences end |
#date ⇒ Object
String. Date
149 150 151 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 149 def date @date end |
#description ⇒ Object
String. Description of tree.
122 123 124 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 122 def description @description end |
#name ⇒ Object
String. Name of tree (name subelement of phylogeny element).
116 117 118 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 116 def name @name end |
#other ⇒ Object
Array of Other objects. Used to save additional information from other than PhyloXML namspace.
153 154 155 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 153 def other @other end |
#phylogeny_id ⇒ Object
Id object.
119 120 121 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 119 def phylogeny_id @phylogeny_id end |
#properties ⇒ Object
Array of Property object. Allows for typed and referenced properties from external resources to be attached.
131 132 133 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 131 def properties @properties end |
#rerootable ⇒ Object
Boolean. Can be used to indicate that the phylogeny is not allowed to be rooted differently (i.e. because it is associated with root dependent data, such as gene duplications).
125 126 127 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 125 def rerootable @rerootable end |
#rooted ⇒ Object
Boolean. Required element.
128 129 130 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 128 def rooted @rooted end |
#sequence_relations ⇒ Object
SequenceRelation object. This is used to express a typed relationship between two sequences. For example it could be used to describe an orthology.
137 138 139 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 137 def sequence_relations @sequence_relations end |
#type ⇒ Object
String. Indicate the type of phylogeny (i.e. ‘gene tree’).
146 147 148 |
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 146 def type @type end |