simple_filter: Apply simple percentage filter

Description Usage Arguments Value Examples

View source: R/calculations.R

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

1
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

1
2
3
4
5
6
7
8
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)

cuperdec documentation built on Sept. 13, 2021, 1:06 a.m.