-
Notifications
You must be signed in to change notification settings - Fork 3
Example Analysis
Before running CIE, you will need to download the required input network files and sample differential gene expression (DGE) profile from here. All required data files are withing CIEdata folder. This folder contains the following files:
- Input DGE profile from MYC overexpression - sample_input_myc.txt
- Tissue Corrected ChIP-network - tissueCorrectedChIP/
- STRINGdb Ents - string.ents
- STRINGdb Rels - string.rels
- TRRUST Ents - TRRUST.ents
- TRRUST Rels - TRRUST.rels
In the following, path/to/CIEdata/ must be replaced with the path to the location where you placed and unzipped the CIEdata folder.
The first step is to read the differential gene expression (DGE) file into a data frame.
library(CIE)
dge <- read.table("path/to/CIEdata/sample_input_myc.txt",
header=T, sep="\t")
head(dge, 20)![]() |
We will be using three networks: TRRUST, STRINGdb, and Tissue Corrected ChIP. To load the Tissue Corrected ChIP network we will use a function call. Here we are using the network valid across multiple tissues, "all".
tissChIP <- filterChIPAtlas(NA, NA, NA, cellLineType="all", tissueCorrect=TRUE,
databaseDir="path/to/CIEdata/tissueCorrectedChIP/")The ent and rels files of TRRUST and STRINGdb need only be downloaded.
To run enrichment over the Tissue-Corrected ChIP network, we will use the Ternary enrichment method since it is completely signed.
tissChIP.myc <- runCIE(DGEs=dge,
methods="Ternary",
ents=tissChIP$ChIPall.ents,
rels=tissChIP$ChIPall.rels,
useFile=FALSE)
head(tissChIP.myc, 20)The top twenty lines of the output are shown below
![]() |
For the STRINGdb network, we will use the Quaternary enrichment method since it is partially signed.
string.myc <- runCIE(DGEs=dge,
methods="Quaternary",
databaseType="string",
databaseDir="path/to/CIEdata/")
head(string.myc, 20)The top twenty lines of output are shown below
![]() |
TRRUST is an unsigned network so we will use the Fisher enrichment method.
trrust.myc <- runCIE(DGEs=dge,
methods="Fisher",
databaseType="TRRUST",
databaseDir="path/to/CIEdata/")
head(trrust.myc, 20)The top twenty lines of output are shown below
![]() |
The results can be graphed using our function createCytoGraph and the external library rcytoscapejs. All ents and rels tables must be loaded into the environment for the graphing function. Consequently, we start by reading the rels and ents files for TRRUST and STRINGdb
library(rcytoscapejs)
string <- lapply(c("string.ents", "string.rels"), function(x) {
read.table(paste0("path/to/CIEdata/", x),
header=T, sep="\t")
})
names(string) <- c("ents", "rels")
trrust <- lapply(c("TRRUST.ents", "TRRUST.rels"), function(x) {
read.table(paste0("path/to/CIEdata/", x),
header=T, sep="\t")
})
names(trrust) <- c("ents", "rels")We can then graph the results. For more information on graphing options type ?createCytoGraph in an R console where CIE is loaded.
createCytoGraph(enrichment=tissChIP.myc, ents=tissChIP$ChIPall.ents,
rels=tissChIP$ChIPall.rels, DGEs=dge)
createCytoGraph(enrichment=string.myc, ents=string$ents,
rels=string$rels, DGEs=dge)
createCytoGraph(enrichment=trrust.myc, ents=trrust$ents,
rels=trrust$rels, DGEs=dge)
This creates the graphs shown below.
![]() |
To identify pathways in which our top regulators play a role we use a function which sends a request to Reactome.
The function call based on our variable names is as shown below, which runs pathway enrichment on the top twenty regulators.
pTcMYC <- pathwayEnrichment(tissChIP.myc$name[1:20],)The output table is shown below
![]() |
The function call here is the same, but as we are using a different enrichment table the variable name is different
pStMYC <- pathwayEnrichment(string.myc$name[1:20],)![]() |
The final result shows that even though TRRUST did not return MYC as one of its top regulators, it returned members of some of the same top regulatory networks as Tissue Corrected ChIP Atlas. Tissue Corrected ChIP Atlas was able to recover MYC as a significant regulator.
pTrMYC <- pathwayEnrichment(trrust.myc$name[1:20],)![]() |







