permute_similarity {clustifyr} | R Documentation

## Compute a p-value for similarity using permutation

### Description

Permute cluster labels to calculate empirical p-value

### Usage

    permute_similarity(
      expr_mat,
      ref_mat,
      cluster_ids,
      n_perm,
      per_cell = FALSE,
      compute_method,
      rm0 = FALSE,
      ...
    )

### Arguments

`expr_mat` | single-cell expression matrix
`ref_mat` | reference expression matrix
`cluster_ids` | clustering info of single-cell data assume that genes have ALREADY BEEN filtered
`n_perm` | number of permutations
`per_cell` | run per cell?
`compute_method` | method(s) for computing similarity scores
`rm0` | consider 0 as missing data, recommended for per_cell
`...` | additional parameters

### Value

matrix of numeric values

[Package clustifyr version 1.0.0 Index]