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.



120
121
122
123
124
125
126
127
128
129
130
# File 'lib/bio/appl/blat/report.rb', line 120

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



142
143
144
# File 'lib/bio/appl/blat/report.rb', line 142

def end
  @end
end

#gap_basesObject (readonly)

gap bases



134
135
136
# File 'lib/bio/appl/blat/report.rb', line 134

def gap_bases
  @gap_bases
end

#gap_countObject (readonly)

gap count



132
133
134
# File 'lib/bio/appl/blat/report.rb', line 132

def gap_count
  @gap_count
end

#nameObject (readonly)

name of the sequence



136
137
138
# File 'lib/bio/appl/blat/report.rb', line 136

def name
  @name
end

#seqsObject (readonly)

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



149
150
151
# File 'lib/bio/appl/blat/report.rb', line 149

def seqs
  @seqs
end

#sizeObject (readonly)

length of the sequence



138
139
140
# File 'lib/bio/appl/blat/report.rb', line 138

def size
  @size
end

#startObject (readonly)

start position of the first segment



140
141
142
# File 'lib/bio/appl/blat/report.rb', line 140

def start
  @start
end

#startsObject (readonly)

start positions of segments. Returns an array of numbers.



145
146
147
# File 'lib/bio/appl/blat/report.rb', line 145

def starts
  @starts
end