simple_filter {cuperdec}R Documentation

Apply simple percentage filter

Description

Performs the initial decay curve based on percentage of 'target' isolation source along a rank of most to least abundant taxa for a given sample.

Usage

simple_filter(curves, percent_threshold)

Arguments

curves

A cuperdec curve table calculated with calculate_curve.

percent_threshold

A database file loaded with load_database.

Value

A tibble with each row showing each sample and whether it passed the specified filter.

Examples

data(cuperdec_taxatable_ex)
data(cuperdec_database_ex)

taxa_table <- load_taxa_table(cuperdec_taxatable_ex)
iso_database <- load_database(cuperdec_database_ex, target = "oral")

curve_results <- calculate_curve(taxa_table, iso_database)
simple_filter(curve_results, percent_threshold = 50)

[Package cuperdec version 1.1.0 Index]