class Bio::SiRNA::Pair

Bio::SiRNA::Pair

Attributes

antisense[RW]
gc_percent[RW]
rule[RW]
sense[RW]
start[RW]
stop[RW]
target[RW]

Public Class Methods

new(target, sense, antisense, start, stop, rule, gc_percent) click to toggle source
# 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

Public Instance Methods

report() click to toggle source

human readable report

# 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