scm_which_downsamp_n: Determine recommended downsampling depth.

View source: R/scmat.r

scm_which_downsamp_nR Documentation

Determine recommended downsampling depth.

Description

If the parameter scm_n_downsamp is set, it will be returned. If it is null, we return the 5th percentile of the umi count or 750, depending which is larger. However, if the median umi count is lower than this, we use it as the depth. In usch "bad" cases, it may be a good idea to tune the parameter after looking at the umi distribution and resolving possibilities for empty wells/barcodes

Usage

scm_which_downsamp_n(scmat)

Arguments

mat_id

tanaylab/metacell documentation built on Oct. 19, 2023, 1:01 p.m.