This tutorial requires RcisTarget >= 1.7.1.
## [1] '1.23.1'
# Genes to analyze:
txtFile <- paste(file.path(system.file('examples', package='RcisTarget')),"hypoxiaGeneSet.txt", sep="/")
geneSets <- list(hypoxia=read.table(txtFile, stringsAsFactors=FALSE)[,1])
# Background:
txtFile <- paste(file.path(system.file('examples', package='RcisTarget')),"randomGeneSet.txt", sep="/") # for the toy example we will use a few random genes
background <- read.table(txtFile, stringsAsFactors=FALSE)[,1]
The background should contain the target genes/regions.
If for any reason that is not the case, you can add the target genes to the background, or remove the target genes missing from the background (depending on what makes more sense in your specific analysis).
Select the appropriate ranking-database:
Load the database and re-rank the genes/motifs (e.g. only within the “background+foreground”)
Once the “background-ranking” is ready, just use it to run RcisTarget as usual:
Note: Since the ‘background database’ is typically much smaller than the full database (it has fewer genes or regions), we recommend to use
geneErnMethod = "icistarget"
instead of ‘aprox’.