Description Usage Arguments Value Examples
View source: R/meta_analysis_functions.R
Generate a stand-alone HTML report with interactive figures and tables from a pre-calculated RCAS database (using RCAS::createDB) to compare multiple samples.
1 2 3 4 5 6 7 8 | runReportMetaAnalysis(
dbPath = "RCAS.sqlite",
sampleTablePath,
outDir = getwd(),
outFile = NULL,
quiet = FALSE,
selfContained = TRUE
)
|
dbPath |
Path to the sqlite database generated by RCAS::createDB |
sampleTablePath |
A tab-separated file with two columns (no rownames) header 1: sampleName, header 2: sampleGroup |
outDir |
Path to the output directory. (default: current working directory) |
outFile |
Name of the output HTML report (by default, the base name of sampleTablePath value is used to create a name for the HTML report) |
quiet |
boolean value (default: FALSE). If set to TRUE, progress bars and chunk labels will be suppressed while knitting the Rmd file. |
selfContained |
boolean value (default: TRUE). By default, the generated html file will be self-contained, which means that all figures and tables will be embedded in a single html file with no external dependencies (See rmarkdown::html_document) |
An html generated using rmarkdown/knitr/pandoc that contains interactive figures, tables, and text that provide an overview of the experiment
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | dbPath <- system.file("extdata", "hg19.RCASDB.sqlite",
package='RCAS')
#Hint: use RCAS::summarizeDatabaseContent to see which samples have processed
#data in the database.
summarizeDatabaseContent(dbPath = dbPath)
#Create a data table for samples and their groups sampleGroup field is used
#to group replicates of #the same sample into one group in visualizations.
#Any arbitrary name can be used for sampleGroup field. However, entries in
#the sampleName field must be available in the queried database
sampleData <- data.frame('sampleName' = c('FUS', 'FMR1'),
'sampleGroup' = c('FUS', 'FMR1'), stringsAsFactors = FALSE)
write.table(sampleData, 'sampleDataTable.tsv', sep = '\t',
quote =FALSE, row.names = FALSE)
#Use the generated database to run a report
runReportMetaAnalysis(dbPath = 'hg19.RCASDB.sqlite',
sampleTablePath = 'sampleDataTable.tsv')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.