# TODO: Update the data to name the genes using the identifiers Jing suggested
getCoefficients <- function() {
filepath <- system.file("extdata", 'coefficients.rda', package=.PACKAGE_NAME)
varName <- load(filepath)
get(varName)
}
getTargetGenes <- function() {
geneCoefficients <- getCoefficients()
geneNames <- rownames(geneCoefficients)[-1]
geneNames
}
getAnnotations <- function() {
filepath <- system.file("extdata", 'annotations.csv', package=.PACKAGE_NAME)
read.csv(filepath, stringsAsFactors=F)
}
getHousekeepingGenes <- function() {
hkg <- getAnnotations()
hkg[hkg$Gene.Selection == 'HK4/6', ]
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.