Learn R Programming

rbamtools (version 2.0.1)

cigarSize: Returns size of cigarData in bamAlign

Description

Size of cigarData denotes the number of cigar-items (e.g. 3 for cigarData 45M3501N56M).

Usage

cigarSize(object)

Arguments

object
bamAlign object

Value

  • Integer.

Examples

Run this code
library(rbamtools)
bam_file <- system.file("extdata", "accepted_hits.bam", package="rbamtools")
reader<-bamReader(bam_file)
align<-getNextAlign(reader)
name(align)
position(align)
cigarSize(align)
bamClose(reader)

Run the code above in your browser using DataLab