savis | R Documentation |
savis: single-cell RNAseq adaptive visualiztaion
savis(
expr_matrix,
npcs = 20,
nfeatures = 2000,
hvg_method = NULL,
distance_metric = "euclidean",
cluster_method = "louvain",
resolution = 0.1,
resolution_sub = 0,
adaptive = TRUE,
max_stratification = 3,
scale_factor_separation = 3,
process_min_size = NULL,
process_min_count = NULL,
run_adaUMAP = TRUE,
adjust_UMAP = TRUE,
adjust_method = "all",
adjust_rotate = TRUE,
shrink_distance = TRUE,
density_adjust = TRUE,
density_adjust_via_global_umap = FALSE,
adjust_scale_factor = 0.9,
global_umap_embedding = NULL,
check_differential = FALSE,
verbose = TRUE,
show_cluster = FALSE,
return_cluster = FALSE,
return_combined_PC = FALSE,
verbose_more = FALSE,
compressed_storage = TRUE,
seed.use = 42L
)
expr_matrix |
The expression COUNT matrix: gene(feature) as row; cell(sample) as column. |
npcs |
The number of principle components will be computed as the initialization input of nonlinear low dimensional embeddings. Default is 20. |
nfeatures |
The number of highly variable genes will be selected. Default is 2000. |
hvg_method |
High Variable Gene Selection Method. Refer to manual of package 'mixhvg' and its function FindVariableFeaturesMix. |
distance_metric |
The default is "euclidean". Recommend to use "euclidean" because we need to distinguish between global distance and local distance. |
cluster_method |
The default is "louvain". User can choose from c("louvain","spectral"). But "louvain" performs much better. |
resolution |
The resolution for the louvain clustering. The resolution ranges from 0 to 1. The lower resolution means conservative clustering(smaller number of clusters), while the higher resolution means aggressive clustering. The default is 0.5. |
resolution_sub |
The resolution for the louvain clustering within subclusters, which means after the first step clustering and separation, we perform further clustering. The default is 0 because we are mainly interested in one step separation. |
adaptive |
Whether we will run adaptive visualization. If adaptive is FALSE, we are just doing UMAP. The default is TRUE. |
max_stratification |
The maximum level of stratification for subclustering. Set the maximum level to restrict too detailed exploration. The default is 3. |
scale_factor_separation |
Scale factor used to distinguish global distance and local distance. The default is 3. |
process_min_size |
The smallest size of cluster which we use to stop the process of subcluster evaluation. The clusters whose sizes are less than the cutoff will be not be further explored. The default is NULL. |
process_min_count |
The processed clusters are determined by the ranking of the size of clusters. Only further explore the clusters whose rankings are less than the process_min_count. The default is NULL. |
run_adaUMAP |
Whether we run the adaptive visualization. If the criterion is The default is TRUE. |
adjust_UMAP |
The default is TRUE. |
adjust_method |
The default is "all". Select from c("umap","mds"). |
adjust_rotate |
Adjust the rotation of each cluster. The default is TRUE. |
shrink_distance |
Shrink distance of small clusters to avoid too much space in plot. The default is TRUE. |
density_adjust |
Adjust density of plot. The default is TRUE. |
density_adjust_via_global_umap |
Do density adjustment using the density from UMAP to make it comparable. |
adjust_scale_factor |
Scale factor for adjustment. The default is 0.9. The smaller value (>0) means larger illustration of clusters. |
global_umap_embedding |
The default is NULL. |
check_differential |
The default is FALSE. |
verbose |
The default is TRUE. |
show_cluster |
The default is FALSE. |
return_cluster |
The default is FALSE. |
return_combined_PC |
The default is FALSE. |
verbose_more |
More details are displayed. The default is FALSE. |
compressed_storage |
Whether compress storage when returning. The default is FALSE. |
seed.use |
The default is 42L |
This function argument to the function
nothing useful
a<-1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.