Skip to contents

Mark outliers from a distance matrix

Usage

mark_outliers(DIST, outlier_prob = 0.99)

Arguments

DIST

a dist object

outlier_prob

probability to consider an entity an outlier

Value

a tibble with an outlier designation for each genome

Examples

mark_outliers(example_pan_dist, outlier_prob=.95)
#> [1] "detected 5 outliers at 0.95 prob"
#> # A tibble: 100 × 2
#>    asm_acc   is_outlier
#>    <chr>     <lgl>     
#>  1 genome_1  FALSE     
#>  2 genome_2  FALSE     
#>  3 genome_3  FALSE     
#>  4 genome_4  FALSE     
#>  5 genome_5  FALSE     
#>  6 genome_6  FALSE     
#>  7 genome_7  FALSE     
#>  8 genome_8  FALSE     
#>  9 genome_9  FALSE     
#> 10 genome_10 FALSE     
#> # ℹ 90 more rows