Skip to contents

A total abundance trait is the total abundance of a group of glycans. For example, the total abundance of all complex glycans, or the total abundance of all tetra-antennary glycans.

Usage

total(cond)

Arguments

cond

Condition to use for defining the group of glycans. An expression that evaluates to a logical vector. The names of all built-in meta-properties (see all_mp_fns()) and custom meta-properties can be used in the expression.

Value

A derived trait function.

How to use

You can use total() to create total abundance trait easily.

For example:

# Total abundance of all complex glycans
total(Tp == "complex")

# Total abundance of all tetra-antennary glycans
total(nA == 4)

Examples

# Total abundance of all complex glycans
total(Tp == "complex")
#> total(Tp == "complex")

# Total abundance of all tetra-antennary glycans
total(nA == 4)
#> total(nA == 4)