select_hash_cutoff: Select a cutoff for hash counts using automatic, k-means...

Description Usage Arguments Value

View source: R/hash_matrix_analysis.R

Description

Select a cutoff for hash counts using automatic, k-means based splitting

Usage

1
2
3
4
5
6
7
select_hash_cutoff(
  x,
  use_median_cut = FALSE,
  min_cut = 10,
  min_fc = 2,
  seed = 3030
)

Arguments

x

a numeric vector of hash count values

use_median_cut

a logical value indicating whether or not to use the median value of x to set a minimum threshold. Default is FALSE.

min_cut

a numeric value for the minimum number of counts to consider. Default is 10.

min_fc

a numeric value for the minimum expected fold change between the centers of the two clusters (positive and negative). Default is 2.

seed

a value to use as a random seed for k-means clustering. Default is 3030.

Value

a numeric value to use as a cutoff. If no values are above min_cut, returns max(x), otherwise returns max(x) for non-passing values.


AllenInstitute/BarMixer documentation built on Dec. 17, 2021, 8:42 a.m.