Permuted: Permutation of data

PermutedR Documentation

Permutation of data

Description

This function permutes each row of the data matrix and calculates PCA on the permuted data matrix. By permuting each row of the data matrix, the marginal gene distributions are maintained.

Usage

Permuted(pbmc, default_assay = 'RNA', slot = 'scale.data', K)

Arguments

pbmc

a Seurat object to be permuted

default_assay

Which assay to use for permutation, default='RNA', but depending on the dataset, users may also want to use 'integrated'

slot

Which slot to use for permutation, default = 'scale.data'. If the user would like to use an alternate method of pre-processing/normalization, the user should add the matrix to the Seurat object and specify the slot name here

K

The number of PCs to use

Value

Returns a new Seurat object in which each row has been permuted and PCA has been calculated on the permuted data matrix.


JSB-UCLA/scDED documentation built on Feb. 8, 2025, 11:12 a.m.