calculate_redundance: Calculate Redundancy in Metabolite Annotation

calculate_redundanceR Documentation

Calculate Redundancy in Metabolite Annotation

Description

This function calculates redundancy metrics in a metabolite annotation table. It evaluates the number of distinct compound classes per compound and the number of compounds assigned to each peak.

Usage

calculate_redundance(annotation_table)

Arguments

annotation_table

A data frame containing metabolite annotations, including 'Lab.ID', 'compound_class', and 'variable_id'.

Value

A numeric vector of length two: - The first value represents the average number of compound classes per compound ('redundancy1'). - The second value represents the average number of compounds assigned to each peak ('redundancy2').


tidymass/metpath documentation built on June 1, 2025, 10:05 p.m.