Distiller project parameters. More...
#include <ms_distiller_data.hpp>
Public Member Functions | |
ms_distiller_data (const ms_distiller_data ©) | |
void | appendErrors (const ms_errors &src) |
Copies all errors from another instance and appends them at the end of own list. | |
void | clearAllErrors () |
Remove all errors from the current list of errors. | |
void | copyFrom (const ms_distiller_data *right) |
Use this member to make a copy of another instance. | |
void | copyFrom (const ms_errors *right) |
Use this member to make a copy of another instance. | |
virtual ms_mascotresults_params | get_ms_mascotresults_params (const int searchIndex) const |
Return default flags and parameters for creating an ms_peptidesummary object. | |
virtual const ms_datfile & | getDatfile () const |
Return the Mascot data file used for the project. | |
virtual int | getDistillerExperimentType () const |
Return the experiment type of the project, only available from schema 1.6 onwards. | |
virtual std::string | getDistillerVersion () const |
Return the version number of Distiller used to generate the distiller_data xml file. | |
const ms_errs * | getErrorHandler () const |
Retrive the error object using this function to get access to all errors and error parameters. | |
virtual const ms_fragrulesfile & | getFragRulesFile () const |
Return the fragmentation rules file used for the project. | |
int | getLastError () const |
Return the error description of the last error that occurred. | |
std::string | getLastErrorString () const |
Return the error description of the last error that occurred. | |
virtual int | getLoadedSearchIndex () const |
Return the index (index 1..getSearchCount) of the currently loaded search. | |
virtual const ms_distiller_data_quant & | getQuant (int index) const |
Return the information the selected quantitation result (index 1..getQuantCount). | |
virtual int | getQuantCount () const |
Return the number of quantitation results in the project. | |
virtual const ms_distiller_data_quant * | getQuantForSearch (const std::string &taskId) const |
Return the information the quantitation result associated with the selected search. | |
virtual const ms_quant_method & | getQuantMethod () const |
Return the quantitation method used for the project. | |
virtual const ms_distiller_data_search & | getSearch (int index) const |
Return the information the selected search (index 1..getSearchCount). | |
virtual int | getSearchCount () const |
Return the number of searches in the project. | |
bool | isValid () const |
Call this function to determine if there have been any errors. | |
virtual bool | loadXml (const char *xmlSchemaPath, const std::string &xmlText) |
Load Distiller data from the supplied XML text. | |
virtual bool | loadXmlFile (const char *xmlSchemaPath, const std::string &xmlFilename) |
Load Distiller data from the XML in the named file. | |
virtual bool | loadXmlStream (const char *xmlSchemaPath, matrix_science::ms_input_string_stream *xmlStream) |
Load Distiller data from a stream. | |
const ms_distiller_data & | operator= (const ms_distiller_data ©) |
Static Public Member Functions | |
static std::string | getDistillerProjectStreamName () |
Return the name of the stream, within the project file, used for the Distiller project parameters. | |
static time_t | getDistillerResfileTimestamp () |
Return the 'standard' Distiller results file timestamp; 2010/1/1 00:00:00. | |
static std::vector< std::string > | getRequiredSchemaFileNames () |
Return a list of the filenames of the schema that will be required when loading ms_distiller_data. | |
Distiller project parameters.
Stored in a Distiller project file (.rov) in the stream "rover_data".
ms_distiller_data | ( | const ms_distiller_data & | copy | ) |
copy | is the source to initialise from |
|
inherited |
Copies all errors from another instance and appends them at the end of own list.
src | The object to copy the errors across from. See Maintaining object references: two rules of thumb. |
|
inherited |
Remove all errors from the current list of errors.
The list of 'errors' can include fatal errors, warning messages, information messages and different levels of debugging messages.
All messages are accumulated into a list in this object, until clearAllErrors() is called.
See Error Handling.
void copyFrom | ( | const ms_distiller_data * | right | ) |
Use this member to make a copy of another instance.
right | is the source to initialise from |
|
inherited |
Use this member to make a copy of another instance.
right | is the source to initialise from |
|
virtual |
Return default flags and parameters for creating an ms_peptidesummary object.
searchIndex | The index number (1..n) of the search in the Distiller data. |
|
virtual |
Return the Mascot data file used for the project.
|
virtual |
Return the experiment type of the project, only available from schema 1.6 onwards.
0 = unknown, 1 = DDA, 2 = DIA
|
static |
Return the name of the stream, within the project file, used for the Distiller project parameters.
|
static |
Return the 'standard' Distiller results file timestamp; 2010/1/1 00:00:00.
The timestamp on the Distiller results file is used to determine the name of the subfolder that is used to hold the results file and peptide summary cache files. It is also stored in the results cache file to check if the results file and the cache can be used together.
Setting the last update timestamp on the results file to a fixed time means that the cache file location can be controlled and so the file re-used. This saves time when loading and can help prevent wasted disk space by duplicated files.
|
virtual |
Return the version number of Distiller used to generate the distiller_data xml file.
|
inherited |
Retrive the error object using this function to get access to all errors and error parameters.
See Error Handling.
|
virtual |
Return the fragmentation rules file used for the project.
|
inherited |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
See Error Handling.
|
inherited |
Return the error description of the last error that occurred.
All errors are accumulated into a list in this object, until clearAllErrors() is called. This function returns the last error that occurred.
See Error Handling.
|
virtual |
Return the index (index 1..getSearchCount) of the currently loaded search.
|
virtual |
Return the information the selected quantitation result (index 1..getQuantCount).
index | An index (1..getQuantCount()) into the quantitation results int the project. |
|
virtual |
Return the number of quantitation results in the project.
|
virtual |
Return the information the quantitation result associated with the selected search.
taskId | The task identifier of the Mascot search. |
|
virtual |
Return the quantitation method used for the project.
|
static |
Return a list of the filenames of the schema that will be required when loading ms_distiller_data.
This function can be used for checking that the required schema files are present before an error is raised.
|
virtual |
Return the information the selected search (index 1..getSearchCount).
index | An index (1..getSearchCount()) into the search results int the project. |
|
virtual |
Return the number of searches in the project.
|
inherited |
Call this function to determine if there have been any errors.
This will return true unless there have been any fatal errors.
See Error Handling.
|
virtual |
Load Distiller data from the supplied XML text.
xmlSchemaPath | The folder where the quantitation XML schema files (XSD) can be found. |
xmlText | The XML data to load. |
|
virtual |
Load Distiller data from the XML in the named file.
If the schema path contains spaces, it should be prefixed with "file:///" and the spaces should be replaced with "%20"
xmlSchemaPath | The folder where the quantitation XML schema files (XSD) can be found. |
xmlFilename | The path and filename of the XML file to load. |
|
virtual |
Load Distiller data from a stream.
xmlSchemaPath | The path to the location of the XML schema (XSD) files. |
xmlStream | The stream interface offering the data. |
const ms_distiller_data & operator= | ( | const ms_distiller_data & | copy | ) |
copy | is the source to initialise from |