adaptive_burnin_filter: Calculate adaptive burn-in retain/discard list

Description Usage Arguments Value Examples

View source: R/calculations.R

Description

Automates a selection of a per-sample 'burn in' based on the nature of the sample's curve itself (rather than supplying a hard value) by finding the point from which the 'fluctuation' of the curve doesn't exceed the mean +- SD of the total curve.

Usage

1
adaptive_burnin_filter(curves, percent_threshold)

Arguments

curves

A cuperdec curve table calculated with calculate_curve.

percent_threshold

A percentage of the target-source in a sample above which a sample is considered 'retained'.

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)
adaptive_burnin_filter(curve_results, percent_threshold = 0.1)

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