Title: | Lipid Shorthand Name Parsing and Normalization |
---|---|
Description: | The R implementation for the Grammar of Succint Lipid Nomenclature parses different short hand notation dialects for lipid names. It normalizes them to a standard name. It further provides calculated monoisotopic masses and sum formulas for each successfully parsed lipid name and supplements it with LIPID MAPS Category and Class information. Also, the structural level and further structural details about the head group, fatty acyls and functional groups are returned, where applicable. |
Authors: | Nils Hoffmann [aut, cre] , Dominik Kopczynski [aut] |
Maintainer: | Nils Hoffmann <[email protected]> |
License: | MIT + file LICENSE |
Version: | 1.11.0 |
Built: | 2024-10-31 04:26:29 UTC |
Source: | https://github.com/bioc/rgoslin |
isValidLipidName
checks the provided lipid name against the built-in
grammars.
Will return FALSE if none of the parsers was able to parse the provided name
successfully. Will stop execution via stop
if non character input is
detected.
isValidLipidName(lipidName)
isValidLipidName(lipidName)
lipidName |
The lipid name to check. |
TRUE if the lipidName could be parsed, FALSE otherwise.
isValidLipidName("PC 32:1") isValidLipidName("PC(32:1)") isValidLipidName("PCX(32:1)")
isValidLipidName("PC 32:1") isValidLipidName("PC(32:1)") isValidLipidName("PCX(32:1)")
listAvailableGrammars
returns the list of grammars that the
underlying cppgoslin library supports.
listAvailableGrammars()
listAvailableGrammars()
the list of grammars
listAvailableGrammars()
listAvailableGrammars()
parseLipidNames
reads the provided lipid names vector and returns
structural information as a data frame. Will return a cell with the
"Grammar" column set to "NOT_PARSEABLE" if none of the parsers was able to
parse the provided name successfully. Will stop execution via stop
if
invalid non character input is detected or fatal errors are encountered
during parsing.
parseLipidNames(lipidNames, grammar = NULL)
parseLipidNames(lipidNames, grammar = NULL)
lipidNames |
The vector of lipid names to parse. |
grammar |
The grammar to use. One of "Goslin", "GoslinFragments",
"SwissLipids", "LipidMaps", "HMDB", "FattyAcids". Call
|
Data frame where each row reports the parsing result of each element in lipidNames.
parseLipidNames(c("PC 32:1","LPC 34:1","TG(18:1_18:0_16:1)")) parseLipidNames(c("Cer(d18:1(8Z)/24:0)", grammar = "LipidMaps"))
parseLipidNames(c("PC 32:1","LPC 34:1","TG(18:1_18:0_16:1)")) parseLipidNames(c("Cer(d18:1(8Z)/24:0)", grammar = "LipidMaps"))