ProteoWizard
Namespaces | Typedefs | Functions
DemuxHelpers.hpp File Reference

Helper functions for demultiplexing Helper functions include nice methods of accessing CV parameters and other generally useful functions. More...

#include "DemuxTypes.hpp"
#include "EnumConstantNotPresentException.hpp"
#include <boost/tokenizer.hpp>
#include "pwiz/utility/chemistry/MZTolerance.hpp"

Go to the source code of this file.

Namespaces

 pwiz
 
 pwiz::analysis
 

Typedefs

typedef boost::tokenizer< boost::char_separator< char > > pwiz::analysis::ScanIdTokenizer
 Tool for pulling each scan id attribute and its value from a scan id. More...
 

Functions

template<typename T >
const std::string & pwiz::analysis::enumToString (T e, std::map< T, std::string > m)
 Converts an enum to it's corresponding string in a prebuilt map. More...
 
template<typename T >
pwiz::analysis::stringToEnum (const std::string &s, std::map< T, std::string > m)
 Converts a string to it's corresponding enum in a prebuilt map. More...
 
bool pwiz::analysis::TryGetScanIDToken (const msdata::SpectrumIdentity &spectrumIdentity, const std::string &tokenName, std::string &value)
 Tries to read the given token from a spectrum identity id. More...
 
bool pwiz::analysis::TryGetDemuxIndex (const msdata::SpectrumIdentity &spectrumIdentity, size_t &index)
 Tries to read the index of the demultiplexed spectrum relative to the multiplexed spectrum it was derived from. More...
 
bool pwiz::analysis::TryGetOriginalIndex (const msdata::SpectrumIdentity &spectrumIdentity, size_t &index)
 Tries to read the original index of the spectrum before demultiplexing using the SpectrumIdentity of a (demultiplexed) spectrum. More...
 
bool pwiz::analysis::TryGetMSLevel (const msdata::Spectrum &spectrum, int &msLevel)
 Tries to read MS level from spectrum. More...
 
bool pwiz::analysis::TryGetNumPrecursors (const msdata::Spectrum &spectrum, int &numPrecursors)
 Tries to get the number of precursors contributing to a multiplexed spectrum. More...
 
bool pwiz::analysis::TryGetStartTime (const msdata::Spectrum &spectrum, double &startTime)
 Tries to get the start time of the scan. More...
 
bool pwiz::analysis::FindNearbySpectra (std::vector< size_t > &spectraIndices, pwiz::msdata::SpectrumList_const_ptr slPtr, size_t centerIndex, size_t numSpectraToFind, size_t stride=1)
 Tries to find a given number of ms2 spectra near the given spectrum index. More...
 

Detailed Description

Helper functions for demultiplexing Helper functions include nice methods of accessing CV parameters and other generally useful functions.

Definition in file DemuxHelpers.hpp.