diff --git a/NAMESPACE b/NAMESPACE index 06a255c..73e0b44 100644 --- a/NAMESPACE +++ b/NAMESPACE @@ -6,6 +6,7 @@ export(gridVectors) export(plotVelocity) export(plotVelocityStream) export(scvelo) +export(scveloCondaInfo) exportMethods(embedVelocity) exportMethods(gridVectors) exportMethods(scvelo) @@ -28,6 +29,7 @@ importFrom(SingleCellExperiment,reducedDims) importFrom(SummarizedExperiment,assay) importFrom(SummarizedExperiment,rowData) importFrom(basilisk,BasiliskEnvironment) +importFrom(basilisk,listPackages) importFrom(reticulate,import) importFrom(scuttle,normalizeCounts) importFrom(stats,median) diff --git a/R/basilisk.R b/R/basilisk.R index ddb1cb5..4e63544 100644 --- a/R/basilisk.R +++ b/R/basilisk.R @@ -719,3 +719,17 @@ if (basilisk.utils::isWindows()) { #' @importFrom zellkonverter AnnDataDependencies velo.env <- BasiliskEnvironment("env", "velociraptor", packages=.scvelo_dependencies$packages, channels = .scvelo_dependencies$channels) + +#' List Conda Packages Information +#' +#' List package names and versions in the \pkg{scVelo} Conda environment. +#' +#' @return The data.frame returned by \code{basilisk::listPackages()}. +#' @export +#' @importFrom basilisk listPackages +#' +#' @examples +#' scveloCondaInfo +scveloCondaInfo <- function() { + basilisk::listPackages(velo.env) +} diff --git a/man/scveloCondaInfo.Rd b/man/scveloCondaInfo.Rd new file mode 100644 index 0000000..c45c92e --- /dev/null +++ b/man/scveloCondaInfo.Rd @@ -0,0 +1,17 @@ +% Generated by roxygen2: do not edit by hand +% Please edit documentation in R/basilisk.R +\name{scveloCondaInfo} +\alias{scveloCondaInfo} +\title{List Conda Packages Information} +\usage{ +scveloCondaInfo() +} +\value{ +The data.frame returned by \code{basilisk::listPackages()}. +} +\description{ +List package names and versions in the \pkg{scVelo} Conda environment. +} +\examples{ +scveloCondaInfo +} diff --git a/vignettes/velociraptor.Rmd b/vignettes/velociraptor.Rmd index 18b4297..a986ae3 100644 --- a/vignettes/velociraptor.Rmd +++ b/vignettes/velociraptor.Rmd @@ -159,4 +159,8 @@ velo.out4 sessionInfo() ``` +```{r} +scveloCondaInfo() +``` + # References