library("aroma.seq")
fullTest <- (Sys.getenv("_R_CHECK_FULL_") != "")
fullTest <- fullTest && isCapableOf(aroma.seq, "bowtie2")
if (fullTest) {
## Get BAM files
setupExampleData()
dataSet <- "TopHat-example"
organism <- "Lambda_phage"
fa <- FastaReferenceFile$byOrganism(organism)
fqs <- FastqDataSet$byName(dataSet, organism=organism)
bams <- doBowtie2(fqs, reference=fa, verbose=-20)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# BAM set
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
print(bams)
bamsT <- splitByTargetType(bams)
str(bamsT)
bamsT <- splitByTargetType(bams, as="index")
str(bamsT)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# BAM file
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bam <- bams[[1]]
print(bam)
fs <- getFlagStat(bam)
print(fs)
} # if (fullTest)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Non-existing BAM file
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
bam <- BamDataFile("non-existing.bam", mustExist=FALSE)
print(bam)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.