R/utilities.R

Defines functions .is_StereoGene_installed .StereoGene_run .CapR_run .is_CapR_installed .is_sort_installed .sort_run .is_bedtools_installed .bedtools_run

.bedtools_run <- function(cmd) {
    system2("bedtools", cmd)
}
.is_bedtools_installed <- function() {
    code <- suppressWarnings(
        system2("bedtools", "--version", stdout = NULL, stderr = NULL)
    )
    code == 0
}

.sort_run <- function(cmd) {
    system2("sort", cmd)
}
.is_sort_installed <- function() {
    code <- suppressWarnings(
        system2("sort", "--version", stdout = NULL, stderr = NULL)
    )
    code == 0
}

.is_CapR_installed <- function() {
    code <- suppressWarnings(
        system2("CapR", stdout = NULL, stderr = NULL)
    )
    code == 0
}
.CapR_run <- function(in_file, out_file, max_dist) {
    system2("CapR", args = c(in_file, out_file, max_dist))
}

.StereoGene_run <- function(cmd) {
    system2("StereoGene", cmd)
}
.is_StereoGene_installed <- function() {
    code <- suppressWarnings(
        system2("StereoGene", "-h", stdout = NULL, stderr = NULL)
    )
    code == 0
}

Try the nearBynding package in your browser

Any scripts or data that you put into this service are public.

nearBynding documentation built on Nov. 8, 2020, 8:15 p.m.