Method: Ms::Sequest::Srf::Out::Peptide.read_extra_references

Defined in:
lib/ms/sequest/srf.rb

.read_extra_references(fh, num_extra_references, pep_hits) ⇒ Object



654
655
656
657
658
659
660
661
662
663
# File 'lib/ms/sequest/srf.rb', line 654

def self.read_extra_references(fh, num_extra_references, pep_hits)
  num_extra_references.times do
    # 80 bytes total (with index number)
    pep = pep_hits[fh.read(8).unpack('x4I').first - 1]

    ref = fh.read(80).unpack('A*').first
    pep[11] << Ms::Sequest::Srf::Out::Protein.new(ref[0,38])
  end
  #  fh.read(6) if unpack_35
end