class Bio::GenPept::Locus

LOCUS

Attributes

circular[RW]
date[RW]
division[RW]
entry_id[RW]
length[RW]

Public Class Methods

new(locus_line) click to toggle source
# 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