summarize_ACL: Calculate the average carbon chain length

Description Usage Arguments Author(s)

View source: R/Methods-LipidomicsSet.R

Description

Calculate the average carbon chain length of each lipid class. The input must be a LipidomicsSet-class object. The object must be contain a column in the feature_data slot with the annotation names of each feature. The feature name must be formated using the lipid_name_formater function.

The average chain length is calculated using the equation below:

ACL = (∑ conc_{i,j} x nc_{i,j}) / (∑ con_{i,j} x nfa_{i,j})

The conc represents for the mol concentration, nc for number of carbon, and nfa for number of fatty acyls. The i stands for the ith sample, while j stands for the jth feature.

Usage

1

Arguments

object

a LipidomicsSet-class object

name

character. The name of the feature variable that contains the annotation name. The annotation name must be formatted by the lipid_name_formater function

class

character. The name of the feature variable that contains the lipid class.

Author(s)

Chenghao Zhu


zhuchcn/Metabase documentation built on July 23, 2019, 1:36 p.m.