Learn R Programming

rbamtools (version 2.16.17)

createIdxBatch: 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.

Examples

Run this code
# NOT RUN {
bam<-system.file("extdata","accepted_hits.bam",package="rbamtools")
# }
# NOT RUN {
createIdxBatch(bam)
# }

Run the code above in your browser using DataLab