Class: Mascot::DAT::PSM

Inherits:
Object
  • Object
show all
Defined in:
lib/mascot/dat/psm.rb

Overview

A single Peptide Spectrum Match (PSM) result. In Mascot parlance, this is a match from a query (e.g. a single MS2 spectrum from a MGF file) to a given peptide. A query may match more than one peptide at a given score, and Mascot will report these in order of descending significance, or “rank”.

From the Mascot documentation, the following represents a reasonably complete PSM entry

q1_p1_db=01  # two digit integer of the search DB index, zero filled and retarded.
q1_p1=missed cleavages, (-1 indicates no match)
      peptide Mr,
      delta,
      number of ions matched,
      peptide string,
      peaks used from Ions1,
      variable modifications string,
      ions score,
      ion series found,
      peaks used from Ions2,
      peaks used from Ions3;
      "accession string":frame number:start:end:multiplicity, # data for first protein
      "accession string":frame number:start:end:multiplicity, # data for second protein, etc.
q1_p1_et_mods=modification mass,
              neutral loss mass,
              modification description
q1_p1_primary_nl=neutral loss string
q1_p1_drange=startPos:endPos
q1_p1_terms=residue,residue:residue,residue # flanking AA for each protien, in order

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(psm_entry) ⇒ Mascot::DAT::PSM

Parameters:

  • psm_entry (Array)

    The multi-line string entry from the Mascot DAT file



51
52
53
# File 'lib/mascot/dat/psm.rb', line 51

def initialize(psm_entry)
  parse_entry(psm_entry)
end

Instance Attribute Details

#attrsObject

Returns the value of attribute attrs.



47
48
49
# File 'lib/mascot/dat/psm.rb', line 47

def attrs
  @attrs
end

#dbsObject

Returns the value of attribute dbs.



45
46
47
# File 'lib/mascot/dat/psm.rb', line 45

def dbs
  @dbs
end

#deltaObject

Returns the value of attribute delta.



35
36
37
# File 'lib/mascot/dat/psm.rb', line 35

def delta
  @delta
end

#ion_series_strObject

Returns the value of attribute ion_series_str.



41
42
43
# File 'lib/mascot/dat/psm.rb', line 41

def ion_series_str
  @ion_series_str
end

#ions1Object

Returns the value of attribute ions1.



38
39
40
# File 'lib/mascot/dat/psm.rb', line 38

def ions1
  @ions1
end

#ions2Object

Returns the value of attribute ions2.



42
43
44
# File 'lib/mascot/dat/psm.rb', line 42

def ions2
  @ions2
end

#ions3Object

Returns the value of attribute ions3.



43
44
45
# File 'lib/mascot/dat/psm.rb', line 43

def ions3
  @ions3
end

#missed_cleavagesObject

Returns the value of attribute missed_cleavages.



33
34
35
# File 'lib/mascot/dat/psm.rb', line 33

def missed_cleavages
  @missed_cleavages
end

#mrObject

Returns the value of attribute mr.



34
35
36
# File 'lib/mascot/dat/psm.rb', line 34

def mr
  @mr
end

#num_ions_matchedObject

Returns the value of attribute num_ions_matched.



36
37
38
# File 'lib/mascot/dat/psm.rb', line 36

def num_ions_matched
  @num_ions_matched
end

#pepObject

Returns the value of attribute pep.



37
38
39
# File 'lib/mascot/dat/psm.rb', line 37

def pep
  @pep
end

#proteinsObject

Returns the value of attribute proteins.



44
45
46
# File 'lib/mascot/dat/psm.rb', line 44

def proteins
  @proteins
end

#queryObject

Returns the value of attribute query.



31
32
33
# File 'lib/mascot/dat/psm.rb', line 31

def query
  @query
end

#rankObject

Returns the value of attribute rank.



32
33
34
# File 'lib/mascot/dat/psm.rb', line 32

def rank
  @rank
end

#scoreObject

Returns the value of attribute score.



40
41
42
# File 'lib/mascot/dat/psm.rb', line 40

def score
  @score
end

#termsObject

Returns the value of attribute terms.



46
47
48
# File 'lib/mascot/dat/psm.rb', line 46

def terms
  @terms
end

#var_mods_strObject

Returns the value of attribute var_mods_str.



39
40
41
# File 'lib/mascot/dat/psm.rb', line 39

def var_mods_str
  @var_mods_str
end