Class: Bio::FinishM::ScaffoldBreaker::Gap
- Inherits:
-
Object
- Object
- Bio::FinishM::ScaffoldBreaker::Gap
- Defined in:
- lib/assembly/scaffold_breaker.rb
Instance Attribute Summary collapse
-
#number ⇒ Object
Returns the value of attribute number.
-
#scaffold ⇒ Object
Returns the value of attribute scaffold.
-
#start ⇒ Object
Returns the value of attribute start.
-
#stop ⇒ Object
Returns the value of attribute stop.
Instance Method Summary collapse
Instance Attribute Details
#number ⇒ Object
Returns the value of attribute number.
81 82 83 |
# File 'lib/assembly/scaffold_breaker.rb', line 81 def number @number end |
#scaffold ⇒ Object
Returns the value of attribute scaffold.
81 82 83 |
# File 'lib/assembly/scaffold_breaker.rb', line 81 def scaffold @scaffold end |
#start ⇒ Object
Returns the value of attribute start.
81 82 83 |
# File 'lib/assembly/scaffold_breaker.rb', line 81 def start @start end |
#stop ⇒ Object
Returns the value of attribute stop.
81 82 83 |
# File 'lib/assembly/scaffold_breaker.rb', line 81 def stop @stop end |
Instance Method Details
#coords ⇒ Object
83 84 85 |
# File 'lib/assembly/scaffold_breaker.rb', line 83 def coords @scaffold.name+':'+(@start+1).to_s+'-'+(@stop).to_s end |
#length ⇒ Object
i.e. the number of N characters that would represent this gap
88 89 90 |
# File 'lib/assembly/scaffold_breaker.rb', line 88 def length @stop-@start+1 end |