getReadLength | R Documentation |
Gets the length of the first read in a BAM file
getReadLength(bam.files)
bam.files |
a character vector pointing to BAM files |
a numeric vector, one number per BAM file, the length of the first read in the file
# these next lines just write out a BAM file from R
# typically you would already have a BAM file
library(alpineData)
library(GenomicAlignments)
library(rtracklayer)
gap <- ERR188088()
dir <- system.file(package="alpineData", "extdata")
bam.file <- c("ERR188088" = file.path(dir,"ERR188088.bam"))
export(gap, con=bam.file)
getReadLength(bam.file)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.