Skip to content

Commit

Permalink
add function to return dataframe of conda package versions
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinrue committed May 30, 2024
1 parent ad13b4a commit a3f1dd9
Show file tree
Hide file tree
Showing 4 changed files with 37 additions and 0 deletions.
2 changes: 2 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ export(gridVectors)
export(plotVelocity)
export(plotVelocityStream)
export(scvelo)
export(scveloCondaInfo)
exportMethods(embedVelocity)
exportMethods(gridVectors)
exportMethods(scvelo)
Expand All @@ -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)
Expand Down
14 changes: 14 additions & 0 deletions R/basilisk.R
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
17 changes: 17 additions & 0 deletions man/scveloCondaInfo.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions vignettes/velociraptor.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -159,4 +159,8 @@ velo.out4
sessionInfo()
```

```{r}
scveloCondaInfo()
```

# References

0 comments on commit a3f1dd9

Please sign in to comment.