An individual peptide's quantitation status. More...
#include <ms_ms1quant_peptide_status.hpp>
Inherits ms_handle.
Public Types | |
enum | peptideStatus { PS_OK = 0 , PS_EXPECTGREATERTHAN = 1 , PS_LESSTHANIDENTITY = 2 , PS_MINCHARGE = 3 , PS_NOTUNIQUE = 4 , PS_SCORELESSHOMOLOGY = 5 , PS_SCORELESSIDENTITY_NOHOMO = 6 , PS_SCORELESSTHRESHOLD = 7 , PS_EXCLUDE_LOCALDEF = 8 , PS_EXCLUDE_MODFILE = 9 , PS_EXCLUDE_UNMODIFIED = 10 , PS_NOTPARTOFQUANTITATION = 11 , PS_DUPLICATESAMEQUERY = 12 , PS_NOMATCHINTHISFRACTION = 13 , PS_MAX = 14 } |
Status codes from fitting peptides. More... | |
Public Member Functions | |
ms_ms1quant_peptide_status () | |
Default constructor. | |
ms_ms1quant_peptide_status (const ms_ms1quant_peptide_status_body &body) | |
Populated constructor, linked to loaded data. | |
std::string | getComponent () const |
Get the component for the peptide hit. | |
int | getQuery () const |
Get the query for the peptide. | |
int | getRank () const |
Get the rank for the peptide. | |
peptideStatus | getStatus () const |
Get the status for the peptide hit. | |
Static Public Member Functions | |
static peptideStatus | getCodeFromXml (std::string str) |
Get the status code for an XML attribute value. | |
static std::string | getXmlCode (peptideStatus code) |
Get the XML attribute value for a status code. | |
An individual peptide's quantitation status.
This is the status determined for the peptide during quantitation.
enum peptideStatus |
Status codes from fitting peptides.
See Using enumerated values and static const ints in Perl, Java, Python and C#.
Default constructor.
Assigns reasonable default values to all internal members. The status is set to PS_NOTPARTOFQUANTITATION.
ms_ms1quant_peptide_status | ( | const ms_ms1quant_peptide_status_body & | body | ) |
Populated constructor, linked to loaded data.
body | The data loaded from the result file. |
|
static |
Get the status code for an XML attribute value.
Some of the returned values include a substitution string of "%s" or "%d". The text is decoded based on the value up until the first substitution position.
str | The string used to encode the status value in the XML file. |
std::string getComponent | ( | ) | const |
Get the component for the peptide hit.
int getQuery | ( | ) | const |
Get the query for the peptide.
int getRank | ( | ) | const |
Get the rank for the peptide.
matrix_science::ms_ms1quant_peptide_status::peptideStatus getStatus | ( | ) | const |
Get the status for the peptide hit.
|
static |
Get the XML attribute value for a status 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 peptide status to get the XML excoding string for. |