Parse lipid names to return a data.frame containing lipid class, total chain length and unsaturation. Lipids should follow the pattern 'class xx:x/yy:y', with class referring to the abbreviated lipid class, xx:x as the composition of the first chain and yy:y as the second chain. Alternatively, lipids can be supplied following the pattern 'class zz:z', where zz:z indicates the combined chain length and unsaturation information.
annotate_lipids(molecules, no_match = c("warn", "remove", "ignore"))
A character vector containing lipid molecule names.
How to handle lipids that cannot be parsed? Default is to give warnings.
A data.frame with lipid annotations as columns. Input lipid names are given in a column named "Molecule".
lipid_list <- c( "Lyso PE 18:1(d7)", "PE(32:0)", "Cer(d18:0/C22:0)", "TG(16:0/18:1/18:1)" ) annotate_lipids(lipid_list)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.