Class: Bio::PhyloXML::Tree

Inherits:
Tree
  • Object
show all
Defined in:
lib/bio-phyloxml/phyloxml_elements.rb

Overview

Object to hold one phylogeny element (and its subelements.) Extended version of Bio::Tree.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeTree

Returns a new instance of Tree.



143
144
145
146
147
148
149
150
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 143

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

Instance Attribute Details

#branch_length_unitObject

String.



131
132
133
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 131

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.



122
123
124
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 122

def clade_relations
  @clade_relations
end

#confidencesObject

Array of confidence object



128
129
130
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 128

def confidences
  @confidences
end

#dateObject

String. Date



137
138
139
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 137

def date
  @date
end

#descriptionObject

String. Description of tree.



110
111
112
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 110

def description
  @description
end

#nameObject

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



104
105
106
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 104

def name
  @name
end

#otherObject

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



141
142
143
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 141

def other
  @other
end

#phylogeny_idObject

Id object.



107
108
109
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 107

def phylogeny_id
  @phylogeny_id
end

#propertiesObject

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



119
120
121
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 119

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



113
114
115
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 113

def rerootable
  @rerootable
end

#rootedObject

Boolean. Required element.



116
117
118
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 116

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.



125
126
127
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 125

def sequence_relations
  @sequence_relations
end

#typeObject

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



134
135
136
# File 'lib/bio-phyloxml/phyloxml_elements.rb', line 134

def type
  @type
end