Class: Bio::Genscan::Report::Gene
- Defined in:
- lib/bio/appl/genscan/report.rb
Overview
Container class of predicted gene structures.
Instance Attribute Summary collapse
-
#aaseq ⇒ Object
readonly
Returns Bio::FastaFormat object.
-
#exons ⇒ Object
readonly
Returns Array of Bio::Genscan::Report::Exon.
-
#naseq ⇒ Object
readonly
Returns Bio::FastaFormat object.
-
#number ⇒ Object
readonly
Returns “Gn”, gene number field.
-
#polyA ⇒ Object
readonly
Returns Bio::Genscan::Report::Exon object.
-
#promoter ⇒ Object
readonly
Returns Bio::Genscan::Report::Exon object.
Instance Method Summary collapse
-
#initialize(gn) ⇒ Gene
constructor
Bio::Genescan::Report::Gene.new(gene_number).
-
#set_aaseq(seq) ⇒ Object
Bio::Genescan::Report::Gene#seq_aaseq.
-
#set_naseq(seq) ⇒ Object
Bio::Genescan::Report::Gene#seq_naseq.
-
#set_polyA(segment) ⇒ Object
Bio::Genescan::Report::Gene#seq_polyA.
-
#set_promoter(segment) ⇒ Object
Bio::Genescan::Report::Gene#seq_promoter.
Constructor Details
#initialize(gn) ⇒ Gene
Bio::Genescan::Report::Gene.new(gene_number)
198 199 200 201 202 203 204 205 |
# File 'lib/bio/appl/genscan/report.rb', line 198 def initialize(gn) @number = gn.to_i @aaseq = Bio::FastaFormat.new("") @naseq = Bio::FastaFormat.new("") @promoter = nil @exons = [] @polyA = nil end |
Instance Attribute Details
#aaseq ⇒ Object (readonly)
Returns Bio::FastaFormat object.
211 212 213 |
# File 'lib/bio/appl/genscan/report.rb', line 211 def aaseq @aaseq end |
#exons ⇒ Object (readonly)
Returns Array of Bio::Genscan::Report::Exon.
217 218 219 |
# File 'lib/bio/appl/genscan/report.rb', line 217 def exons @exons end |
#naseq ⇒ Object (readonly)
Returns Bio::FastaFormat object.
214 215 216 |
# File 'lib/bio/appl/genscan/report.rb', line 214 def naseq @naseq end |
#number ⇒ Object (readonly)
Returns “Gn”, gene number field.
208 209 210 |
# File 'lib/bio/appl/genscan/report.rb', line 208 def number @number end |
#polyA ⇒ Object (readonly)
Returns Bio::Genscan::Report::Exon object.
223 224 225 |
# File 'lib/bio/appl/genscan/report.rb', line 223 def polyA @polyA end |
#promoter ⇒ Object (readonly)
Returns Bio::Genscan::Report::Exon object.
220 221 222 |
# File 'lib/bio/appl/genscan/report.rb', line 220 def promoter @promoter end |
Instance Method Details
#set_aaseq(seq) ⇒ Object
Bio::Genescan::Report::Gene#seq_aaseq
227 228 229 |
# File 'lib/bio/appl/genscan/report.rb', line 227 def set_aaseq(seq) @aaseq = seq end |
#set_naseq(seq) ⇒ Object
Bio::Genescan::Report::Gene#seq_naseq
233 234 235 |
# File 'lib/bio/appl/genscan/report.rb', line 233 def set_naseq(seq) @naseq = seq end |
#set_polyA(segment) ⇒ Object
Bio::Genescan::Report::Gene#seq_polyA
245 246 247 |
# File 'lib/bio/appl/genscan/report.rb', line 245 def set_polyA(segment) @polyA = segment end |
#set_promoter(segment) ⇒ Object
Bio::Genescan::Report::Gene#seq_promoter
239 240 241 |
# File 'lib/bio/appl/genscan/report.rb', line 239 def set_promoter(segment) @promoter = segment end |