Class: Bio::PhyloXML::Tree

Inherits:
Tree show all
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

Tree::DEFAULT_OPTIONS

Instance Attribute Summary collapse

Attributes inherited from Tree

#options, #root

Instance Method Summary collapse

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

#initializeTree

Returns a new instance of Tree.



154
155
156
157
158
159
160
161
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 154

def initialize
  super
  @sequence_relations = []
  @clade_relations = []
  @confidences = []
  @properties = []
  @other = []
end

Instance Attribute Details

#branch_length_unitObject

String.



142
143
144
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 142

def branch_length_unit
  @branch_length_unit
end

#clade_relationsObject

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.



133
134
135
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 133

def clade_relations
  @clade_relations
end

#confidencesObject

Array of confidence object



139
140
141
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 139

def confidences
  @confidences
end

#dateObject

String. Date



148
149
150
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 148

def date
  @date
end

#descriptionObject

String. Description of tree.



121
122
123
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 121

def description
  @description
end

#nameObject

String. Name of tree (name subelement of phylogeny element).



115
116
117
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 115

def name
  @name
end

#otherObject

Array of Other objects. Used to save additional information from other than PhyloXML namspace.



152
153
154
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 152

def other
  @other
end

#phylogeny_idObject

Id object.



118
119
120
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 118

def phylogeny_id
  @phylogeny_id
end

#propertiesObject

Array of Property object. Allows for typed and referenced properties from external resources to be attached.



130
131
132
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 130

def properties
  @properties
end

#rerootableObject

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).



124
125
126
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 124

def rerootable
  @rerootable
end

#rootedObject

Boolean. Required element.



127
128
129
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 127

def rooted
  @rooted
end

#sequence_relationsObject

SequenceRelation object. This is used to express a typed relationship between two sequences. For example it could be used to describe an orthology.



136
137
138
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 136

def sequence_relations
  @sequence_relations
end

#typeObject

String. Indicate the type of phylogeny (i.e. ‘gene tree’).



145
146
147
# File 'lib/bio/db/phyloxml/phyloxml_elements.rb', line 145

def type
  @type
end