Class: Bio::Blat::Report::SeqDesc

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

Overview

Bio::Blat::Report::SeqDesc stores sequence information of query or subject of the BLAT report. It also includes some hit information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gap_count, gap_bases, name, size, st, ed, starts, seqs) ⇒ SeqDesc

Creates a new SeqDesc object. It is designed to be called internally from Bio::Blat::Report class. Users shall not use it directly.


161
162
163
164
165
166
167
168
169
170
171
# File 'lib/bio/appl/blat/report.rb', line 161

def initialize(gap_count, gap_bases, name, size,
               st, ed, starts, seqs)
  @gap_count = gap_count.to_i
  @gap_bases = gap_bases.to_i
  @name = name
  @size = size.to_i
  @start = st.to_i
  @end = ed.to_i
  @starts = starts.collect { |x| x.to_i }
  @seqs = seqs
end

Instance Attribute Details

#endObject (readonly)

end position of the final segment


183
184
185
# File 'lib/bio/appl/blat/report.rb', line 183

def end
  @end
end

#gap_basesObject (readonly)

gap bases


175
176
177
# File 'lib/bio/appl/blat/report.rb', line 175

def gap_bases
  @gap_bases
end

#gap_countObject (readonly)

gap count


173
174
175
# File 'lib/bio/appl/blat/report.rb', line 173

def gap_count
  @gap_count
end

#nameObject (readonly)

name of the sequence


177
178
179
# File 'lib/bio/appl/blat/report.rb', line 177

def name
  @name
end

#seqsObject (readonly)

sequences of segments. Returns an array of String. Returns nil if there are no sequence data.


190
191
192
# File 'lib/bio/appl/blat/report.rb', line 190

def seqs
  @seqs
end

#sizeObject (readonly)

length of the sequence


179
180
181
# File 'lib/bio/appl/blat/report.rb', line 179

def size
  @size
end

#startObject (readonly)

start position of the first segment


181
182
183
# File 'lib/bio/appl/blat/report.rb', line 181

def start
  @start
end

#startsObject (readonly)

start positions of segments. Returns an array of numbers.


186
187
188
# File 'lib/bio/appl/blat/report.rb', line 186

def starts
  @starts
end