Go to the documentation of this file.
20 #ifndef _MSXDEMULTIPLEXER_HPP
21 #define _MSXDEMULTIPLEXER_HPP
66 const std::vector<size_t>& muxIndices,
69 void GetMatrixBlockIndices(
size_t indexToDemux, std::vector<size_t>& muxIndices,
double demuxBlockExtra)
const override;
89 #endif // _MSXDEMULTIPLEXER_HPP
Interface for calculating demultiplexing scheme.
boost::shared_ptr< MatrixType > MatrixPtr
void GetMatrixBlockIndices(size_t indexToDemux, std::vector< size_t > &muxIndices, double demuxBlockExtra) const override
Figures out which spectra to include in the system of equations to demux.
boost::shared_ptr< const msdata::SpectrumList > SpectrumList_const_ptr
struct for expressing m/z tolerance in either amu or ppm
boost::shared_ptr< const IPrecursorMaskCodec > const_ptr
Constant shared pointer definition.
void BuildDeconvBlock(size_t index, const std::vector< size_t > &muxIndices, DemuxTypes::MatrixPtr &masks, DemuxTypes::MatrixPtr &signal) override
Translates a spectrum into a set of matrices to be solved by NNLS.
bool variableFill
Set to true if fill times are allowed to vary for each scan window.
Params params_
A set of user-defined options.
const std::vector< size_t > & SpectrumIndices() const override
Returns the indices to the demultiplexed windows in the solution matrix corresponding to the windows ...
msdata::SpectrumList_const_ptr sl_
A SpectrumList that provides access to the spectra specified in the muxIndices list provided to Build...
Implementation of the IDemultiplexer interface that is able to handle both MSX experiments,...
User-defined options for demultiplexing.
pwiz::chemistry::MZTolerance massError
Mass error for extracting MS/MS peaks.
Helper functions for demultiplexing Helper functions include nice methods of accessing CV parameters ...
MSXDemultiplexer(Params p=Params())
Constructs an MSXDemultiplexer with optional user-specified parameters.
std::vector< size_t > spectrumIndices_
A cache of the indices provided by SpectrumIndices()
IPrecursorMaskCodec::const_ptr pmc_
An IPrecursorMaskCodec that provides information about the experiment's scheme and can generate the m...
bool applyWeighting
Weight the spectra nearby to the input spectrum more heavily in the solve than the outer ones.
void Initialize(msdata::SpectrumList_const_ptr slc, IPrecursorMaskCodec::const_ptr pmc) override
Initializes the demultiplexer using the demux scheme provided by an IPrecursorMaskCodec.
virtual ~MSXDemultiplexer()