Class: Bio::Genscan::Report::Gene

Inherits:
Object
  • Object
show all
Defined in:
lib/bio/appl/genscan/report.rb

Overview

Container class of predicted gene structures.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#aaseqObject (readonly)

Returns Bio::FastaFormat object.


211
212
213
# File 'lib/bio/appl/genscan/report.rb', line 211

def aaseq
  @aaseq
end

#exonsObject (readonly)

Returns Array of Bio::Genscan::Report::Exon.


217
218
219
# File 'lib/bio/appl/genscan/report.rb', line 217

def exons
  @exons
end

#naseqObject (readonly)

Returns Bio::FastaFormat object.


214
215
216
# File 'lib/bio/appl/genscan/report.rb', line 214

def naseq
  @naseq
end

#numberObject (readonly)

Returns “Gn”, gene number field.


208
209
210
# File 'lib/bio/appl/genscan/report.rb', line 208

def number
  @number
end

#polyAObject (readonly)

Returns Bio::Genscan::Report::Exon object.


223
224
225
# File 'lib/bio/appl/genscan/report.rb', line 223

def polyA
  @polyA
end

#promoterObject (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