pub fn generate_averagine_spectrum(
mass: f64,
charge: i32,
min_intensity: i32,
k: i32,
resolution: i32,
centroid: bool,
amp: Option<f64>,
) -> MzSpectrum
Expand description
generate the averagine spectrum for a given mass and charge
Arguments:
mass
- mass of the peptidecharge
- charge of the peptidemin_intensity
- minimum intensity for a peak to be included in the resultk
- number of isotopes to considerresolution
- resolution of the isotope patterncentroid
- whether to centroid the spectrumamp
- amplitude of the isotope pattern
Returns:
MzSpectrum
- averagine spectrum
ยงExamples
use mscore::algorithm::isotope::generate_averagine_spectrum;
let spectrum = generate_averagine_spectrum(3000.0, 2, 1, 10, 3, true, None);