| get_permutations | R Documentation | 
Helper Function to generate shuffled means
get_permutations(
  lr_res,
  sce,
  nperms = 1000,
  seed = 1234,
  parallelize = FALSE,
  workers = 4,
  assay.type = "logcounts",
  verbose = TRUE
)
lr_res | 
 liana_pipe results  | 
sce | 
 SingleCellExperiment Object  | 
nperms | 
 number of permutations  | 
seed | 
 number used to set random seed  | 
parallelize | 
 logical whether to parallelize  | 
workers | 
 Number of workers to be used in parallelization  | 
assay.type | 
 - the type of data to be used to calculate the means (logcounts by default), available options are: "counts" and "logcounts"  | 
verbose | 
 logical for verbosity  | 
This function could be made generalizable to any set of genes, depending on the set (currently lr_res genes) that is used to filter - i.e. it could be replaced with e.g. genes from TF regulons
Returns a list of shuffled gene means by cluster
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.