Class: Mascot::DAT::PSM
- Inherits:
-
Object
- Object
- Mascot::DAT::PSM
- 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
-
#attrs ⇒ Object
Returns the value of attribute attrs.
-
#dbs ⇒ Object
Returns the value of attribute dbs.
-
#delta ⇒ Object
Returns the value of attribute delta.
-
#ion_series_str ⇒ Object
Returns the value of attribute ion_series_str.
-
#ions1 ⇒ Object
Returns the value of attribute ions1.
-
#ions2 ⇒ Object
Returns the value of attribute ions2.
-
#ions3 ⇒ Object
Returns the value of attribute ions3.
-
#missed_cleavages ⇒ Object
Returns the value of attribute missed_cleavages.
-
#mr ⇒ Object
Returns the value of attribute mr.
-
#num_ions_matched ⇒ Object
Returns the value of attribute num_ions_matched.
-
#pep ⇒ Object
Returns the value of attribute pep.
-
#proteins ⇒ Object
Returns the value of attribute proteins.
-
#query ⇒ Object
Returns the value of attribute query.
-
#rank ⇒ Object
Returns the value of attribute rank.
-
#score ⇒ Object
Returns the value of attribute score.
-
#terms ⇒ Object
Returns the value of attribute terms.
-
#var_mods_str ⇒ Object
Returns the value of attribute var_mods_str.
Instance Method Summary collapse
- #initialize(psm_entry) ⇒ Mascot::DAT::PSM constructor
Constructor Details
#initialize(psm_entry) ⇒ Mascot::DAT::PSM
51 52 53 |
# File 'lib/mascot/dat/psm.rb', line 51 def initialize(psm_entry) parse_entry(psm_entry) end |
Instance Attribute Details
#attrs ⇒ Object
Returns the value of attribute attrs.
47 48 49 |
# File 'lib/mascot/dat/psm.rb', line 47 def attrs @attrs end |
#dbs ⇒ Object
Returns the value of attribute dbs.
45 46 47 |
# File 'lib/mascot/dat/psm.rb', line 45 def dbs @dbs end |
#delta ⇒ Object
Returns the value of attribute delta.
35 36 37 |
# File 'lib/mascot/dat/psm.rb', line 35 def delta @delta end |
#ion_series_str ⇒ Object
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 |
#ions1 ⇒ Object
Returns the value of attribute ions1.
38 39 40 |
# File 'lib/mascot/dat/psm.rb', line 38 def ions1 @ions1 end |
#ions2 ⇒ Object
Returns the value of attribute ions2.
42 43 44 |
# File 'lib/mascot/dat/psm.rb', line 42 def ions2 @ions2 end |
#ions3 ⇒ Object
Returns the value of attribute ions3.
43 44 45 |
# File 'lib/mascot/dat/psm.rb', line 43 def ions3 @ions3 end |
#missed_cleavages ⇒ Object
Returns the value of attribute missed_cleavages.
33 34 35 |
# File 'lib/mascot/dat/psm.rb', line 33 def missed_cleavages @missed_cleavages end |
#mr ⇒ Object
Returns the value of attribute mr.
34 35 36 |
# File 'lib/mascot/dat/psm.rb', line 34 def mr @mr end |
#num_ions_matched ⇒ Object
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 |
#pep ⇒ Object
Returns the value of attribute pep.
37 38 39 |
# File 'lib/mascot/dat/psm.rb', line 37 def pep @pep end |
#proteins ⇒ Object
Returns the value of attribute proteins.
44 45 46 |
# File 'lib/mascot/dat/psm.rb', line 44 def proteins @proteins end |
#query ⇒ Object
Returns the value of attribute query.
31 32 33 |
# File 'lib/mascot/dat/psm.rb', line 31 def query @query end |
#rank ⇒ Object
Returns the value of attribute rank.
32 33 34 |
# File 'lib/mascot/dat/psm.rb', line 32 def rank @rank end |
#score ⇒ Object
Returns the value of attribute score.
40 41 42 |
# File 'lib/mascot/dat/psm.rb', line 40 def score @score end |
#terms ⇒ Object
Returns the value of attribute terms.
46 47 48 |
# File 'lib/mascot/dat/psm.rb', line 46 def terms @terms end |
#var_mods_str ⇒ Object
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 |