class Bio::FlatFileIndex::Indexer::Parser::GenBankParser

Constants

NAMESTYLE
PRIMARY

Public Class Methods

new(pri_name = nil, sec_names = nil) click to toggle source
# File lib/bio/io/flatfile/indexer.rb, line 183
def initialize(pri_name = nil, sec_names = nil)
  super()
  self.format = 'genbank'
  self.dbclass = Bio::GenBank
  self.set_primary_namespace((pri_name or PRIMARY))
  unless sec_names then
    sec_names = []
    @namestyle.each_value do |x|
      sec_names << x.name if x.name != self.primary.name
    end
  end
  self.add_secondary_namespaces(*sec_names)
end