library("aroma.seq")
fullTest <- (Sys.getenv("_R_CHECK_FULL_") != "")
# Setup (writable) local data directory structure
setupExampleData()
dataSet <- "TopHat-example"
organism <- "Lambda_phage"
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup FASTA reference file
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fa <- FastaReferenceFile$byOrganism(organism)
print(fa)
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup FASTQ set
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fqs <- FastqDataSet$byName(dataSet, organism=organism, paired=FALSE)
print(fqs)
for (ii in seq_along(fqs)) print(fqs[[ii]])
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Gzip data set
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
dataSetZ <- sprintf("%s,gz", dataSet);
pathZ <- file.path("fastqData", dataSetZ, organism)
for (ii in seq_along(fqs)) {
fq <- fqs[[ii]]
pathnameZ <- file.path(pathZ, sprintf("%s.gz", getFilename(fq)))
gzip(getPathname(fq), pathnameZ, skip=TRUE, remove=FALSE)
}
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Setup gzip'ed FASTQ set
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
fqsZ <- FastqDataSet$byName(dataSet, tags="gz", organism=organism, paired=FALSE)
print(fqsZ)
for (ii in seq_along(fqsZ)) print(fqsZ[[ii]])
# Assert that file extensions are properly dropped
stopifnot(all(getFullNames(fqsZ) == getFullNames(fqs)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.