Class: Bio::Assembly

Inherits:
Object
  • Object
show all
Defined in:
lib/bio-assembly.rb,
lib/bio-assembly/ace.rb,
lib/bio-assembly/caf.rb,
lib/bio-assembly/maf.rb,
lib/bio-assembly/read.rb,
lib/bio-assembly/contig.rb

Direct Known Subclasses

Ace, Caf, Maf

Defined Under Namespace

Classes: Ace, Caf, Contig, Maf, Read

Constant Summary collapse

@@formats =
{ }

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.open(path, format) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/bio-assembly.rb', line 11

def self.open(path, format)
   streamer = @@formats[format]
   if streamer
      streamer.new(path)
   else
      raise "Format type '#{format}' is not supported"
   end
end

.register_parser(name) ⇒ Object



20
21
22
# File 'lib/bio-assembly.rb', line 20

def self.register_parser name
   @@formats[name] = self
end

Instance Method Details

#each_contigObject



24
25
26
# File 'lib/bio-assembly.rb', line 24

def each_contig
   # implemented by each format subclass
end