View source: R/noisy_spectra.R
make_noisy_spectra | R Documentation |
Creates spectra with technical replicates and noise
make_noisy_spectra( spectra, n_experiments = 100, undeuterated_mass, mass_deviations = 50, intensity_deviations = NULL )
spectra |
a list of spectra obtained via
|
n_experiments |
number of replicates of an experiment for power calculation. |
undeuterated_mass |
the value of mass of an undeuterated peptide
computed by |
mass_deviations |
mass deviation in parts per million. Either a single number (then the error at each time point will be the same) or a vector of the same length as number of unique time points in the experiment. The error will be sampled from normal distribution with standard deviation equal to mass_deviations * undeuterated_mass/1e6 Default to 50. |
intensity_deviations |
optional, standard deviations of random noise
that will be added to intensities. Either a single number (then the error at
each time point will be the same) or a vector of the same length as number of
unique time points in the experiment. The error will be sampled from normal
distribution with these standard deviations.Default |
This function uses
add_noise_to_one_spectrum
.
list of lists of data.tables
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.