Class: Bio::SiRNA::Pair
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
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
#antisense ⇒ Object
Returns the value of attribute antisense.
183 184 185 |
# File 'lib/bio/util/sirna.rb', line 183 def antisense @antisense end |
#gc_percent ⇒ Object
Returns the value of attribute gc_percent.
191 192 193 |
# File 'lib/bio/util/sirna.rb', line 191 def gc_percent @gc_percent end |
#rule ⇒ Object
Returns the value of attribute rule.
189 190 191 |
# File 'lib/bio/util/sirna.rb', line 189 def rule @rule end |
#sense ⇒ Object
Returns the value of attribute sense.
181 182 183 |
# File 'lib/bio/util/sirna.rb', line 181 def sense @sense end |
#start ⇒ Object
Returns the value of attribute start.
185 186 187 |
# File 'lib/bio/util/sirna.rb', line 185 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
187 188 189 |
# File 'lib/bio/util/sirna.rb', line 187 def stop @stop end |
#target ⇒ Object
Returns the value of attribute target.
179 180 181 |
# File 'lib/bio/util/sirna.rb', line 179 def target @target end |
Instance Method Details
#report ⇒ Object
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 |