Description Usage Arguments Value Examples
View source: R/mz_iso_correct.R
Uses the pracma::lsqlincon
function to correct the measured mass isotope
distribution for natural abundance with a lower bound of 0 for all corrected
values.
1 | mz_iso_correct(prob_matrix, v)
|
prob_matrix |
Correction matrix output by |
v |
Mass distribution vector of isotopologue intensities |
Non-negative mass distribution vector corrected for natural isotope abundance
1 2 3 4 | intensity_vector <- c(5710407, 847435, 66688649, 3426642, 8222080, 99981, 0)
v <- intensity_vector/sum(intensity_vector)
prob_matrix <- mz_iso_quant("C6H14O12P2")$prob_matrix
mz_iso_correct(prob_matrix, v)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.