check_feature_abd: Check feature abundance table

View source: R/helpers.R

check_feature_abdR Documentation

Check feature abundance table

Description

Given a feature abundance table, make sure that a) it has no missing values, b) all values are non-negative, c) it is either proportions (all no greater than 1) or counts (all integers).

Usage

check_feature_abd(feature_abd)

Arguments

feature_abd

feature-by-sample matrix of abundances (proportions or counts).

Value

returns an error if any of the check fails. Otherwise either "counts" or "proportions"


biobakery/MMUPHin documentation built on March 30, 2024, 4:50 a.m.