Class: Bio::SiRNA::Pair
- Inherits:
-
Object
- Object
- Bio::SiRNA::Pair
- Defined in:
- lib/bio/util/sirna.rb
Overview
Bio::SiRNA::Pair
Instance Attribute Summary collapse
-
#antisense ⇒ Object
Returns the value of attribute antisense.
-
#gc_percent ⇒ Object
Returns the value of attribute gc_percent.
-
#rule ⇒ Object
Returns the value of attribute rule.
-
#sense ⇒ Object
Returns the value of attribute sense.
-
#start ⇒ Object
Returns the value of attribute start.
-
#stop ⇒ Object
Returns the value of attribute stop.
-
#target ⇒ Object
Returns the value of attribute target.
Instance Method Summary collapse
-
#initialize(target, sense, antisense, start, stop, rule, gc_percent) ⇒ Pair
constructor
A new instance of Pair.
-
#report ⇒ Object
human readable report.
Constructor Details
#initialize(target, sense, antisense, start, stop, rule, gc_percent) ⇒ Pair
194 195 196 197 198 199 200 201 202 |
# File 'lib/bio/util/sirna.rb', line 194 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
#antisense ⇒ Object
Returns the value of attribute antisense.
184 185 186 |
# File 'lib/bio/util/sirna.rb', line 184 def antisense @antisense end |
#gc_percent ⇒ Object
Returns the value of attribute gc_percent.
192 193 194 |
# File 'lib/bio/util/sirna.rb', line 192 def gc_percent @gc_percent end |
#rule ⇒ Object
Returns the value of attribute rule.
190 191 192 |
# File 'lib/bio/util/sirna.rb', line 190 def rule @rule end |
#sense ⇒ Object
Returns the value of attribute sense.
182 183 184 |
# File 'lib/bio/util/sirna.rb', line 182 def sense @sense end |
#start ⇒ Object
Returns the value of attribute start.
186 187 188 |
# File 'lib/bio/util/sirna.rb', line 186 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
188 189 190 |
# File 'lib/bio/util/sirna.rb', line 188 def stop @stop end |
#target ⇒ Object
Returns the value of attribute target.
180 181 182 |
# File 'lib/bio/util/sirna.rb', line 180 def target @target end |
Instance Method Details
#report ⇒ Object
human readable report
205 206 207 208 209 210 211 212 213 214 |
# File 'lib/bio/util/sirna.rb', line 205 def report report = "### siRNA\n".dup 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 |