Description Usage Arguments Value Examples
Create a model for a target gene using a Trena object
1 2 | ## S4 method for signature 'Trena'
createGeneModelFromTfList(obj, targetGene, solverNames, tfList, mtx)
|
obj |
An object of class Trena |
targetGene |
The name of a target gene to use for building a model |
solverNames |
A character vector containing the solver names to be used for building the model |
tfList |
A character list, often the gene symbols for known transcription factors |
mtx |
An assay matrix of expression data |
A data frame containing the gene model
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | if(interactive()){ # takes too long for the bioconductor build
# Create a Trena object for human and make a gene model for "MEF2C" using a footprint filter
trena <- Trena("hg38")
chromosome <- "chr5"
mef2c.tss <- 88904257
loc.start <- mef2c.tss - 1000
loc.end <- mef2c.tss + 1000
database.filename <- system.file(package="trena", "extdata", "mef2c.neigborhood.hg38.footprints.db")
database.uri <- sprintf("sqlite://%s", database.filename)
sources <- c(database.uri)
load(system.file(package="trena", "extdata/ampAD.154genes.mef2cTFs.278samples.RData"))
model.mef2c <- createGeneModelFromTfList(trena, "MEF2C", c("lasso","ridge","randomforest"),
tfList=c())
} # if interactive
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.