gram_pos_index: Function to calculate antibiotics index targeting gram...

Description Usage Arguments Value Examples

View source: R/abx_index.R

Description

Function to calculate antibiotics index targeting gram positive bacteria such as Glycopeptides, Macrolides, Oxazolidinones, Lincosamides, and Lipopeptides aside from Vancomycin (see vancomycin_index)

Usage

1
gram_pos_index(abundance, lineage)

Arguments

abundance

A list of relative abundances of bacterial taxons for a single sample

lineage

Name of taxonomy lineage for each relative abundance in a sample (e.g. k__Bacteria; p__Bacteroidetes; c__Bacteroidia etc.)

Value

The calculated antibiotics index for the sample

Examples

1

tuv292/abx_idx documentation built on Jan. 18, 2021, 7:05 a.m.