simulate_spectra: Simulate a set of spectra

Description Usage Arguments Value Examples

View source: R/simulation.R

Description

Simulate a set of spectra based on the default library with shifts

Usage

1
2
3
4
5
6
7
8
simulate_spectra(
  n.spectra,
  max.shift = 0.02,
  metab.percent = 0.5,
  metab.different = 4,
  add.noise = 0.07,
  mult.noise = 0.09
)

Arguments

n.spectra

Number of spectra to simulate.

max.shift

Maximum shift allowed for artificial deformation of pure spectra (default to 0.02).

metab.percent

Percentage of present metabolites in complex spectra (default to 0.5).

metab.different

Number of metabolites that are different between each complex spectra (default to 4).

add.noise, mult.noise

additive and multiplicative noises. By default, add.noise = 0.15 and mult.noise = 0.172

Value

A list with a data frame of simulated spectra in columns and a data frame of simulated quantifications.

Examples

1
spectra <- simulate_spectra(n.spectra = 10)

ASICS documentation built on Nov. 8, 2020, 8:19 p.m.