Runs t-SNE on the quantile normalized cell factors (result from
quantileNorm
), or unnormalized cell factors (result from
runIntegration
)) to generate a 2D embedding for visualization.
By default Rtsne
(Barnes-Hut implementation of t-SNE)
method is invoked, while alternative "fftRtsne" method (FFT-accelerated
Interpolation-based t-SNE, using Kluger Lab implementation) is also
supported. For very large datasets, it is recommended to use
method = "fftRtsne"
due to its efficiency and scalability.
Extra external installation steps are required for using "fftRtsne" method. Please consult detailed guide.
runTSNE(
object,
useRaw = NULL,
useDims = NULL,
nDims = 2,
usePCA = FALSE,
perplexity = 30,
theta = 0.5,
method = c("Rtsne", "fftRtsne"),
dimredName = "TSNE",
fitsnePath = NULL,
seed = 42,
verbose = getOption("ligerVerbose", TRUE),
k = nDims,
use.raw = useRaw,
dims.use = useDims,
use.pca = usePCA,
fitsne.path = fitsnePath,
rand.seed = seed
)
The object
where a "TSNE"
variable is updated in the
cellMeta
slot with the whole 2D embedding matrix.
liger object with factorization results.
Whether to use un-aligned cell factor loadings (\(H\)
matrices). Default NULL
search for quantile-normalized loadings first
and un-aligned loadings then.
Index of factors to use for computing UMAP embedding. Default
NULL
uses all factors.
Number of dimensions to reduce to. Default 2
.
Whether to perform initial PCA step for Rtsne. Default
FALSE
.
Numeric parameter to pass to Rtsne (expected number of
neighbors). Default 30
.
Speed/accuracy trade-off (increase for less accuracy), set to
0.0
for exact TSNE. Default 0.5
.
Choose from "Rtsne"
or "fftRtsne"
. See
Description. Default "Rtsne"
.
Name of the variable in cellMeta
slot to store the
result matrix. Default "TSNE"
.
Path to the cloned FIt-SNE directory (i.e.
'/path/to/dir/FIt-SNE'
). Required only when first time using
runTSNE
with method = "fftRtsne"
. Default NULL
.
Random seed for reproducibility. Default 42
.
Logical. Whether to show information of the progress. Default
getOption("ligerVerbose")
or TRUE
if users have not set.
Deprecated. See Usage section for replacement.
runUMAP