R/rm_tbi.R

Defines functions rm_tbi

Documented in rm_tbi

#' Remove tbi
#' 
#' Remove local copies of tabix index file (\emph{.tbi}) 
#' after completing queries.
#' @inheritParams base::list.files
#' @returns None
#' 
#' @keywords internal
rm_tbi <- function(path=".",
                   pattern = "\\.tbi$"){
    f <- list.files(path = path,
                    pattern = pattern,
                    full.names = TRUE)
    if(length(f)>0) tmp <- file.remove(f)
}
RajLabMSSM/echotabix documentation built on Nov. 21, 2023, 8:02 a.m.