An object of this class represent a single quantitation method from quantitation.xml
.
More...
#include <ms_quant_method.hpp>
Inherits ms_xml_IValidatable.
Public Member Functions | |
ms_quant_method () | |
Default constructor. | |
ms_quant_method (const ms_quant_method &src) | |
Copying constructor. | |
virtual | ~ms_quant_method () |
Destructor. | |
void | appendComponent (const ms_quant_component *item) |
Adds a new component at the end of the list. | |
void | appendExclusion (const char *exclusion) |
Adds a new exclusion element at the end of the list. | |
void | appendModificationGroup (const ms_quant_modgroup *item) |
Adds a new modification group at the end of the list. | |
void | appendReportRatio (const ms_quant_ratio *ratio) |
Adds a new report_ratio element at the end of the list. | |
void | appendSeq (const char *seq) |
Adds a new seq element at the end of the list. | |
void | clearComponents () |
Deletes all components from the list. | |
void | clearExclusions () |
Deletes all exclusion elements from the list. | |
void | clearModificationGroups () |
Deletes all modification groups from the list. | |
void | clearReportRatios () |
Deletes all report_ratio elements from the list. | |
void | clearSeqs () |
Deletes all seq elements from the list. | |
void | copyFrom (const ms_quant_method *right) |
Copies all content from another instance. | |
void | defaultValues () |
Call this member if you want to start again. | |
bool | deleteComponentByName (const char *name) |
Remove a component from the list in memory by its unique name. | |
bool | deleteComponentByNumber (const int idx) |
Remove a component from the list in memory by its index. | |
bool | deleteExclusion (const int idx) |
Remove a exclusion element from the list in memory by its index. | |
bool | deleteModificationGroupByName (const char *name) |
Remove a modification group from the list in memory by its unique name. | |
bool | deleteModificationGroupByNumber (const int idx) |
Remove a modification group from the list in memory by its index. | |
bool | deleteReportRatioByName (const char *name) |
Remove a report_ratio element from the list in memory by its unique name. | |
bool | deleteReportRatioByNumber (const int idx) |
Remove a report_ratio element from the list in memory by its index. | |
bool | deleteSeq (const int idx) |
Remove a seq element from the list in memory by its index. | |
void | dropComp () |
Delete the comp element. | |
void | dropConstrainSearch () |
Delete the constrain_search attribute. | |
void | dropDescription () |
Delete the description attribute. | |
void | dropIntegration () |
Delete the integration element. | |
void | dropMinNumPeptides () |
Delete the min_num_peptides attribute. | |
void | dropName () |
Delete the name attribute. | |
void | dropNormalisation () |
Delete the normalisation element. | |
void | dropOutliers () |
Delete the outliers element. | |
void | dropProteinRatioType () |
Delete the protein_ratio_type attribute. | |
void | dropProtocol () |
Delete the protocol element. | |
void | dropProtScoreType () |
Delete the prot_score_type attribute. | |
void | dropQuality () |
Delete the quality element. | |
void | dropReportDetail () |
Delete the report_detail attribute. | |
void | dropRequireBoldRed () |
Delete the require_bold_red attribute. | |
void | dropShowSubSets () |
Delete the show_sub_sets attribute. | |
void | dropSigThresholdValue () |
Delete the sig_threshold_value attribute. | |
std::string | getComp () const |
Returns the value of the comp element. | |
const ms_quant_component * | getComponentByName (const char *name) const |
Returns a component object by its name or a null value in case of not found. | |
const ms_quant_component * | getComponentByNumber (const int idx) const |
Returns a component object by its number (0..n-1). | |
std::string | getComponentSchemaType () const |
Obtain a symbolic name for the component element schema type. | |
std::string | getCompSchemaType () const |
Obtain a symbolic name for the comp element schema type. | |
std::string | getConstrainSearchSchemaType () const |
Obtain a symbolic name for the constrain_search attribute schema type. | |
std::string | getDescription () const |
Returns the value of the description attribute. | |
std::string | getDescriptionSchemaType () const |
Obtain a symbolic name for the description attribute schema type. | |
std::string | getExclusion (const int idx) const |
Returns a exclusion element object by its number. | |
std::string | getExclusionSchemaType () const |
Obtain a symbolic name for the exclusion element schema type. | |
const ms_quant_integration * | getIntegration () const |
Returns a pointer to the integration element. | |
std::string | getIntegrationSchemaType () const |
Obtain a symbolic name for the integration element schema type. | |
void | getLocalModifications (std::vector< const ms_quant_localdef * > &localDefVector) |
Returns all local modification definitions within method and components. | |
int | getMinNumPeptides () const |
Returns the value of the min_num_peptides attribute. | |
std::string | getMinNumPeptidesSchemaType () const |
Obtain a symbolic name for the min_num_peptides attribute schema type. | |
const ms_quant_modgroup * | getModificationGroupByName (const char *name) const |
Returns a modification group object by its name or a null value in case of not found. | |
const ms_quant_modgroup * | getModificationGroupByNumber (const int idx) const |
Returns a modification group object by its number. | |
std::string | getModificationGroupSchemaType () const |
Obtain a symbolic name for the modification group element schema type. | |
std::string | getName () const |
Returns the value of the name attribute. | |
std::string | getNameSchemaType () const |
Obtain a symbolic name for the "name attribute" schema type. | |
const ms_quant_normalisation * | getNormalisation () const |
Returns a pointer to the normalisation element. | |
std::string | getNormalisationSchemaType () const |
Obtain a symbolic name for the normalisation element schema type. | |
int | getNumberOfComponents () const |
Returns the number of nested components. | |
int | getNumberOfExclusions () const |
Returns the number of nested exclusion elements. | |
int | getNumberOfModificationGroups () const |
Returns the number of nested modification groups. | |
int | getNumberOfReportRatios () const |
Returns the number of nested report_ratio elements. | |
int | getNumberOfSeqs () const |
Returns the number of nested seq elements. | |
const ms_quant_outliers * | getOutliers () const |
Returns a pointer to the outliers element. | |
std::string | getOutliersSchemaType () const |
Obtain a symbolic name for the outliers element schema type. | |
std::string | getProteinRatioType () const |
Returns the value of the protein_ratio_type attribute. | |
std::string | getProteinRatioTypeSchemaType () const |
Obtain a symbolic name for the protein_ratio_type attribute schema type. | |
const ms_quant_protocol * | getProtocol () const |
Returns a pointer to the protocol element. | |
std::string | getProtocolSchemaType () const |
Obtain a symbolic name for the protocol element schema type. | |
std::string | getProtScoreType () const |
Returns the value of the prot_score_type attribute. | |
std::string | getProtScoreTypeSchemaType () const |
Obtain a symbolic name for the prot_score_type attribute schema type. | |
const ms_quant_quality * | getQuality () const |
Returns a pointer to the quality element. | |
std::string | getQualitySchemaType () const |
Obtain a symbolic name for the quality element schema type. | |
std::string | getReportDetailSchemaType () const |
Obtain a symbolic name for the report_detail attribute schema type. | |
const ms_quant_ratio * | getReportRatioByName (const char *name) const |
Returns a report_ratio element object by its name or a null value in case of not found. | |
const ms_quant_ratio * | getReportRatioByNumber (const int idx) const |
Returns a report_ratio element object by its number. | |
std::string | getReportRatioSchemaType () const |
Obtain a symbolic name for the report_ratio element schema type. | |
std::string | getRequireBoldRedSchemaType () const |
Obtain a symbolic name for the require_bold_red attribute schema type. | |
virtual std::string | getSchemaType () const |
Returns name of the schema type that can be used to validate this element. | |
std::string | getSeq (const int idx) const |
Returns a seq element object by its number. | |
std::string | getSeqSchemaType () const |
Obtain a symbolic name for the element's schema type. | |
std::string | getShowSubSets () const |
Returns the value of the show_sub_sets attribute. | |
std::string | getShowSubSetsSchemaType () const |
Obtain a symbolic name for the show_sub_sets attribute schema type. | |
std::string | getSigThresholdValue () const |
Returns the value of the sig_threshold_value attribute. | |
std::string | getSigThresholdValueSchemaType () const |
Obtain a symbolic name for the sig_threshold_value attribute schema type. | |
bool | haveComp () const |
Indicates whether the comp element is present. | |
bool | haveConstrainSearch () const |
Indicates whether the constrain_search attribute is present. | |
bool | haveDescription () const |
Indicates whether the description attribute is present. | |
bool | haveIntegration () const |
Indicates whether the integration element is present. | |
bool | haveMinNumPeptides () const |
Indicates whether the min_num_peptides attribute is present. | |
bool | haveName () const |
Indicates whether the name attribute is present. | |
bool | haveNormalisation () const |
Indicates whether the normalisation element is present. | |
bool | haveOutliers () const |
Indicates whether the outliers element is present. | |
bool | haveProteinRatioType () const |
Indicates whether the protein_ratio_type attribute is present. | |
bool | haveProtocol () const |
Indicates whether the protocol element is present. | |
bool | haveProtScoreType () const |
Indicates whether the prot_score_type attribute is present. | |
bool | haveQuality () const |
Indicates whether the quality element is present. | |
bool | haveReportDetail () const |
Indicates whether the report_detail attribute is present. | |
bool | haveRequireBoldRed () const |
Indicates whether the require_bold_red attribute is present. | |
bool | haveShowSubSets () const |
Indicates whether the show_sub_sets attribute is present. | |
bool | haveSigThresholdValue () const |
Indicates whether the sig_threshold_value attribute is present. | |
bool | isConstrainSearch () const |
Returns the value of the constrain_search attribute. | |
int | isMethodCompatible (const ms_quant_method &other, std::string &reasonStrRef) const |
Methods are compatible if the protocol and selected other values are identical. | |
bool | isReportDetail () const |
Returns the value of the report_detail attribute. | |
bool | isRequireBoldRed () const |
Returns the value of the require_bold_red attribute. | |
ms_quant_method & | operator= (const ms_quant_method &right) |
C++ style assignment operator. | |
void | setComp (const char *value) |
Set a custom value for the comp element. | |
void | setConstrainSearch (const bool value) |
Set a custom value for the constrain_search attribute. | |
void | setDescription (const char *value) |
Set a custom value for the description attribute. | |
void | setIntegration (const ms_quant_integration *integration) |
Supply custom content for the integration element. | |
void | setMinNumPeptides (const int value) |
Set a custom value for the min_num_peptides attribute. | |
void | setName (const char *value) |
Set a custom value for the name attribute. | |
void | setNormalisation (const ms_quant_normalisation *normalisation) |
Supply custom content for the normalisation element. | |
void | setOutliers (const ms_quant_outliers *outliers) |
Supply custom content for the outliers element. | |
void | setProteinRatioType (const char *value) |
Set a custom value for the protein_ratio_type attribute. | |
void | setProtocol (const ms_quant_protocol *protocol) |
Supply custom content for the protocol element. | |
void | setProtScoreType (const char *value) |
Set a custom value for the prot_score_type attribute. | |
void | setQuality (const ms_quant_quality *quality) |
Supply custom content for the quality element. | |
void | setReportDetail (const bool value) |
Set a custom value for the report_detail attribute. | |
void | setRequireBoldRed (const bool value) |
Set a custom value for the require_bold_red attribute. | |
void | setShowSubSets (const char *value) |
Set a custom value for the show_sub_sets attribute. | |
void | setSigThresholdValue (const char *value) |
Set a custom value for the sig_threshold_value attribute. | |
bool | updateComponentByName (const char *name, const ms_quant_component *comp) |
Update the information for a specific component refering to it by its unique name. | |
bool | updateComponentByNumber (const int idx, const ms_quant_component *comp) |
Update the information for a specific component refering to it by its index. | |
bool | updateExclusion (const int idx, const char *exclusion) |
Update the information for a specific exclusion element refering to it by its index. | |
bool | updateModificationGroupByName (const char *name, const ms_quant_modgroup *modgroup) |
Update the information for a specific modification group refering to it by its unique name. | |
bool | updateModificationGroupByNumber (const int idx, const ms_quant_modgroup *modgroup) |
Update the information for a specific modification group refering to it by its index. | |
bool | updateReportRatioByName (const char *name, const ms_quant_ratio *ratio) |
Update the information for a specific report_ratio element refering to it by its unique name. | |
bool | updateReportRatioByNumber (const int idx, const ms_quant_ratio *ratio) |
Update the information for a specific report_ratio element refering to it by its index. | |
bool | updateSeq (const int idx, const char *seq) |
Update the information for a specific seq element refering to it by its index. | |
virtual std::string | validateDeep (const ms_xml_schema *pSchemaFileObj) const |
Performs validation of all child elements in addition to 'shallow' validation. | |
virtual std::string | validateShallow (const ms_xml_schema *pSchemaFileObj) const |
Performs simple validation of the top-level elements only. | |
An object of this class represent a single quantitation method from quantitation.xml
.
enum METHOD_COMPATIBLE |
Enum used by isMethodCompatible()
See Using enumerated values and static const ints in Perl, Java, Python and C#. The description for each of the enums is the human readable text for each of the 'error' codes
ms_quant_method | ( | ) |
Default constructor.
Assigns reasonable default values to all internal members.
ms_quant_method | ( | const ms_quant_method & | src | ) |
Copying constructor.
src | another instance of this class to copy the content from. |
void appendComponent | ( | const ms_quant_component * | item | ) |
Adds a new component at the end of the list.
Creates a new component object, copies all content from the object supplied as a parameter and adds it at the end of the components list.
item | an instance of component object to copy content from. |
void appendExclusion | ( | const char * | exclusion | ) |
Adds a new exclusion
element at the end of the list.
Creates a new exclusion
element object and adds it at the end of the exclusion
elements list.
exclusion | an string value for the element. |
void appendModificationGroup | ( | const ms_quant_modgroup * | item | ) |
Adds a new modification group at the end of the list.
Creates a new modification group object, copies all content from the object supplied as a parameter and adds it at the end of the methods list.
item | an instance of modification group object to copy content from. |
void appendReportRatio | ( | const ms_quant_ratio * | item | ) |
Adds a new report_ratio
element at the end of the list.
Creates a new report_ratio
element object, copies all content from the object supplied as a parameter and adds it at the end of the "report_ratio" elements list.
item | an instance of report_ratio element object to copy content from. |
void appendSeq | ( | const char * | seq | ) |
Adds a new seq
element at the end of the list.
Creates a new seq
element object and adds it at the end of the "seq" elements list.
seq | an string value for the element. |
void copyFrom | ( | const ms_quant_method * | right | ) |
Copies all content from another instance.
right | another instance of this class to copy the content from. |
void defaultValues | ( | ) |
Call this member if you want to start again.
All internal values are reset to their defaults, as if the object had been freshly created with the default constructor.
bool deleteComponentByName | ( | const char * | name | ) |
Remove a component from the list in memory by its unique name.
name | name of the component for deletion. |
bool deleteComponentByNumber | ( | const int | idx | ) |
Remove a component from the list in memory by its index.
idx | number of the component for deletion from 0 to (getNumberOfComponents() - 1). |
bool deleteExclusion | ( | const int | idx | ) |
Remove a exclusion
element from the list in memory by its index.
idx | number of the exclusion element for deletion from 0 to (getNumberOfExclusions() - 1). |
exclusion
element has been found and successfully deleted and FALSE otherwise. bool deleteModificationGroupByName | ( | const char * | name | ) |
Remove a modification group from the list in memory by its unique name.
name | name of the modification group for deletion. |
bool deleteModificationGroupByNumber | ( | const int | idx | ) |
Remove a modification group from the list in memory by its index.
idx | number of the modification group for deletion from 0 to (getNumberOfModificationGroups() - 1). |
bool deleteReportRatioByName | ( | const char * | name | ) |
Remove a report_ratio
element from the list in memory by its unique name.
name | name of the report_ratio element for deletion. |
report_ratio
element has been found and successfully deleted and FALSE otherwise. bool deleteReportRatioByNumber | ( | const int | idx | ) |
Remove a report_ratio
element from the list in memory by its index.
idx | number of the report_ratio element for deletion from 0 to (getNumberOfReportRatios() - 1). |
report_ratio
element has been found and successfully deleted and FALSE otherwise. bool deleteSeq | ( | const int | idx | ) |
Remove a seq
element from the list in memory by its index.
idx | number of the seq element for deletion from 0 to (getNumberOfSeqs() - 1). |
seq
element has been found and successfully deleted and FALSE otherwise. void dropComp | ( | ) |
Delete the comp
element.
Disables the element until it is re-set.
void dropConstrainSearch | ( | ) |
Delete the constrain_search
attribute.
Disables the attribute until it is re-set.
void dropDescription | ( | ) |
Delete the description
attribute.
Disables the attribute until it is re-set.
void dropIntegration | ( | ) |
Delete the integration
element.
Deletes the element until it is re-set.
void dropMinNumPeptides | ( | ) |
Delete the min_num_peptides
attribute.
Disables the attribute until it is re-set.
void dropName | ( | ) |
Delete the name
attribute.
Disables the attribute until it is re-set.
void dropNormalisation | ( | ) |
Delete the normalisation
element.
Deletes the element until it is re-set.
void dropOutliers | ( | ) |
Delete the outliers
element.
Deletes the element until it is re-set.
void dropProteinRatioType | ( | ) |
Delete the protein_ratio_type
attribute.
Disables the attribute until it is re-set.
void dropProtocol | ( | ) |
Delete the protocol
element.
Deletes the element until it is re-set.
void dropProtScoreType | ( | ) |
Delete the prot_score_type
attribute.
Disables the attribute until it is re-set.
void dropQuality | ( | ) |
Delete the quality
element.
Deletes the element until it is re-set.
void dropReportDetail | ( | ) |
Delete the report_detail
attribute.
Disables the attribute until it is re-set.
void dropRequireBoldRed | ( | ) |
Delete the require_bold_red
attribute.
Disables the attribute until it is re-set.
void dropShowSubSets | ( | ) |
Delete the show_sub_sets
attribute.
Disables the attribute until it is re-set.
void dropSigThresholdValue | ( | ) |
Delete the sig_threshold_value
attribute.
Disables the attribute until it is re-set.
std::string getComp | ( | ) | const |
Returns the value of the comp
element.
See haveComp() method for more information on how to use this.
*[C]
. const ms_quant_component * getComponentByName | ( | const char * | name | ) | const |
Returns a component object by its name or a null value in case of not found.
name | name of the component to find. |
const ms_quant_component * getComponentByNumber | ( | const int | idx | ) | const |
Returns a component object by its number (0..n-1).
idx | number of the component from 0 to (getNumberOfComponents() - 1). |
std::string getComponentSchemaType | ( | ) | const |
Obtain a symbolic name for the component element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getCompSchemaType | ( | ) | const |
Obtain a symbolic name for the comp
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getConstrainSearchSchemaType | ( | ) | const |
Obtain a symbolic name for the constrain_search
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getDescription | ( | ) | const |
Returns the value of the description
attribute.
std::string getDescriptionSchemaType | ( | ) | const |
Obtain a symbolic name for the description
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getExclusion | ( | const int | idx | ) | const |
Returns a exclusion
element object by its number.
idx | number of the exclusion element from 0 to (getNumberOfExclusions() - 1). |
exclusion
element. std::string getExclusionSchemaType | ( | ) | const |
Obtain a symbolic name for the exclusion
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_integration * getIntegration | ( | ) | const |
Returns a pointer to the integration
element.
See haveIntegration() for more information.
std::string getIntegrationSchemaType | ( | ) | const |
Obtain a symbolic name for the integration
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
void getLocalModifications | ( | std::vector< const ms_quant_localdef * > & | localDefVector | ) |
Returns all local modification definitions within method and components.
Method currently only valid for C++ due to vector of object pointers.
localDefVector | vector to fill with ms_quant_localdef* object pointers. |
int getMinNumPeptides | ( | ) | const |
Returns the value of the min_num_peptides
attribute.
Minimum number of peptide matches for reporting quantitation at protein level.
std::string getMinNumPeptidesSchemaType | ( | ) | const |
Obtain a symbolic name for the min_num_peptides
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_modgroup * getModificationGroupByName | ( | const char * | name | ) | const |
Returns a modification group object by its name or a null value in case of not found.
name | name of the modification group to find. |
const ms_quant_modgroup * getModificationGroupByNumber | ( | const int | idx | ) | const |
Returns a modification group object by its number.
idx | number of the modification group from 0 to (getNumberOfModificationGroups() - 1). |
std::string getModificationGroupSchemaType | ( | ) | const |
Obtain a symbolic name for the modification group element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getName | ( | ) | const |
Returns the value of the name
attribute.
std::string getNameSchemaType | ( | ) | const |
Obtain a symbolic name for the "name attribute" schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_normalisation * getNormalisation | ( | ) | const |
Returns a pointer to the normalisation
element.
See haveNormalisation() for more information.
normalisation
element (or a null value if not present). See Maintaining object references: two rules of thumb. std::string getNormalisationSchemaType | ( | ) | const |
Obtain a symbolic name for the normalisation
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
int getNumberOfComponents | ( | ) | const |
Returns the number of nested components.
int getNumberOfExclusions | ( | ) | const |
Returns the number of nested exclusion
elements.
Exclude peptides from quantitation if they contain modifications from this group.
exclusion
elements. int getNumberOfModificationGroups | ( | ) | const |
Returns the number of nested modification groups.
int getNumberOfReportRatios | ( | ) | const |
Returns the number of nested report_ratio
elements.
report_ratio
elements. int getNumberOfSeqs | ( | ) | const |
Returns the number of nested seq
elements.
Sequence qualifier in Mascot notation, e.g. *-TSL
.
seq
elements. const ms_quant_outliers * getOutliers | ( | ) | const |
Returns a pointer to the outliers
element.
See haveOutliers() for more information.
std::string getOutliersSchemaType | ( | ) | const |
Obtain a symbolic name for the outliers
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getProteinRatioType | ( | ) | const |
Returns the value of the protein_ratio_type
attribute.
Method of calculating the ratio for the protein from the individual peptide ratios.
std::string getProteinRatioTypeSchemaType | ( | ) | const |
Obtain a symbolic name for the protein_ratio_type
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_protocol * getProtocol | ( | ) | const |
Returns a pointer to the protocol
element.
See haveProtocol() for more information.
protocol
element (or a null value if not present). See Maintaining object references: two rules of thumb. std::string getProtocolSchemaType | ( | ) | const |
Obtain a symbolic name for the protocol
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getProtScoreType | ( | ) | const |
Returns the value of the prot_score_type
attribute.
std::string getProtScoreTypeSchemaType | ( | ) | const |
Obtain a symbolic name for the prot_score_type
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_quality * getQuality | ( | ) | const |
Returns a pointer to the quality
element.
See haveQuality() for more information.
std::string getQualitySchemaType | ( | ) | const |
Obtain a symbolic name for the quality
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getReportDetailSchemaType | ( | ) | const |
Obtain a symbolic name for the report_detail
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
const ms_quant_ratio * getReportRatioByName | ( | const char * | name | ) | const |
Returns a report_ratio
element object by its name or a null value in case of not found.
name | name of the report_ratio element to find. |
report_ratio
element object. See Maintaining object references: two rules of thumb. const ms_quant_ratio * getReportRatioByNumber | ( | const int | idx | ) | const |
Returns a report_ratio
element object by its number.
idx | number of the report_ratio element from 0 to (getNumberOfReportRatios() - 1). |
report_ratio
element object. See Maintaining object references: two rules of thumb. std::string getReportRatioSchemaType | ( | ) | const |
Obtain a symbolic name for the report_ratio
element schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getRequireBoldRedSchemaType | ( | ) | const |
Obtain a symbolic name for the require_bold_red
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
|
virtual |
Returns name of the schema type that can be used to validate this element.
Additional information about the current object can be retrieved from the associated XML schema file. Every element in an XML document is defined with a named type, which you can use to find out what kind of limits (numerical or otherwise) are defined for values of that type.
std::string getSeq | ( | const int | idx | ) | const |
Returns a seq
element object by its number.
idx | number of the seq element from 0 to (getNumberOfSeqs() - 1). |
seq
element. std::string getSeqSchemaType | ( | ) | const |
Obtain a symbolic name for the element's schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getShowSubSets | ( | ) | const |
Returns the value of the show_sub_sets
attribute.
std::string getShowSubSetsSchemaType | ( | ) | const |
Obtain a symbolic name for the show_sub_sets
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
std::string getSigThresholdValue | ( | ) | const |
Returns the value of the sig_threshold_value
attribute.
Mascot score significance threshold as a probabliltiy, default 0.05.
std::string getSigThresholdValueSchemaType | ( | ) | const |
Obtain a symbolic name for the sig_threshold_value
attribute schema type.
The obtained type name can be used to get a corresponding type description object from ms_xml_schema.
bool haveComp | ( | ) | const |
Indicates whether the comp
element is present.
The comp
element can be missing for the current method object. In order to be qualified as valid composition qualifier it must be at least 4 characters long. Therefore, an empty string returned by getComp() is not a valid value for the element. Always check whether the comp
element is present in the document before retrieving its value.
bool haveConstrainSearch | ( | ) | const |
Indicates whether the constrain_search
attribute is present.
bool haveDescription | ( | ) | const |
Indicates whether the description
attribute is present.
bool haveIntegration | ( | ) | const |
Indicates whether the integration
element is present.
The integration
element describes method and parameters to be used to integrate precursor over time. If missing, no integration is performed.
bool haveMinNumPeptides | ( | ) | const |
Indicates whether the min_num_peptides
attribute is present.
bool haveName | ( | ) | const |
Indicates whether the name
attribute is present.
bool haveNormalisation | ( | ) | const |
Indicates whether the normalisation
element is present.
Method of normailising ratios for a complete data set. If missing, no normalisation is performed.
bool haveOutliers | ( | ) | const |
Indicates whether the outliers
element is present.
Method and parameters to be used to remove outliers. If missing, no outlier removal is performed.
bool haveProteinRatioType | ( | ) | const |
Indicates whether the protein_ratio_type
attribute is present.
bool haveProtocol | ( | ) | const |
Indicates whether the protocol
element is present.
The protocol
element describes how the quantitative information is obtained.
bool haveProtScoreType | ( | ) | const |
Indicates whether the prot_score_type
attribute is present.
bool haveQuality | ( | ) | const |
Indicates whether the quality
element is present.
This element specifies quality thresholds for selecting individual spectra or matches.
bool haveReportDetail | ( | ) | const |
Indicates whether the report_detail
attribute is present.
bool haveRequireBoldRed | ( | ) | const |
Indicates whether the require_bold_red
attribute is present.
bool haveShowSubSets | ( | ) | const |
Indicates whether the show_sub_sets
attribute is present.
bool haveSigThresholdValue | ( | ) | const |
Indicates whether the sig_threshold_value
attribute is present.
bool isConstrainSearch | ( | ) | const |
Returns the value of the constrain_search
attribute.
If any modification group specifies exclusive mode, then apply this constraint during the search so that only matches that can be used for quantitation will be returned.
int isMethodCompatible | ( | const ms_quant_method & | other, |
std::string & | reasonStrRef | ||
) | const |
Methods are compatible if the protocol and selected other values are identical.
Result files with 'compatible' quantitation methods can be combined. It is also possible to apply a modified method to an existing results file when creating an ms_ms2quantitation object as long as the methods are 'compatible'.
See ms_quant_method::METHOD_COMPATIBLE for a list of reasons why the methods may not be compatible.
See Multiple return values in Perl, Java, Python and C#.
[in] | other | is the other method to compare with this one. |
[out] | reasonStrRef | is set to a human readable string if the methods are not compatible. |
bool isReportDetail | ( | ) | const |
Returns the value of the report_detail
attribute.
This attribute defines whether to display quantitation results at the peptide match level.
bool isRequireBoldRed | ( | ) | const |
Returns the value of the require_bold_red
attribute.
ms_quant_method & operator= | ( | const ms_quant_method & | right | ) |
C++ style assignment operator.
right | another instance of this class to copy the content from. |
void setComp | ( | const char * | value | ) |
Set a custom value for the comp
element.
value | a new value for the element. |
void setConstrainSearch | ( | const bool | value | ) |
Set a custom value for the constrain_search
attribute.
value | a new value for the attribute. |
void setDescription | ( | const char * | value | ) |
Set a custom value for the description
attribute.
value | a new value for the attribute. |
void setIntegration | ( | const ms_quant_integration * | integration | ) |
Supply custom content for the integration
element.
integration | an object to copy the content from. |
void setMinNumPeptides | ( | const int | value | ) |
Set a custom value for the min_num_peptides
attribute.
value | a new value for the attribute. |
void setName | ( | const char * | value | ) |
Set a custom value for the name
attribute.
value | a new value for the attribute. |
void setNormalisation | ( | const ms_quant_normalisation * | normalisation | ) |
Supply custom content for the normalisation
element.
normalisation | an object to copy the content from. |
void setOutliers | ( | const ms_quant_outliers * | outliers | ) |
Supply custom content for the outliers
element.
outliers | an object to copy the content from. |
void setProteinRatioType | ( | const char * | value | ) |
Set a custom value for the protein_ratio_type
attribute.
value | a new value for the attribute. |
void setProtocol | ( | const ms_quant_protocol * | protocol | ) |
Supply custom content for the protocol
element.
protocol | an object to copy the content from. |
void setProtScoreType | ( | const char * | value | ) |
Set a custom value for the prot_score_type
attribute.
value | a new value for the attribute. |
void setQuality | ( | const ms_quant_quality * | quality | ) |
Supply custom content for the quality
element.
quality | an object to copy the content from. |
void setReportDetail | ( | const bool | value | ) |
Set a custom value for the report_detail
attribute.
value | a new value for the attribute. |
void setRequireBoldRed | ( | const bool | value | ) |
Set a custom value for the require_bold_red
attribute.
value | a new value for the attribute. |
void setShowSubSets | ( | const char * | value | ) |
Set a custom value for the show_sub_sets
attribute.
value | a new value for the attribute. |
void setSigThresholdValue | ( | const char * | value | ) |
Set a custom value for the sig_threshold_value
attribute.
value | a new value for the attribute. |
bool updateComponentByName | ( | const char * | name, |
const ms_quant_component * | comp | ||
) |
Update the information for a specific component refering to it by its unique name.
name | name of the component for updating. |
comp | an object to copy the content from. |
bool updateComponentByNumber | ( | const int | idx, |
const ms_quant_component * | comp | ||
) |
Update the information for a specific component refering to it by its index.
idx | number of the component for updating from 0 to (getNumberOfComponents() - 1). |
comp | an object to copy the content from. |
bool updateExclusion | ( | const int | idx, |
const char * | exclusion | ||
) |
Update the information for a specific exclusion
element refering to it by its index.
idx | number of the exclusion element for updating from 0 to (getNumberOfExclusions() - 1). |
exclusion | new string value for the element. |
exclusion
element has been successfully updated and FALSE otherwise. bool updateModificationGroupByName | ( | const char * | name, |
const ms_quant_modgroup * | modgroup | ||
) |
Update the information for a specific modification group refering to it by its unique name.
name | name of the modification group for updating. |
modgroup | an object to copy the content from. |
bool updateModificationGroupByNumber | ( | const int | idx, |
const ms_quant_modgroup * | modgroup | ||
) |
Update the information for a specific modification group refering to it by its index.
idx | number of the modification group for updating from 0 to (getNumberOfModificationGroups() - 1). |
modgroup | an object to copy the content from. |
bool updateReportRatioByName | ( | const char * | name, |
const ms_quant_ratio * | ratio | ||
) |
Update the information for a specific report_ratio
element refering to it by its unique name.
name | name of the report_ratio element for updating. |
ratio | an object to copy the content from. |
report_ratio
element has been found and successfully updated and FALSE otherwise. bool updateReportRatioByNumber | ( | const int | idx, |
const ms_quant_ratio * | ratio | ||
) |
Update the information for a specific report_ratio
element refering to it by its index.
idx | number of the report_ratio element for updating from 0 to (getNumberOfReportRatios() - 1). |
ratio | an object to copy the content from. |
report_ratio
element has been found and successfully updated and FALSE otherwise. bool updateSeq | ( | const int | idx, |
const char * | seq | ||
) |
Update the information for a specific seq
element refering to it by its index.
idx | number of the seq element for updating from 0 to (getNumberOfSeqs() - 1). |
seq | a new string value for the element. |
seq
element has been successfully updated and FALSE otherwise.
|
virtual |
Performs validation of all child elements in addition to 'shallow' validation.
The current object can be checked against an XML schema. When using this method all possible checks are performed. However, this is not a substitute for the schema: some schema-defined constraint are not applied (unique fields, foreign keys etc.).
In order to make sure that current object is free from all syntax errors validate it as a part of the whole document.
pSchemaFileObj | a valid schema object instance to validate against. |
|
virtual |
Performs simple validation of the top-level elements only.
The current object can be checked against some basic constraints in a schema without looking at children element types. When using this method only the current object and children derived from standard types (for example, restrictions with enumerations) are checked. For more thorough validation, use validateDeep().
pSchemaFileObj | a valid schema object instance to validate against. |