Skip to contents

Calculate Shannon's diversity index and its evenness and effective number of species (ENS)

Usage

get_alpha_shannon(df, feature_id = "feature_id", id_col = "SAMPLE")

Arguments

df

A dataframe with features as rows and samples as columns

feature_id

The name of the column with feature IDs (default is "feature_id")

id_col

The name of the column with sample IDs (default is "SAMPLE")