#---------------------------------------------------------------------------------------------------
#' @import methods
#' @import TrenaProject
#' @importFrom AnnotationDbi select
#' @import org.Hs.eg.db
#'
#' @title TrenaProjectBrainCell-class
#'
#' @name TrenaProjectBrainCell-class
#' @rdname TrenaProjectBrainCell-class
#' @aliases TrenaProjectBrainCell
#' @exportClass TrenaProjectBrainCell
#'
.TrenaProjectBrainCell <- setClass("TrenaProjectBrainCell",
contains="TrenaProjectHG38")
#----------------------------------------------------------------------------------------------------
#' Define an object of class TrenaProjectBrainCell
#'
#' @description
#' Expression, variant and covariate data for the genes of interest (perhaps unbounded) for pre-term birth studies
#'
#' @rdname TrenaProjectBrainCell-class
#'
#' @export
#'
#' @return An object of the TrenaProjectBrainCell class
#'
TrenaProjectBrainCell <- function(quiet=TRUE)
{
genomeName <- "hg38"
directory <- system.file(package="TrenaProjectBrainCell", "extdata", "geneSets")
geneSet.files <- list.files(directory)
geneSets <- list()
for(file in geneSet.files){
full.path <- file.path(directory, file)
genes <- scan(full.path, sep="\t", what=character(0), quiet=TRUE, comment.char="#")
geneSet.name <- sub(".txt", "", file)
geneSets[[geneSet.name]] <- genes
}
footprintDatabaseNames <- c("brain_hint_16", "brain_hint_20", "brain_wellington_16", "brain_wellington_20")
footprintDatabaseHost <- "khaleesi.systemsbiology.net"
footprintDatabasePort <- 5432
dataDirectory <- system.file(package="TrenaProjectBrainCell", "extdata")
covariatesFile <- NA_character_;
.TrenaProjectBrainCell(TrenaProjectHG38(projectName="TrenaProjectBrainCell",
supportedGenes=geneSets[[1]],
footprintDatabaseHost=footprintDatabaseHost,
footprintDatabasePort=footprintDatabasePort,
footprintDatabaseNames=footprintDatabaseNames,
packageDataDirectory=dataDirectory,
quiet=quiet
))
} # TrenaProjectBrainCell, the constructor
#----------------------------------------------------------------------------------------------------
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.