R/read_inv.R

Defines functions read_inv

Documented in read_inv

#' Read inversions
#'
#' Read inversions from .inv file.
#'
read_inv <- function(file) {

    a <- tbl_df(read.table(file, skip = 1, stringsAsFactors = FALSE))
    colnames(a) <- c("ref",
                     "iContig", "iMatchId1", "iMatchId2", "iRefInvBkptStart", "iRefInvBkptEnd",
                     "jContig", "jMatchId1", "jMatchId2", "jRefInvBkptStart", "jRefInvBkptEnd",
                     "validPair")
    return(a)
}
yanlinlin82/Rbionano documentation built on Dec. 26, 2019, 7:37 a.m.