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
193 def initialize(target, sense, antisense, start, stop, rule, gc_percent)
194   @target     = target
195   @sense      = sense
196   @antisense  = antisense
197   @start      = start
198   @stop       = stop
199   @rule       = rule
200   @gc_percent = gc_percent
201 end

Public Instance Methods

report() click to toggle source

human readable report

    # File lib/bio/util/sirna.rb
204 def report
205   report =  "### siRNA\n"
206   report << 'Start: ' + @start.to_s + "\n"
207   report << 'Stop:  ' + @stop.to_s  + "\n"
208   report << 'Rule:  ' + @rule.to_s  + "\n"
209   report << 'GC %:  ' + @gc_percent.to_s  + "\n"
210   report << 'Target:    '        + @target.upcase + "\n"
211   report << 'Sense:     ' + '  ' + @sense.upcase  + "\n"
212   report << 'Antisense: '        + @antisense.reverse.upcase + "\n"
213 end