Run fastica algorithm from the ica package for ICA dimensionality reduction.
For details about stored ICA calculation parameters, see
PrintICAParams
.
RunICA(object, ic.genes = NULL, ics.compute = 50, use.imputed = FALSE,
rev.ica = FALSE, print.results = TRUE, ics.print = 1:5,
genes.print = 50, ica.function = "icafast", seed.use = 1,
reduction.name = "ica", reduction.key = "IC", ...)
Seurat object
Genes to use as input for ICA. Default is object@var.genes
Number of ICs to compute
Run ICA on imputed values (FALSE by default)
By default, computes the dimensional reduction on the cell x gene matrix. Setting to true will compute it on the transpose (gene x cell matrix).
Print the top genes associated with each dimension
ICs to print genes for
Number of genes to print for each IC
ICA function from ica package to run (options: icafast, icaimax, icajade)
Random seed to use for fastica
dimensional reduction name, specifies the position in the object$dr list. ica by default
dimensional reduction key, specifies the string before the number for the dimension names. IC by default
Additional arguments to be passed to fastica
Returns Seurat object with an ICA calculation stored in object@dr$ica
# NOT RUN {
pbmc_small
# Run ICA on variable genes (default)
pbmc_small <- RunICA(pbmc_small, ics.compute=5)
# Run ICA on different gene set (in this case all genes)
pbmc_small <- RunICA(pbmc_small, ic.genes = rownames(pbmc_small@data))
# Plot results
ICAPlot(pbmc_small)
# }
Run the code above in your browser using DataLab