A peptide that has been matched, in quantitation, to a protein hit. More...
#include <ms_ms1quant_match.hpp>
Inherits ms_handle.
Public Types | |
enum | chargeType { CHARGETYPE_ORIGINAL , CHARGETYPE_ALL } |
Types of charge state used when matching. More... | |
Public Member Functions | |
ms_ms1quant_match () | |
Default constructor; for standard library collections. | |
ms_ms1quant_match (const ms_ms1quant_match_body &body) | |
Populated constructor, linked to loaded data. | |
ms_ms1quant_match_component * | addComponent (const matrix_science::ms_ms1quant_match_component &component) |
Add a new component to the list. Must already have a component to base this one on. | |
ms_ms1quant_match_component * | addCreatedComponent (const matrix_science::ms_ms1quant_match_component &component) |
Add a new component to the list. Must already have a component to base this one on. | |
ms_ms1quant_match_component * | addCreatedComponent (const std::string &componentName) |
bool | allComponentsIdentified () const |
Check if all the match components were identified by Mascot. | |
void | clearHitRatioExcluded (const std::string &ratioName, int hitId, int memberNumber) |
Clear the match ratio from being excluded from a hit. | |
void | clearHitRatioOutlier (const std::string &ratioName, int hitId, int memberNumber) |
Clear the match ratio from being an outlier for a hit. | |
int | getChargeState () const |
Get the ion charge state. | |
ms_ms1quant_charge_state | getChargeStateData () const |
Get the charge state data. | |
chargeType | getChargeType () const |
Get whether this charge state has been extrapolated from the charge state of a Mascot match. | |
ms_ms1quant_match_component | getComponent (int index) const |
Get a component associated with this match by its index (1..getNumComponents). | |
ms_ms1quant_match_component | getComponent (std::string componentName) const |
Get a component of the matched peptide. | |
std::string | getConciseLabelFreeVarMods () const |
Get the concise (un-numbered) readable variable modifications. | |
const ms_matrix & | getCorrectionMatrix () const |
Get the correction matrix A, product of J (averagine) and I (impurity). | |
int | getDataSourceId () const |
Get the data source identifier if processed independantly. | |
double | getDisplayIntensity () const |
Get the total intensity of fitted peaks across the XIC peak. | |
int | getFirstXicScanId () const |
Get the first scan of all the scans processed in the search for an XIC peak. Can be a wide region. | |
const ms_protein * | getHit (int index1) const |
Get a protein hit associated with this match by its index (1..getNumHits). | |
matrix_science::ms_peptide_quant_key | getKey () const |
Get a ms_peptide_quant_key code identifying the individual match. | |
std::string | getLabelFreeVarMods () const |
Get the variable modification identifiers, with the labels removed. | |
int | getLastXicScanId () const |
Get the last scan of all the scans processed in the search for an XIC peak. Can be a wide region.. | |
int | getNumComponents () const |
Get the number of components associated with this match. | |
int | getNumHits () const |
Get the number of protein hits associated with this match. | |
int | getNumPeptideRatios () const |
Get the number of peptide ratios associated with this match. | |
ms_ms1quant_match_ratio | getPeptideRatio (const std::string &ratioName) const |
Get a peptide ratio value for the ratio name. | |
ms_ms1quant_match_ratio | getPeptideRatio (int index) const |
Get a peptide ratio associated with this match by its index (0..getNumPeptideRatios-1). | |
std::string | getPeptideString () const |
Get the peptide sequence in 1-letter code. | |
const ms_matrix & | getPerfectObservedMatrix () const |
Get the predicted stick spectrum for measured amounts of each component. | |
const ms_matrix & | getPredictionMatrix () const |
Get the predicted stick spectrum for equal amounts of each component. | |
std::string | getReadableLabelFreeVarMods () const |
Get the readable variable modifications. | |
std::string | getVarMods () const |
Get the variable modifications encoded as string of integers. | |
bool | hasComponent (std::string componentName) const |
Returns true if the matched peptide has the component. | |
bool | hasIdentifiedComponent () const |
Check if the match has any component that was identified by Mascot. | |
bool | hasPeptideRatio (const std::string &ratioName) const |
Returns true if the match has a peptide ratio value for the ratio name. | |
bool | isHitRatioExcluded (const std::string &ratioName, int hitId, int memberNumber) const |
Returns true if the match ratio is excluded from a hit. | |
bool | isHitRatioOutlier (const std::string &ratioName, int hitId, int memberNumber) const |
Returns true if the match ratio is an outlier for a hit. | |
bool | isHitRatioUsedForAverage (const std::string &ratioName, int hitId, int memberNumber) const |
Returns true if the match ratio is used in the average quantitation protocol for a hit. | |
bool | removeComponent (const std::string &componentName) |
Primarily for replicate where we want to remove components that are found in other files. | |
void | setHitRatioExcluded (const std::string &ratioName, int hitId, int memberNumber) |
Set the match ratio to be excluded from a hit. | |
void | setHitRatioOutlier (const std::string &ratioName, int hitId, int memberNumber) |
Set the match ratio to be an outlier for a hit. | |
Static Public Member Functions | |
static chargeType | getCodeFromXml (std::string text) |
Get the charge type code for an XML attribute value. | |
static std::string | getXmlCode (chargeType code) |
Get the XML attribute value for a charge type code. | |
A peptide that has been matched, in quantitation, to a protein hit.
Each protein can be matched to a number of peptides. The quantitation ratios of these peptides are used to determine the quantitaion ratio of the protein.
A peptide match can have a number of labelled components (such as 'heavy' and 'light') that are determined by the modifications.
This is stored in XML in a "peptideMatch" entity.
enum chargeType |
Types of charge state used when matching.
See Using enumerated values and static const ints in Perl, Java, Python and C#.
Enumerator | |
---|---|
CHARGETYPE_ORIGINAL | Charge state found in result file. |
CHARGETYPE_ALL | Match created in all charge states. |
Default constructor; for standard library collections.
Assigns reasonable default values to all internal members.
ms_ms1quant_match | ( | const ms_ms1quant_match_body & | body | ) |
Populated constructor, linked to loaded data.
body | The data loaded from the result file. |
ms_ms1quant_match_component * addComponent | ( | const matrix_science::ms_ms1quant_match_component & | component | ) |
Add a new component to the list. Must already have a component to base this one on.
Primarily for replicate. Take the first component for this match, make a copy of it and add it to the match, leving the it's origin unaltered
component | is the new component to be added |
ms_ms1quant_match_component * addCreatedComponent | ( | const matrix_science::ms_ms1quant_match_component & | component | ) |
Add a new component to the list. Must already have a component to base this one on.
Primarily for replicate. Take the first component for this match, make a copy of it and add it to the match, and set it's origin to be 'created'
component | is the new component to be added |
ms_ms1quant_match_component * addCreatedComponent | ( | const std::string & | componentName | ) |
Primarily for replicate. Take the first component for this match, make a copy of it and add it to the match
componentName | is the name of the new component to be added |
bool allComponentsIdentified | ( | ) | const |
Check if all the match components were identified by Mascot.
Tests to see if all the components were identified by Mascot. This method can return false event if hasIdentifiedComponent() returns true, as that method only requires one of the components to have been identified
void clearHitRatioExcluded | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) |
Clear the match ratio from being excluded from a hit.
Clears any excluded status for the match in the specified protein ratio.
ratioName | The name of the ratio. |
hitId | One based protein hit number. |
memberNumber | One based family member number. |
void clearHitRatioOutlier | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) |
Clear the match ratio from being an outlier for a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | Protein hit number. |
memberNumber | Family member number. |
int getChargeState | ( | ) | const |
Get the ion charge state.
matrix_science::ms_ms1quant_charge_state getChargeStateData | ( | ) | const |
Get the charge state data.
ms_ms1quant_match::chargeType getChargeType | ( | ) | const |
Get whether this charge state has been extrapolated from the charge state of a Mascot match.
|
static |
Get the charge type code for an XML attribute value.
text | The string used to encode the charge type in the XML file. |
ms_ms1quant_match_component getComponent | ( | int | index | ) | const |
Get a component associated with this match by its index (1..getNumComponents).
index | An index (1..getNumComponents()) into the components associated with the peptide match. |
ms_ms1quant_match_component getComponent | ( | std::string | componentName | ) | const |
Get a component of the matched peptide.
componentName | The name of component to be retrieved, e.g. "Heavy". |
std::string getConciseLabelFreeVarMods | ( | ) | const |
Get the concise (un-numbered) readable variable modifications.
For example: "Dimethyl (KR); Acetyl (K); Methyl (KR)".
const matrix_science::ms_matrix & getCorrectionMatrix | ( | ) | const |
Get the correction matrix A, product of J (averagine) and I (impurity).
int getDataSourceId | ( | ) | const |
Get the data source identifier if processed independantly.
double getDisplayIntensity | ( | ) | const |
Get the total intensity of fitted peaks across the XIC peak.
int getFirstXicScanId | ( | ) | const |
Get the first scan of all the scans processed in the search for an XIC peak. Can be a wide region.
const matrix_science::ms_protein * getHit | ( | int | index1 | ) | const |
Get a protein hit associated with this match by its index (1..getNumHits).
index1 | An index (1..getNumHits()) into the protein hits associated with the peptide match. |
matrix_science::ms_peptide_quant_key getKey | ( | ) | const |
Get a ms_peptide_quant_key code identifying the individual match.
std::string getLabelFreeVarMods | ( | ) | const |
Get the variable modification identifiers, with the labels removed.
For example: "00000100000043000009a2000".
int getLastXicScanId | ( | ) | const |
Get the last scan of all the scans processed in the search for an XIC peak. Can be a wide region..
int getNumComponents | ( | ) | const |
Get the number of components associated with this match.
int getNumHits | ( | ) | const |
Get the number of protein hits associated with this match.
Not all peptide matches are associated with every protein. This returns the number of proteins that are matched to this particular peptide and is typically less than the number of proteins in the peptide summary.
int getNumPeptideRatios | ( | ) | const |
Get the number of peptide ratios associated with this match.
matrix_science::ms_ms1quant_match_ratio getPeptideRatio | ( | const std::string & | ratioName | ) | const |
Get a peptide ratio value for the ratio name.
Peptide ratio data that is independent of the assigned protein hit. To find out whether a match has been accepted or rejected under a particular protein hit, need to look under isHitRatioExcluded().
ratioName | The name of ratio to be searched for, e.g. "H/L". |
matrix_science::ms_ms1quant_match_ratio getPeptideRatio | ( | int | index | ) | const |
Get a peptide ratio associated with this match by its index (0..getNumPeptideRatios-1).
index | An index (0..getNumPeptideRatios()-1) into the peptide ratios associated with the match. |
std::string getPeptideString | ( | ) | const |
Get the peptide sequence in 1-letter code.
const matrix_science::ms_matrix & getPerfectObservedMatrix | ( | ) | const |
Get the predicted stick spectrum for measured amounts of each component.
const matrix_science::ms_matrix & getPredictionMatrix | ( | ) | const |
Get the predicted stick spectrum for equal amounts of each component.
std::string getReadableLabelFreeVarMods | ( | ) | const |
Get the readable variable modifications.
For example: "(1) Dimethyl (KR); (6) Acetyl (K); (9) Methyl (KR)".
std::string getVarMods | ( | ) | const |
Get the variable modifications encoded as string of integers.
|
static |
Get the XML attribute value for a charge type code.
Some of the returned values include a substitution string of "%s" or "%d". These are replaced with a specific value in the created XML.
code | The charge type to get the XML excoding string for. |
bool hasComponent | ( | std::string | componentName | ) | const |
Returns true if the matched peptide has the component.
componentName | The name of component to be searched for, e.g. "Heavy". |
bool hasIdentifiedComponent | ( | ) | const |
Check if the match has any component that was identified by Mascot.
bool hasPeptideRatio | ( | const std::string & | ratioName | ) | const |
Returns true if the match has a peptide ratio value for the ratio name.
ratioName | The name of ratio to be searched for, e.g. "H/L". |
bool isHitRatioExcluded | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) | const |
Returns true if the match ratio is excluded from a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | Protein hit number. |
memberNumber | Family member number. |
bool isHitRatioOutlier | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) | const |
Returns true if the match ratio is an outlier for a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | Protein hit number. |
memberNumber | Family member number. |
bool isHitRatioUsedForAverage | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) | const |
Returns true if the match ratio is used in the average quantitation protocol for a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | Protein hit number. |
memberNumber | Family member number. |
bool removeComponent | ( | const std::string & | componentName | ) |
Primarily for replicate where we want to remove components that are found in other files.
componentName | is the name of the new component to be added |
void setHitRatioExcluded | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) |
Set the match ratio to be excluded from a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | One based protein hit number. |
memberNumber | One based family member number. |
void setHitRatioOutlier | ( | const std::string & | ratioName, |
int | hitId, | ||
int | memberNumber | ||
) |
Set the match ratio to be an outlier for a hit.
Data for a protein hit to which the peptide match is assigned.
ratioName | The name of the ratio. |
hitId | Protein hit number. |
memberNumber | Family member number. |