R/sortBam.R

setMethod(sortBam, "character",
          function(file, destination, ...,
                   byQname=FALSE, maxMemory=512)
{
    file <- .normalizePath(file)
    destination <- .normalizePath(destination)
    result <- .Call(.sort_bam, file, destination, byQname,
                    as.integer(maxMemory))
    destination <- paste(result, "bam", sep=".")
    if (!file.exists(destination)) {
        msg <- sprintf("'sortBam' failed to create destination '%s'",
                       destination)
        stop(msg)
    }
    destination
})

Try the Rsamtools package in your browser

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

Rsamtools documentation built on Nov. 8, 2020, 8:11 p.m.