getLipidType: getLipidType

View source: R/getLipidType.R

getLipidTypeR Documentation

getLipidType

Description

Extracts the type of lipid (DG, TG, LPC, AC etc) and potential tag (-OH, -DH etc) from lipid species names.

Usage

getLipidType(df)

Arguments

df

Dataframe with lipid species names in the first column.

Value

The dataframe with an additional Type column.

Examples

data <- tibble(
'feature' = c('AC(6:0)', 'AC(8:1)', 'AC(10:2)',
             'Cer(d18:0/16:0)', 'Cer(d18:0/24:1)', 'Cer(d18:1/24:1)',
             'DAG(18:0/18:1)', 'DAG(16:1/18:1)', 'DAG(18:2/18:3)'))
with_type_info <- data %>% getLipidType()


AslaugL/thesisToolsOmics documentation built on April 3, 2022, 8:16 p.m.