169 const double rt_sampling_rate,
247 std::vector<SimTypes::SimCoordinateType>
grid_;
275 static const Size THREADED_RANDOM_NUMBER_POOL_SIZE_ = 500;
A base class for all classes handling default parameters.
Definition: DefaultParamHandler.h:93
Exponential-Gaussian hybrid distribution model for elution profiles.
Definition: EGHModel.h:55
A container for features.
Definition: FeatureMap.h:106
An LC-MS feature.
Definition: Feature.h:72
Isotope distribution approximated using linear interpolation.
Definition: IsotopeModel.h:60
In-Memory representation of a mass spectrometry run.
Definition: MSExperiment.h:73
The class template is only implemented for D=2 because we use Peak2D here.
Definition: ProductModel.h:66
Base class for all classes that want to report their progress.
Definition: ProgressLogger.h:53
Simulates MS signals for a given set of peptides.
Definition: RawMSSignalSimulation.h:63
SimTypes::SimCoordinateType mz_error_mean_
Mean of peak m/z error.
Definition: RawMSSignalSimulation.h:202
std::vector< std::vector< double > > threaded_random_numbers_
Definition: RawMSSignalSimulation.h:267
void add1DSignal_(Feature &feature, SimTypes::MSSimExperiment &experiment, SimTypes::MSSimExperiment &experiment_ct)
Add a 1D signal for a single feature.
PROFILESHAPE
Definition: RawMSSignalSimulation.h:98
Int q
Definition: RawMSSignalSimulation.h:257
void chooseElutionProfile_(EGHModel *const elutionmodel, Feature &feature, const double scale, const double rt_sampling_rate, const SimTypes::MSSimExperiment &experiment)
Add the correct Elution profile to the passed ProductModel.
double intensity
Definition: RawMSSignalSimulation.h:256
IONIZATIONMETHOD
Definition: RawMSSignalSimulation.h:97
void samplePeptideModel2D_(const ProductModel< 2 > &pm, const SimTypes::SimCoordinateType mz_start, const SimTypes::SimCoordinateType mz_end, SimTypes::SimCoordinateType rt_start, SimTypes::SimCoordinateType rt_end, SimTypes::MSSimExperiment &experiment, SimTypes::MSSimExperiment &experiment_ct, Feature &activeFeature)
Samples signals for the given 2D model.
SimTypes::SimIntensityType intensity_scale_
Scaling factor of peak intensities.
Definition: RawMSSignalSimulation.h:237
void compressSignals_(SimTypes::MSSimExperiment &experiment)
Compress signals in a single RT scan (to merge signals which were sampled overlapping)
EmpiricalFormula sf
Definition: RawMSSignalSimulation.h:255
void addBaseLine_(SimTypes::MSSimExperiment &experiment, SimTypes::SimCoordinateType minimal_mz_measurement_limit)
Add a base line to the experiment.
RESOLUTIONMODEL res_model_
model of how resolution behaves with increasing m/z
Definition: RawMSSignalSimulation.h:243
double res_base_
base resolution at 400 Th
Definition: RawMSSignalSimulation.h:245
RawMSSignalSimulation(SimTypes::MutableSimRandomNumberGeneratorPtr rng)
Constructor taking a random generator.
PROFILESHAPE shape
Definition: RawMSSignalSimulation.h:258
std::vector< Size > threaded_random_numbers_index_
Definition: RawMSSignalSimulation.h:273
void generateRawSignals(SimTypes::FeatureMapSim &features, SimTypes::MSSimExperiment &experiment, SimTypes::MSSimExperiment &experiment_ct, SimTypes::FeatureMapSim &contaminants)
fill experiment with signals and noise
SimTypes::SimIntensityType intensity_scale_stddev_
Standard deviation of peak intensity scaling.
Definition: RawMSSignalSimulation.h:239
void setDefaultParams_()
Set default parameters.
double getResolution_(const double query_mz, const double resolution, const RESOLUTIONMODEL model) const
Compute resolution at a given m/z given a base resolution and how it degrades with increasing m/z.
std::vector< ContaminantInfo > contaminants_
Definition: RawMSSignalSimulation.h:262
std::vector< SimTypes::SimCoordinateType > grid_
m/z sampling grid for all signals
Definition: RawMSSignalSimulation.h:247
bool contaminants_loaded_
Definition: RawMSSignalSimulation.h:277
void samplePeptideModel1D_(const IsotopeModel &iso, const SimTypes::SimCoordinateType mz_start, const SimTypes::SimCoordinateType mz_end, SimTypes::MSSimExperiment &experiment, SimTypes::MSSimExperiment &experiment_ct, Feature &activeFeature)
Samples signals for the given 1D model.
SimTypes::SimCoordinateType mz_error_stddev_
Standard deviation of peak m/z error.
Definition: RawMSSignalSimulation.h:204
RawMSSignalSimulation()
Default constructor.
IONIZATIONMETHOD im
Definition: RawMSSignalSimulation.h:259
String name
Definition: RawMSSignalSimulation.h:254
void createContaminants_(SimTypes::FeatureMapSim &contaminants, SimTypes::MSSimExperiment &exp, SimTypes::MSSimExperiment &exp_ct)
build contaminant feature map
double getPeakWidth_(const double mz, const bool is_gaussian) const
compute the peak's SD (Gaussian) at a given m/z (internally the resolution model is used)
Int sampling_points_per_FWHM_
number of points sampled per peak's FWHM
Definition: RawMSSignalSimulation.h:199
~RawMSSignalSimulation() override
Destructor.
void addDetectorNoise_(SimTypes::MSSimExperiment &experiment)
Add detector noise to the experiment.
RawMSSignalSimulation & operator=(const RawMSSignalSimulation &source)
void updateMembers_() override
Synchronize members with param class.
SimTypes::SimIntensityType getFeatureScaledIntensity_(const SimTypes::SimIntensityType feature_intensity, const SimTypes::SimIntensityType natural_scaling_factor)
Computes a rescaled feature intensity based on the set parameters for feature intensity scaling and t...
RawMSSignalSimulation(const RawMSSignalSimulation &source)
Copy constructor.
void addShotNoise_(SimTypes::MSSimExperiment &experiment, SimTypes::SimCoordinateType minimal_mz_measurement_limit, SimTypes::SimCoordinateType maximal_mz_measurement_limit)
Add shot noise to the experiment.
SimTypes::MutableSimRandomNumberGeneratorPtr rnd_gen_
Random number generator.
Definition: RawMSSignalSimulation.h:250
void addWhiteNoise_(SimTypes::MSSimExperiment &experiment)
Add white noise to the experiment.
RESOLUTIONMODEL
Definition: RawMSSignalSimulation.h:99
@ RES_CONSTANT
Definition: RawMSSignalSimulation.h:99
void add2DSignal_(Feature &feature, SimTypes::MSSimExperiment &experiment, SimTypes::MSSimExperiment &experiment_ct)
Add a 2D signal for a single feature.
void getSamplingGrid_(std::vector< SimTypes::SimCoordinateType > &grid, const SimTypes::SimCoordinateType mz_min, const SimTypes::SimCoordinateType mz_max, const Int step_Da)
get the mz grid where all m/z values will be mapped to
Definition: RawMSSignalSimulation.h:253
A more convenient string class.
Definition: String.h:60
int Int
Signed integer type.
Definition: Types.h:102
size_t Size
Size type e.g. used as variable which can hold result of size()
Definition: Types.h:127
boost::shared_ptr< SimRandomNumberGenerator > MutableSimRandomNumberGeneratorPtr
Definition: SimTypes.h:174
Peak2D::IntensityType SimIntensityType
Abundance of proteins/peptides.
Definition: SimTypes.h:62
Peak2D::CoordinateType SimCoordinateType
Coordinate type in mz and rt dimension.
Definition: SimTypes.h:59
Main OpenMS namespace.
Definition: FeatureDeconvolution.h:47