Module: Ms::Fasta

Extended by:
Header
Defined in:
lib/ms/fasta.rb,
lib/ms/fasta/ipi.rb,
lib/ms/fasta/entry.rb,
lib/ms/fasta/header.rb,
lib/ms/fasta/archive.rb,
lib/ms/fasta/ipi/dat.rb

Defined Under Namespace

Modules: Header, Ipi Classes: Archive, Entry

Class Method Summary collapse

Methods included from Header

filetype, header_to_filetype, id_regexp

Class Method Details

.foreach(*args, &block) ⇒ Object



18
19
20
21
22
# File 'lib/ms/fasta.rb', line 18

def self.foreach(*args, &block)
  Ms::Fasta::Archive.open(*args) do |fasta|
    fasta.each(&block)
  end
end

.new(*args, &block) ⇒ Object



6
7
8
# File 'lib/ms/fasta.rb', line 6

def self.new(*args, &block)
  Ms::Fasta::Archive.new(*args, &block).reindex
end

.open(*args, &block) ⇒ Object

end



14
15
16
# File 'lib/ms/fasta.rb', line 14

def self.open(*args, &block)
  Ms::Fasta::Archive.open(*args, &block)
end