Class: Bio::SiRNA::Pair

Inherits:
Object show all
Defined in:
lib/bio/util/sirna.rb

Overview

Bio::SiRNA::Pair

Instance Attribute Summary (collapse)

Instance Method Summary (collapse)

Constructor Details

- (Pair) initialize(target, sense, antisense, start, stop, rule, gc_percent)

Returns a new instance of Pair



193
194
195
196
197
198
199
200
201
# File 'lib/bio/util/sirna.rb', line 193

def initialize(target, sense, antisense, start, stop, rule, gc_percent)
  @target     = target
  @sense      = sense
  @antisense  = antisense
  @start      = start
  @stop       = stop
  @rule       = rule
  @gc_percent = gc_percent
end

Instance Attribute Details

- (Object) antisense

Returns the value of attribute antisense



183
184
185
# File 'lib/bio/util/sirna.rb', line 183

def antisense
  @antisense
end

- (Object) gc_percent

Returns the value of attribute gc_percent



191
192
193
# File 'lib/bio/util/sirna.rb', line 191

def gc_percent
  @gc_percent
end

- (Object) rule

Returns the value of attribute rule



189
190
191
# File 'lib/bio/util/sirna.rb', line 189

def rule
  @rule
end

- (Object) sense

Returns the value of attribute sense



181
182
183
# File 'lib/bio/util/sirna.rb', line 181

def sense
  @sense
end

- (Object) start

Returns the value of attribute start



185
186
187
# File 'lib/bio/util/sirna.rb', line 185

def start
  @start
end

- (Object) stop

Returns the value of attribute stop



187
188
189
# File 'lib/bio/util/sirna.rb', line 187

def stop
  @stop
end

- (Object) target

Returns the value of attribute target



179
180
181
# File 'lib/bio/util/sirna.rb', line 179

def target
  @target
end

Instance Method Details

- (Object) report

human readable report



204
205
206
207
208
209
210
211
212
213
# File 'lib/bio/util/sirna.rb', line 204

def report
  report =  "### siRNA\n"
  report << 'Start: ' + @start.to_s + "\n"
  report << 'Stop:  ' + @stop.to_s  + "\n"
  report << 'Rule:  ' + @rule.to_s  + "\n"
  report << 'GC %:  ' + @gc_percent.to_s  + "\n"
  report << 'Target:    '        + @target.upcase + "\n"
  report << 'Sense:     ' + '  ' + @sense.upcase  + "\n"
  report << 'Antisense: '        + @antisense.reverse.upcase + "\n"
end