
Wrapper function for HVG detection parameters.
params_sc_hvg.RdWrapper function for HVG detection parameters.
Arguments
- method
String.
"scran"fits a weighted lowess trend to the variance of the log-expression against its mean and ranks genes by the residual, as in scran'smodelGeneVar()."residual"ranks genes by the residual variance of a model fitted withfit_residuals_sc(), and needs that fit on the object first. It also treatshvg_noas a per-group count and returns the union across groups, so a grouped fit can select more thanhvg_nogenes. One ofc("vst", "meanvarbin", "dispersion", "scran", "residual"). Defaults to"vst".- loess_span
Numeric. The span parameter for the loess function that is used to standardise the variance for
method = "vst", and the lowess span of the trend formethod = "scran". Defaults to0.3.- num_bin
Integer. Number of bins for the
meanvarbinanddispersionmethods. Defaults to20L.- bin_method
String. The binning method. One of
c("equal_width", "equal_freq"). Defaults to"equal_width".- scran
List. Optional overrides for the
method = "scran"trend. Seeparams_hvg_scran_defaults()for available parameters:mean_filter,min_mean,transform,use_min_width,min_widthandmin_window_count. Seeparams_hvg_scran_defaults()for the available elements. Defaults tolist().
Value
A named list with the following elements:
method - String.
"scran"fits a weighted lowess trend to the variance of the log-expression against its mean and ranks genes by the residual, as in scran'smodelGeneVar()."residual"ranks genes by the residual variance of a model fitted withfit_residuals_sc(), and needs that fit on the object first. It also treatshvg_noas a per-group count and returns the union across groups, so a grouped fit can select more thanhvg_nogenes. One ofc("vst", "meanvarbin", "dispersion", "scran", "residual"). Defaults to"vst".loess_span - Numeric. The span parameter for the loess function that is used to standardise the variance for
method = "vst", and the lowess span of the trend formethod = "scran". Defaults to0.3.num_bin - Integer. Number of bins for the
meanvarbinanddispersionmethods. Defaults to20L.bin_method - String. The binning method. One of
c("equal_width", "equal_freq"). Defaults to"equal_width".The elements of
params_hvg_scran_defaults(), overridden byscran, spliced in at this position.