This is used to express a typed relationship between two clades. For example it could be used to describe multiple parents of a clade.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 1010 def distance=(str) @distance = str.to_f end
Converts elements to xml representation. Called by PhyloXML::Writer class.
# File lib/bio/db/phyloxml/phyloxml_elements.rb, line 1015 def to_xml if @id_ref_0 == nil or @id_ref_1 == nil or @type == nil raise "Attributes id_ref_0, id_ref_1, type are required elements by SequenceRelation element." else cr = LibXML::XML::Node.new('clade_relation') Writer.generate_xml(cr, self, [ [:attr, 'id_ref_0'], [:attr, 'id_ref_1'], [:attr, 'distance'], [:attr, 'type'], [:complex, 'confidence', @confidnece]]) return cr end end
Generated with the Darkfish Rdoc Generator 2.