
Wrapper function for Scrublet doublet detection parameters
params_scrublet.RdConstructor for the various Scrublet parameters. In this case,
the default for the kNN graph generation was set to "hnsw" as this
algorithm showed the best performance in different empirical benchmarks.
Arguments
- sim_doublet_ratio
Numeric. Number of doublets to simulate relative to the number of observed cells. For example, 2.0 simulates twice as many doublets as there are cells. Defaults to
1.5.- expected_doublet_rate
Numeric. Expected doublet rate for the experiment, typically 0.05-0.10 depending on cell loading. Must be between 0 and 1. Defaults to
0.1.- stdev_doublet_rate
Numeric. Uncertainty in the expected doublet rate. Defaults to
0.02.- n_bins_histogram
Integer. Number of bins for histogram-based automatic threshold detection. Typically 50-100. Defaults to
100L.- manual_threshold
Numeric or
NULL. Manual doublet score threshold. IfNULL(default), threshold is automatically detected from simulated doublet score distribution. Defaults toNULL.- normalisation
List. Optional overrides for normalisation parameters. See
params_norm_doublets_defaults()for available parameters:log_transform,mean_center,normalise_variance,target_size. Seeparams_norm_doublets_defaults()for the available elements. Defaults tolist().- hvg
List. Optional overrides for highly variable gene selection parameters. See
params_hvg_defaults()for available parameters:min_gene_var_pctl,hvg_method,loess_span,clip_max. Seeparams_hvg_defaults()for the available elements. Defaults tolist().- pca
List. Optional overrides for PCA parameters. See
params_pca_defaults()for available parameters:no_pcs,random_svd,sparseandskip_first_pc. Seeparams_pca_defaults()for the available elements. Defaults tolist().- knn
List. Optional overrides for kNN parameters. See
params_knn_defaults()for available parameters:k,knn_method,ann_dist,search_budget,n_trees,delta,diversify_prob,ef_budget,extract_knn,m,ef_construction,ef_search,n_listandn_probe. Note: this function defaults tok = 0L(automatic neighbour detection). Seeparams_knn_defaults()for the available elements. Defaults tolist(k = 0L).
Value
A named list with the following elements:
The elements of
params_norm_doublets_defaults(), overridden bynormalisation, spliced in at this position.The elements of
params_hvg_defaults(), overridden byhvg, spliced in at this position.The elements of
params_pca_defaults(), overridden bypca, spliced in at this position.The elements of
params_knn_defaults(), overridden byknn, spliced in at this position.sim_doublet_ratio - Numeric. Number of doublets to simulate relative to the number of observed cells. For example, 2.0 simulates twice as many doublets as there are cells. Defaults to
1.5.expected_doublet_rate - Numeric. Expected doublet rate for the experiment, typically 0.05-0.10 depending on cell loading. Must be between 0 and 1. Defaults to
0.1.stdev_doublet_rate - Numeric. Uncertainty in the expected doublet rate. Defaults to
0.02.n_bins_histogram - Integer. Number of bins for histogram-based automatic threshold detection. Typically 50-100. Defaults to
100L.manual_threshold - Numeric or
NULL. Manual doublet score threshold. IfNULL(default), threshold is automatically detected from simulated doublet score distribution. Defaults toNULL.