Options for loading files containing peak data. More...
#include <OpenMS/FORMAT/OPTIONS/PeakFileOptions.h>
Public Member Functions | |
PeakFileOptions () | |
Default constructor. More... | |
PeakFileOptions (const PeakFileOptions &) | |
Copy constructor. More... | |
~PeakFileOptions () | |
Destructor. More... | |
bool | getWriteIndex () const |
Whether to write an index at the end of the file (e.g. indexedmzML file format) More... | |
void | setWriteIndex (bool write_index) |
Whether to write an index at the end of the file (e.g. indexedmzML file format) More... | |
MSNumpressCoder::NumpressConfig | getNumpressConfigurationMassTime () const |
Set numpress configuration options for m/z or rt dimension. More... | |
void | setNumpressConfigurationMassTime (MSNumpressCoder::NumpressConfig config) |
Get numpress configuration options for m/z or rt dimension. More... | |
MSNumpressCoder::NumpressConfig | getNumpressConfigurationIntensity () const |
Set numpress configuration options for intensity dimension. More... | |
void | setNumpressConfigurationIntensity (MSNumpressCoder::NumpressConfig config) |
Get numpress configuration options for intensity dimension. More... | |
Meta data and file format option | |
void | setMetadataOnly (bool only) |
sets whether or not to load only meta data More... | |
bool | getMetadataOnly () const |
returns whether or not to load only meta data More... | |
void | setForceMQCompatability (bool forceMQ) |
[mzXML only!] Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ) More... | |
bool | getForceMQCompatability () const |
[mzXML only!] Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ) More... | |
void | setForceTPPCompatability (bool forceTPP) |
[mzML only!] Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z More... | |
bool | getForceTPPCompatability () const |
[mzML only!] Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z More... | |
Supplemental data option | |
void | setWriteSupplementalData (bool write) |
sets whether or not to write supplemental peak data in MzData files More... | |
bool | getWriteSupplementalData () const |
returns whether or not to write supplemental peak data in MzData files More... | |
RT range option | |
void | setRTRange (const DRange< 1 > &range) |
restricts the range of RT values for peaks to load More... | |
bool | hasRTRange () const |
returns true if an RT range has been set More... | |
const DRange< 1 > & | getRTRange () const |
returns the RT range More... | |
m/z range option | |
void | setMZRange (const DRange< 1 > &range) |
restricts the range of MZ values for peaks to load More... | |
bool | hasMZRange () const |
returns true if an MZ range has been set More... | |
const DRange< 1 > & | getMZRange () const |
returns the MZ range More... | |
Intensity range option | |
void | setIntensityRange (const DRange< 1 > &range) |
restricts the range of intensity values for peaks to load More... | |
bool | hasIntensityRange () const |
returns true if an intensity range has been set More... | |
const DRange< 1 > & | getIntensityRange () const |
returns the intensity range More... | |
MS levels option | |
With this option, MS level filters can be set.
| |
void | setMSLevels (const std::vector< Int > &levels) |
sets the desired MS levels for peaks to load More... | |
void | addMSLevel (int level) |
adds a desired MS level for peaks to load More... | |
void | clearMSLevels () |
clears the MS levels More... | |
bool | hasMSLevels () const |
returns true , if MS levels have been set More... | |
bool | containsMSLevel (int level) const |
returns true , if MS level level has been set More... | |
const std::vector< Int > & | getMSLevels () const |
returns the set MS levels More... | |
Compression options | |
| |
void | setCompression (bool compress) |
bool | getCompression () const |
lazyload option | |
sets whether or not to load only the count | |
void | setSizeOnly (bool only) |
bool | getSizeOnly () const |
returns whether or not to load only meta data More... | |
void | setAlwaysAppendData (bool only) |
sets whether or not to always append the data to the given map (even if a consumer is given) More... | |
bool | getAlwaysAppendData () const |
returns whether or not to always append the data to the given map (even if a consumer is given) More... | |
void | setFillData (bool only) |
sets whether to fill the actual data into the container (spectrum/chromatogram) More... | |
bool | getFillData () const |
returns whether to fill the actual data into the container (spectrum/chromatogram) More... | |
void | setSkipXMLChecks (bool only) |
sets whether to skip some XML checks and be fast instead More... | |
bool | getSkipXMLChecks () const |
returns whether to skip some XML checks and be fast instead More... | |
sort peaks in spectra / chromatograms by position | |
sets whether or not to sort peaks in spectra | |
void | setSortSpectraByMZ (bool sort) |
bool | getSortSpectraByMZ () const |
gets whether or not peaks in spectra should be sorted More... | |
void | setSortChromatogramsByRT (bool sort) |
sets whether or not to sort peaks in chromatograms More... | |
bool | getSortChromatogramsByRT () const |
gets whether or not peaks in chromatograms should be sorted More... | |
Precision options | |
Note that m/z and RT are controlled with the same flag (for spectra and chromatograms) while there is a separate flag for intensity.
| |
void | setMz32Bit (bool mz_32_bit) |
bool | getMz32Bit () const |
void | setIntensity32Bit (bool int_32_bit) |
bool | getIntensity32Bit () const |
Data pool size options | |
Some file readers and writers can process the data in parallel by reading in parts of the file and keeping it in memory and then process this partial data in parallel. This parameter specifies how many data points (spectra/chromatograms) should be read before parallel processing is initiated. | |
Size | getMaxDataPoolSize () const |
Get maximal size of the data pool. More... | |
void | setMaxDataPoolSize (Size size) |
Set maximal size of the data pool. More... | |
Private Attributes | |
bool | metadata_only_ |
bool | force_maxquant_compatibility_ |
bool | force_tpp_compatibility_ |
bool | write_supplemental_data_ |
bool | has_rt_range_ |
bool | has_mz_range_ |
bool | has_intensity_range_ |
bool | mz_32_bit_ |
bool | int_32_bit_ |
DRange< 1 > | rt_range_ |
DRange< 1 > | mz_range_ |
DRange< 1 > | intensity_range_ |
std::vector< Int > | ms_levels_ |
bool | zlib_compression_ |
bool | size_only_ |
bool | always_append_data_ |
bool | skip_xml_checks_ |
bool | sort_spectra_by_mz_ |
bool | sort_chromatograms_by_rt_ |
bool | fill_data_ |
bool | write_index_ |
MSNumpressCoder::NumpressConfig | np_config_mz_ |
MSNumpressCoder::NumpressConfig | np_config_int_ |
Size | maximal_data_pool_size_ |
Options for loading files containing peak data.
PeakFileOptions | ( | ) |
Default constructor.
PeakFileOptions | ( | const PeakFileOptions & | ) |
Copy constructor.
~PeakFileOptions | ( | ) |
Destructor.
void addMSLevel | ( | int | level | ) |
adds a desired MS level for peaks to load
Referenced by TOPPOpenPepXLLF::main_(), SimpleSearchEngine::main_(), TOPPOpenPepXL::main_(), and RNPxlSearch::main_().
void clearMSLevels | ( | ) |
clears the MS levels
Referenced by TOPPOpenPepXLLF::main_(), SimpleSearchEngine::main_(), TOPPOpenPepXL::main_(), and RNPxlSearch::main_().
bool containsMSLevel | ( | int | level | ) | const |
returns true
, if MS level level
has been set
bool getAlwaysAppendData | ( | ) | const |
returns whether or not to always append the data to the given map (even if a consumer is given)
bool getCompression | ( | ) | const |
bool getFillData | ( | ) | const |
returns whether to fill the actual data into the container (spectrum/chromatogram)
bool getForceMQCompatability | ( | ) | const |
[mzXML only!] Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)
bool getForceTPPCompatability | ( | ) | const |
[mzML only!] Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z
bool getIntensity32Bit | ( | ) | const |
const DRange<1>& getIntensityRange | ( | ) | const |
returns the intensity range
Referenced by DTA2DFile::load().
Size getMaxDataPoolSize | ( | ) | const |
Get maximal size of the data pool.
bool getMetadataOnly | ( | ) | const |
returns whether or not to load only meta data
const std::vector<Int>& getMSLevels | ( | ) | const |
returns the set MS levels
bool getMz32Bit | ( | ) | const |
const DRange<1>& getMZRange | ( | ) | const |
returns the MZ range
Referenced by DTA2DFile::load().
MSNumpressCoder::NumpressConfig getNumpressConfigurationIntensity | ( | ) | const |
Set numpress configuration options for intensity dimension.
MSNumpressCoder::NumpressConfig getNumpressConfigurationMassTime | ( | ) | const |
Set numpress configuration options for m/z or rt dimension.
const DRange<1>& getRTRange | ( | ) | const |
returns the RT range
Referenced by DTA2DFile::load().
bool getSizeOnly | ( | ) | const |
returns whether or not to load only meta data
bool getSkipXMLChecks | ( | ) | const |
returns whether to skip some XML checks and be fast instead
bool getSortChromatogramsByRT | ( | ) | const |
gets whether or not peaks in chromatograms should be sorted
bool getSortSpectraByMZ | ( | ) | const |
gets whether or not peaks in spectra should be sorted
bool getWriteIndex | ( | ) | const |
Whether to write an index at the end of the file (e.g. indexedmzML file format)
bool getWriteSupplementalData | ( | ) | const |
returns whether or not to write supplemental peak data in MzData files
bool hasIntensityRange | ( | ) | const |
returns true
if an intensity range has been set
Referenced by DTA2DFile::load().
bool hasMSLevels | ( | ) | const |
returns true
, if MS levels have been set
bool hasMZRange | ( | ) | const |
returns true
if an MZ range has been set
Referenced by DTA2DFile::load().
bool hasRTRange | ( | ) | const |
returns true
if an RT range has been set
Referenced by DTA2DFile::load().
void setAlwaysAppendData | ( | bool | only | ) |
sets whether or not to always append the data to the given map (even if a consumer is given)
Referenced by SwathFile::loadMzXML(), and SwathFile::populateMetaData_().
void setCompression | ( | bool | compress | ) |
Referenced by extractCachedMetaFilename(), and SortPairDoubleByFirst().
void setFillData | ( | bool | only | ) |
sets whether to fill the actual data into the container (spectrum/chromatogram)
Referenced by OnDiscMSExperiment::loadMetaData_(), SwathFile::loadMzXML(), and SwathFile::populateMetaData_().
void setForceMQCompatability | ( | bool | forceMQ | ) |
[mzXML only!] Whether to write a scan-index and meta data to indicate a Thermo FTMS/ITMS instrument (required to have parameter control in MQ)
Referenced by extractCachedMetaFilename().
void setForceTPPCompatability | ( | bool | forceTPP | ) |
[mzML only!] Whether to skip writing the <isolationWindow> tag so that TPP finds the correct precursor m/z
Referenced by extractCachedMetaFilename().
void setIntensity32Bit | ( | bool | int_32_bit | ) |
void setIntensityRange | ( | const DRange< 1 > & | range | ) |
restricts the range of intensity values for peaks to load
void setMaxDataPoolSize | ( | Size | size | ) |
Set maximal size of the data pool.
void setMetadataOnly | ( | bool | only | ) |
sets whether or not to load only meta data
Referenced by TOPPViewBase::metadataFileDialog().
void setMSLevels | ( | const std::vector< Int > & | levels | ) |
sets the desired MS levels for peaks to load
Referenced by TOPPMetaProSIP::main_().
void setMz32Bit | ( | bool | mz_32_bit | ) |
void setMZRange | ( | const DRange< 1 > & | range | ) |
restricts the range of MZ values for peaks to load
void setNumpressConfigurationIntensity | ( | MSNumpressCoder::NumpressConfig | config | ) |
Get numpress configuration options for intensity dimension.
Referenced by extractCachedMetaFilename(), and SortPairDoubleByFirst().
void setNumpressConfigurationMassTime | ( | MSNumpressCoder::NumpressConfig | config | ) |
Get numpress configuration options for m/z or rt dimension.
Referenced by extractCachedMetaFilename(), and SortPairDoubleByFirst().
void setRTRange | ( | const DRange< 1 > & | range | ) |
restricts the range of RT values for peaks to load
void setSizeOnly | ( | bool | only | ) |
void setSkipXMLChecks | ( | bool | only | ) |
sets whether to skip some XML checks and be fast instead
void setSortChromatogramsByRT | ( | bool | sort | ) |
sets whether or not to sort peaks in chromatograms
void setSortSpectraByMZ | ( | bool | sort | ) |
void setWriteIndex | ( | bool | write_index | ) |
Whether to write an index at the end of the file (e.g. indexedmzML file format)
Referenced by extractCachedMetaFilename(), and SortPairDoubleByFirst().
void setWriteSupplementalData | ( | bool | write | ) |
sets whether or not to write supplemental peak data in MzData files
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
OpenMS / TOPP release 2.3.0 | Documentation generated on Tue Jan 9 2018 18:22:11 using doxygen 1.8.13 |