The pre-release version of the package can be pulled from GitHub using the devtools package:
install.packages("BiocManager") # from CRAN
BiocManager::install("trichelab/velocessor")
See the Alevin velocity tutorial for more details on this.
library(AnnotationHub)
ah <- AnnotationHub()
# query(ah, c("ensdb", "Ensembl 99", "Homo sapiens") )
ens99 <- ah[["AH78783"]]
gencode33 <- genes(ens99, columns=c("symbol", "gene_biotype"))
library(velocessor)
alevin_suffix <- "_alevin"
runs <- list.files(pattern=paste0(alevin_suffix, "$"))
names(runs) <- sub(alevin_suffix, "", runs)
qm <- "alevin/quants_mat.gz"
txstub <- "gencode.v33.annotation.withintrons.expanded"
txis <- process_velo_txis(runs, txstub, anno=gencode33,
HARMONY=TRUE, SCVELO=TRUE,
BPPARAM=MulticoreParam(3))
txis <- rescale_dimred(txis, "UMAP")
plot_velo(txis, embed="scaled_UMAP", sizeref=3)
plot_velo generates an interactive plot colored by velocity pseudotime by default (above) .
Try zooming in and out with the middle mouse button, hovering, and rotating.
The repository includes a Makefile to facilitate some common tasks.
$ make test
. Requires the testthat package. You can also specify a specific test file or files to run by adding a "file=" argument, like $ make test file=logging
. test_package
will do a regular-expression pattern match within the file names. See its documentation in the testthat
package.
$ make doc
. Requires the roxygen2 package.