Description Usage Arguments Value Examples
View source: R/optimize_functions.R
This function is used for searching for the optimal parameters used in MNN. The goal is find parameters that maximize the average of p-values from the neighbor_test function.
1 2 3 |
data_ref |
Single cell data from one data type as the reference for matching (e.g., scATAC-seq data). |
data_in |
Single cell data from another data type as the input for matching (e.g., scRNA-seq data). |
k_range |
Searching space for k, the number of mutual nearest neighbor in MNN. |
sigma_range |
Searching space for sigma, the bandwidth of the Gaussian smoothing kernel used to compute the correction vector. |
dim |
Number of dimension used for matching the single cells. For example, the number of principal components. |
dist_scale_in |
Scale used to define the radius of the region for testing. |
tol_er |
The desired accuracy in function optimize. |
ncore |
Number of CPU cores used for parallel processing. Use ncore = 1 to run the function without parallel processing. |
fast |
A flag indicates whether or not to use a fast neighbor_test. |
k_opt |
The optimal value for k. |
sigma_opt |
The optimal value for sigma. |
max_obj |
The average p-value based on the optimal parameters. |
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.