Description Usage Arguments Details Value Author(s) See Also Examples
Describes extensions to the Rsamtools package.
For BamFile
and
BamFileList
objects:
validate
validates a BamFile
or
BamFileList
object.
1 2 |
obj |
An object of the |
header |
a boolean to (de)activate the check for a BAM header |
cross.validation |
a boolean - only valid for
|
validate
checks whether the BAM file exists and if a BAI index is present.
validate
returns invisibly a vector of boolean.
Fails anyway if any file is missing.
Nicolas Delhomme
BamFile
BamFileList
1 2 3 4 5 6 7 8 9 10 11 12 | # retrieve the data
tdir <- tutorialData()
# get the bam file path from the Bioc cache
filenames <- dir(tdir,pattern="[A,C,T,G]{6}\\.bam$",full.names=TRUE)
# retrieve the index from the Bioc cache too
inxnames <- sapply(paste0(sub(".*_","",basename(filenames)),".bai"),fetchData)
bfl <-BamFileList(filenames,index=inxnames)
validate(bfl)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.