Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

plotFactors

Plot scatter plots of unaligned and aligned factor loadings


Description

Generates scatter plots of factor loadings vs cells for both unaligned and aligned (normalized) factor loadings. This allows for easier visualization of the changes made to the factor loadings during the alignment step. Lists a subset of highly loading genes for each factor. Also provides an option to plot t-SNE coordinates of the cells colored by aligned factor loadings.

It is recommended to call this function into a PDF due to the large number of plots produced.

Usage

plotFactors(
  object,
  num.genes = 10,
  cells.highlight = NULL,
  plot.tsne = FALSE,
  verbose = TRUE
)

Arguments

object

liger object. Should call quantileAlignSNF before calling.

num.genes

Number of genes to display for each factor (default 10).

cells.highlight

Names of specific cells to highlight in plot (black) (default NULL).

plot.tsne

Plot t-SNE coordinates for each factor (default FALSE).

verbose

Print messages (TRUE by default)

Value

Plots to console (1-2 pages per factor)

Examples

## Not run: 
# ligerex (liger object), factorization complete
ligerex <- quantile_norm(ligerex)
# get tsne.coords for normalized data
ligerex <- runTSNE(ligerex)
# factor plots into pdf file
# pdf("plot_factors.pdf")
plotFactors(ligerex)
# dev.off()

## End(Not run)

rliger

Linked Inference of Genomic Experimental Relationships

v1.0.0
GPL-3
Authors
Joshua Welch [aut, ctb], Chao Gao [aut, ctb, cre], Jialin Liu [aut, ctb], Joshua Sodicoff [aut, ctb], Velina Kozareva [aut, ctb], Evan Macosko [aut, ctb], Paul Hoffman [ctb], Ilya Korsunsky [ctb], Robert Lee [ctb]
Initial release
2021-04-18

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.