Class: Bio::GenPept::Locus
Overview
LOCUS
Instance Attribute Summary collapse
-
#circular ⇒ Object
Returns the value of attribute circular.
-
#date ⇒ Object
Returns the value of attribute date.
-
#division ⇒ Object
Returns the value of attribute division.
-
#entry_id ⇒ Object
Returns the value of attribute entry_id.
-
#length ⇒ Object
Returns the value of attribute length.
Instance Method Summary collapse
-
#initialize(locus_line) ⇒ Locus
constructor
A new instance of Locus.
Constructor Details
#initialize(locus_line) ⇒ Locus
Returns a new instance of Locus.
20 21 22 23 24 25 26 |
# File 'lib/bio/db/genbank/genpept.rb', line 20 def initialize(locus_line) @entry_id = locus_line[12..27].strip @length = locus_line[29..39].to_i @circular = locus_line[55..62].strip # always linear @division = locus_line[63..66].strip @date = locus_line[68..78].strip end |
Instance Attribute Details
#circular ⇒ Object
Returns the value of attribute circular.
27 28 29 |
# File 'lib/bio/db/genbank/genpept.rb', line 27 def circular @circular end |
#date ⇒ Object
Returns the value of attribute date.
27 28 29 |
# File 'lib/bio/db/genbank/genpept.rb', line 27 def date @date end |
#division ⇒ Object
Returns the value of attribute division.
27 28 29 |
# File 'lib/bio/db/genbank/genpept.rb', line 27 def division @division end |
#entry_id ⇒ Object
Returns the value of attribute entry_id.
27 28 29 |
# File 'lib/bio/db/genbank/genpept.rb', line 27 def entry_id @entry_id end |
#length ⇒ Object
Returns the value of attribute length.
27 28 29 |
# File 'lib/bio/db/genbank/genpept.rb', line 27 def length @length end |