class Bio::PhyloXML::DomainArchitecture
Description¶ ↑
This is used describe the domain architecture of a protein. Attribute ‘length’ is the total length of the protein
Attributes
domains[R]
Array of ProteinDomain
objects.
length[R]
Integer. Total length of the protein
Public Class Methods
new()
click to toggle source
# File lib/bio-phyloxml/phyloxml_elements.rb 850 def initialize 851 @domains = [] 852 end
Public Instance Methods
length=(str)
click to toggle source
Integer. Total length of the protein
# File lib/bio-phyloxml/phyloxml_elements.rb 846 def length=(str) 847 @length = str.to_i 848 end
to_xml()
click to toggle source
Converts elements to xml representation. Called by PhyloXML::Writer
class.
# File lib/bio-phyloxml/phyloxml_elements.rb 855 def to_xml 856 xml_node = LibXML::XML::Node.new('domain_architecture') 857 PhyloXML::Writer.generate_xml(xml_node, self,[ 858 [:attr, 'length'], 859 [:objarr, 'domain', 'domains']]) 860 return xml_node 861 end