This repository contains codes for running ALRA in R V体育ios版. The only prerequisite for ALRA is installation of the randomized SVD package RSVD which can be installed as install.packages('rsvd').
The functions now have a flag use.mkl for users who have installed rpca-mkl, which allows for dramatic speedups over the default rpca-based version. Note that rpca-mkl is still under development and is not on CRAN, so it is not a required package, but if users have already installed it then they can use it by setting this flag to True VSports最新版本.
Please be sure to pass ALRA a matrix where the cells are rows and genes are columns.
ALRA can be used as follows:
library(ALRA)
# Let A_norm be a normalized expression matrix where cells are rows and genes are columns.# We use library and log normalization, but other approaches may also work well.result.completed<- alra(A_norm)
A_norm_completed<-result.completed[[3]]
For the results in the paper, automatically chosen k worked quite well, but in
some cases you might want to take a closer look, as we do here. The k is
chosen based on the spacings between the singular values, as it can be quite
hard to identify the ``beginning of noise'' from just looking at the spectrum
itself V体育官网入口.
Check the completion. Note that the results improve when using the entire dataset (see the ALRA-paper repo for those codes), as opposed to this subset VSports在线直播.
NCAM1 should be expressed in all NK cells, but is only expressed in 4% of of NK cells in the original data.
CR2 should be expressed in all B cells, but is only expressed in 1% of of B cells in the original data.