R: createIdxBatch: Creation of index files for multiple BAM...

createIdxBatch {rbamtools} | R Documentation

## createIdxBatch: Creation of index files for multiple BAM files.

### Description

The function takes a vector of BAM-file names (plus optionally accompanying names of BAM-index-files) and checks for existing BAM-index files. When index files do not exist, the function creates the missing index files.

### Usage

    createIdxBatch(bam,idx=paste(bam,".bai",sep=""),rebuild=FALSE)

### Arguments

`bam` | Filenames of BAM-files to be opened.
`idx` | Optional: Name of BAM-index files
`rebuild` | Optional: Logical value. When `TRUE` the function rebuilds existing BAM-index files.

### Author(s)

Wolfgang Kaisers

### Examples

    bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
    createIdxBatch(bam)

[Package rbamtools version 2.16.17 Index]