Class: Bio::FANTOM::MaXML::Cluster
Constant Summary
collapse
- Data_XPath =
'maxml-clusters/cluster'
DELIMITER
Instance Attribute Summary
#elem
Instance Method Summary
collapse
#entry_id, #gsub_entities, #initialize, #to_s
Methods inherited from DB
#entry_id, #exists?, #fetch, #get, open, #tags
Instance Method Details
#representative_annotations ⇒ Object
145
146
147
148
|
# File 'lib/bio/db/fantom.rb', line 145
def representative_annotations
e = representative_sequence
e ? e.annotations : nil
end
|
#representative_cloneid ⇒ Object
150
151
152
153
|
# File 'lib/bio/db/fantom.rb', line 150
def representative_cloneid
e = representative_sequence
e ? e.cloneid : nil
end
|
#representative_seqid ⇒ Object
116
117
118
119
120
121
122
|
# File 'lib/bio/db/fantom.rb', line 116
def representative_seqid
unless defined?(@representative_seqid)
@representative_seqid =
gsub_entities(@elem.text('representative-seqid'))
end
@representative_seqid
end
|
#representative_sequence ⇒ Object
Also known as:
representative_clone
135
136
137
138
139
140
141
142
|
# File 'lib/bio/db/fantom.rb', line 135
def representative_sequence
unless defined?(@representative_sequence)
rid = representative_seqid
@representative_sequence =
rid ? sequences[representative_seqid] : nil
end
@representative_sequence
end
|
#sequence(idstr = nil) ⇒ Object
131
132
133
|
# File 'lib/bio/db/fantom.rb', line 131
def sequence(idstr = nil)
idstr ? sequences[idstr] : representative_sequence
end
|
#sequences ⇒ Object
124
125
126
127
128
129
|
# File 'lib/bio/db/fantom.rb', line 124
def sequences
unless defined?(@sequences)
@sequences = MaXML::Sequences.new(@elem)
end
@sequences
end
|