Class: MS::Sequest::SqtGroup

Inherits:
Object
  • Object
show all
Includes:
Ident::SearchGroup
Defined in:
lib/ms/sequest/sqt.rb

Instance Method Summary collapse

Constructor Details

#initialize(arg, opts = {}, &block) ⇒ SqtGroup

Returns a new instance of SqtGroup.



24
25
26
27
28
29
30
31
32
33
34
# File 'lib/ms/sequest/sqt.rb', line 24

def initialize(arg, opts={}, &block)
  orig_opts = opts.dup
  indiv_opts = { :link_protein_hits => false }
  super(arg, opts.merge(indiv_opts)) do
    unless orig_opts[:link_protein_hits] == false
      puts "MERGING GROUP!"
      (@peptides, @proteins) = merge!(@searches.map {|v| v.peptides }, &MS::Sequest::Sqt::NEW_PROT)
    end
  end
  block.call(self) if block_given?
end

Instance Method Details

#extensionObject



22
# File 'lib/ms/sequest/sqt.rb', line 22

def extension() 'sqg' end

#search_classObject

attr_accessor :sqts, :filenames



18
19
20
# File 'lib/ms/sequest/sqt.rb', line 18

def search_class
  MS::Sequest::Sqt
end