as.list-cacomp-method: Convert cacomp object to list.

as.list,cacomp-methodR Documentation

Convert cacomp object to list.

Description

Convert cacomp object to list.

Usage

## S4 method for signature 'cacomp'
as.list(x)

Arguments

x

A cacomp object.

Value

A cacomp object.

Examples


# Simulate counts
cnts <- mapply(function(x){rpois(n = 500, lambda = x)},
               x = sample(1:100, 50, replace = TRUE))
rownames(cnts) <- paste0("gene_", 1:nrow(cnts))
colnames(cnts) <- paste0("cell_", 1:ncol(cnts))

# Run correspondence analysis
ca <- cacomp(obj = cnts, princ_coords = 3)
ca_list <- as.list(ca)

VingronLab/APL documentation built on Nov. 9, 2024, 5:33 p.m.