Git Product home page Git Product logo

basilisk's Introduction

Managing Python environments within Bioconductor

Environment Status
BioC-release Release OK
BioC-devel Devel OK

basilisk provides a standardized mechanism for handling Python dependencies within Bioconductor packages. It does so by automatically provisioning and managing one or more Conda environments per BioC package, ensuring that the end-user is not burdened with the responsibility of meeting any Python-based SystemRequirements. We integrate with reticulate to allow intuitive calling of Python code within R, with additional protection to ensure that multiple Python environments can be called within the same R session.

Most "users" of this package are expected to be Bioconductor package developers; end users should not need to interact with the basilisk machinery, all going well. Users can follow the typical installation process for Bioconductor packages:

install.packages("BiocManager") # if not already installed
BiocManager::install("basilisk")

# Bioconductor package developers may prefer to use the devel version:
BiocManager::install("basilisk", version="devel") 

The vignette provides instructions on how to adapt a client package to use basilisk. A minimal example is provided in the inst/example directory and contains code like:

# Provision an environment.
my_env <- BasiliskEnvironment(envname="my_env_name",
    pkgname="name.of.package",
    packages=c("pandas==0.25.1")
)

# Run reticulate code using that environment.
res <- basiliskRun(env=my_env, fun=function(args) {
    out <- reticulate::import("pandas")
    # Do something with pandas
    return(some_r_object)
})

Detailed documentation for each function is available through the usual methods, i.e., ?basiliskRun. See the Bioconductor landing page for more links; some examples of basilisk client packages include crisprScore and velociraptor.

Bugs can be posted to the Issues of this repository. Pull requests are welcome.

basilisk's People

Contributors

ltla avatar nturaga avatar jwokaty avatar vjcitn avatar hpages avatar csoneson avatar jfortin1 avatar martin-g avatar mbstadler avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.