library("RnaSeqTutorial")
## creating a BamFileList using a directory and pattern
bfl <- getBamFileList(
dir(path=system.file("extdata",
package="RnaSeqTutorial"),
pattern="[A,C,T,G]{6}\\.bam$",
full.names=TRUE))
## using filenames
filenames <- dir(path=
system.file("extdata",
package="RnaSeqTutorial"),
pattern="[A,C,T,G]{6}\\.bam$",
full.names=TRUE)
bfl <- getBamFileList(filenames)
## get them recursively
filenames <- dir(path=
system.file("extdata",
package="RnaSeqTutorial"),
pattern="[A,C,T,G]{6}\\.bam$",
full.names=TRUE,recursive=TRUE)
bfl <- getBamFileList(filenames)
Run the code above in your browser using DataLab