get_bgzip <- function(conda_env="echoR_mini",
verbose = TRUE){
#### Find bgzip binary ####
## Not working
# pkgs <- echoconda::find_packages(packages = "bgzip",
# conda_env = conda_env)
python <- echoconda::find_python_path(conda_env = conda_env,
verbose = verbose)
bgzip_ex <- file.path(dirname(python),"bgzip")
if(!file.exists(bgzip_ex)) bgzip_ex <- "bgzip"
if(length(system("which bgzip", intern = TRUE))==0) {
stop("bgzip executable could be identified.")
}
return(bgzip_ex)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.