# Causal gene regulatory network inference using enhancer activity as a causal anchor

Deepti Vipin, Lingfei Wang, Guillaume Devailly, Tom Michoel, Anagha Joshi

► To cite this version:

Deepti Vipin, Lingfei Wang, Guillaume Devailly, Tom Michoel, Anagha Joshi. Causal gene regulatory network inference using enhancer activity as a causal anchor. Bioinformatics, 2018, Pré-Print (11), 10.3390/ijms19113609. [hal-01867041](https://hal.science/hal-01867041)

HAL Id: hal-01867041

https://hal.science/hal-01867041

Submitted on 26 May 2020

HAL is a multi-disciplinary open access
archive for the deposit and dissemination of sci-
entific research documents, whether they are pub-
lished or not. The documents may come from
teaching and research institutions in France or
abroad, or from public or private research centers.

L'archive ouverte pluridisciplinaire HAL, est
destinée au dépôt et à la diffusion de documents
scientifiques de niveau recherche, publiés ou non,
émanant des établissements d'enseignement et de
recherche français ou étrangers, des laboratoires
publics ou privés.

<figure><img src="image_1.png" /></figure>

Distributed under a Creative Commons Attribution 4.0 International License
<figure><img src="image_2.png" /></figure>

Article

# Causal Transcription Regulatory Network Inference Using Enhancer Activity as a Causal Anchor

Deepti Vipin<fnref n="1" />, Lingfei Wang<fnref n="2" />, Guillaume Devailly<fnref n="1" />, Tom Michoel<fnref n="2" />,<fnref n="3" /> and Anagha Joshi <fnref n="1" />,<fnref n="4" />,*

Received: 18 September 2018; Accepted: 8 November 2018; Published: 15 November 2018

<figure><img src="image_3.png" /></figure>

check for
updates

**Abstract:** Transcription control plays a crucial role in establishing a unique gene expression signature for each of the hundreds of mammalian cell types. Though gene expression data have been widely used to infer cellular regulatory networks, existing methods mainly infer correlations rather than causality. We developed statistical models and likelihood-ratio tests to infer causal gene regulatory networks using enhancer RNA (eRNA) expression information as a causal anchor and applied the framework to eRNA and transcript expression data from the FANTOM Consortium. Predicted causal targets of transcription factors (TFs) in mouse embryonic stem cells, macrophages and erythroblastic leukaemia overlapped significantly with experimentally-validated targets from ChIP-seq and perturbation data. We further improved the model by taking into account that some TFs might act in a quantitative, dosage-dependent manner, whereas others might act predominantly in a binary on/off fashion. We predicted TF targets from concerted variation of eRNA and TF and target promoter expression levels within a single cell type, as well as across multiple cell types. Importantly, TFs with high-confidence predictions were largely different between these two analyses, demonstrating that variability within a cell type is highly relevant for target prediction of cell type-specific factors. Finally, we generated a compendium of high-confidence TF targets across diverse human cell and tissue types.

**Keywords:** transcription regulation; gene expression; causal inference; enhancer activity

## 1. Introduction

Despite having the same DNA, gene expression is unique to each cell type in the human body. Cell type-specific gene expression is controlled by short DNA sequences called enhancers, located distal to the transcription start site of a gene. Collaborative efforts such as the FANTOM [1] and Roadmap Epigenomics [2] projects have now successfully built enhancer and promoter repertoires across hundreds of human cell types, with an estimated 1.4% of the human genome associated with putative promoters and about 13% with putative enhancers. Enhancers physically interact with promoters to activate gene expression. Although the general rules governing these interactions (if any) remain poorly understood, experimental techniques such as chromosome conformation capture (3C, 4C) combined with next generation sequencing (Hi-C) [3], as well as computational methods based on correlations

<footnote n="1">¹ Division of Developmental Biology, The Roslin Institute, The University of Edinburgh, Easter Bush, Midlothian, EH25 9RG Scotland, UK; Deepti.Vipin@roslin.ed.ac.uk (D.V.); Guillaume.Devailly@roslin.ed.ac.uk (G.D.)</footnote>

<footnote n="2">² Division of Genetics and Genomics, The Roslin Institute, The University of Edinburgh, Easter Bush, Midlothian, EH25 9RG Scotland, UK; Lingfei.wang@roslin.ed.ac.uk (L.W.); Tom.Michoel@roslin.ed.ac.uk (T.M.)</footnote>

<footnote n="3">³ Computational Biology Unit, Department of Informatics, University of Bergen, DataBlokk, 5th Floor, Thormohlensgt 55, N-5008 Bergen, Norway</footnote>

<footnote n="4">⁴ Computational Biology Unit, Department of Clinical Science, University of Bergen, DataBlokk, 5th Floor, Thormohlensgt 55, N-5008 Bergen, Norway</footnote>

<footnote>* Correspondence: anagha.joshi@uib.no; Tel.: +47-55-58-54-35</footnote>
between histone modifications or DNase I hypersensitivity at enhancers with the expression of nearby promoters [4,5] are continually improving in predicting enhancer-promoter interactions. In contrast, understanding how the activation of one gene leads to the activation or repression of other genes, i.e., uncovering the structure of cell type, specific transcriptional regulatory networks, remains a major challenge. It is known that promoter expression levels of transcription factors (TFs) co-express and cluster together with promoters of functionally-related genes [6], but without any additional information, such associations are merely correlative and do not indicate a causal regulation by the TF.

Statistical causal inference aims to predict causal models where the manipulation of one variable (e.g., expression of gene A) alters the distribution of the other (e.g., expression of gene B), but not necessarily vice versa [7]. A key role in causal inference is played by causal anchors, variables that are known *a priori* to be causally upstream of others and that can be used to orient the direction of causality between other, relevant variables. A major application of this principle has been found in genetical genomics or systems genetics: genetic variations between individuals alter molecular and organismal phenotypes, but not vice versa, so these quantitative trait loci (QTL) can be used as causal anchors to determine the direction of causality between correlated traits from population-based data [8–11]. Such pairwise causal associations can then be assembled into causal gene networks to model how genetic variation at multiple loci collectively affect the status of molecular networks of genes, proteins, metabolites and downstream phenotypes [12].

Interestingly, several experiments have recently shown that enhancer regions can be transcribed to form short (around 1000 bp), non-coding, often bi-directional transcripts, called enhancer RNAs or eRNAs [13]. eRNAs have other distinguishing features, including nonpolyadenylated and unspliced tails, and tend to remain nuclear, rather than reaching the cytoplasm for translation. Although the functional role of some eRNAs has been studied in great detail to demonstrate that they can enhance or suppress enhancer activity by enhancer-promoter looping [14], the full repertoire of functional mechanisms of eRNAs remains to be understood. Nevertheless, the presence of eRNAs from a regulatory region is an indicator of enhancer activity [15], and eRNA expression has been successfully used to predict transcription factor activity [16]. Moreover, eRNA expression is correlated with and, crucially, *temporally precedes* the expression of target genes [17]. We therefore hypothesized that eRNA expression as a readout of enhancer activity could act as a causal anchor, opening new avenues to reconstruct causal gene regulatory networks.

To test this hypothesis, we developed novel statistical models and likelihood-ratio tests for using (continuous) eRNA expression data in causal inference, based on existing methods for discrete eQTL data, and implemented these in the Findr software [18]. We applied this new method to Cap Analysis of Gene Expression (CAGE) data generated by the FANTOM5 Consortium. Unlike RNA sequencing, CAGE allows sequencing of only the five prime ends of mRNAs, providing genome-wide transcription start site quantification at much lower sequencing depth (and therefore, lower sequencing cost per sample) than RNA-seq. The FANTOM Consortium has generated a unique resource of enhancer and promoter expression across hundreds of human and mouse cell types [6,17] and validated predictions using ChIP-seq and perturbation data. Our analysis of the FANTOM data showed that continuous eRNA expression values increased target prediction performance for some factors, while for other factors, a binarized presence or absence of the enhancer signal performed better. Leveraging this observation, we found that a data-driven approach to classify enhancer expression as either binary or continuous was sufficient to select the best target prediction method automatically, allowing parameter-free application of the method to organisms and cell types where validation data are not currently available.

## 2. Results

### 2.1. *Development of a Causal Transcription Network Inference Framework*

We hypothesized that enhancer activity could be used as a causal anchor to predict causality between two co-expressed genes (Figure 1A). To this end, we used enhancer expression as a causal
anchor to infer causal gene interactions, within the Findr framework [18]. Findr provides accurate and efficient inference of gene regulations using eQTLs as causal anchors by accounting for hidden confounding factors and weak regulations. This is achieved by performing and combining five likelihood ratio tests (Figure 1B), each of which consists of a null ($H_{\text{null}}$) and an alternative ($H_{\text{alt}}$) hypothesis, to support or reject the causal model $E \to A \to B$, where E is an enhancer in the regulatory region of gene A, and B is a putative target gene: primary linkage ($E \to A$), secondary linkage ($E \to B$), conditional independence ($E \to B$ only through A), B's relevance ($E \to B$ or correlation between A and B) and excluding pleiotropy (partial correlation between A and B after conditioning on E). The log-likelihood ratios (LLRs) are computed for all possible targets of each gene and then converted into *p*-values and posterior probabilities [19] of the alternative hypothesis being true; see [18] for details.

<figure><img src="image_4.png" /><figcaption>**Figure 1.** Overview of the Findr framework. (A) The schematic representation of causal gene regulatory network inference using enhancer activity as a causal anchor. (B) Five statistical tests used by Findr for causal inference. (C) Workflow of the Findr-A framework. eRNA, enhancer RNA; TF, transcription factor; B, binary; C, continuous.</figcaption></figure>
We applied three treatments to enhancer expression data. First, we regarded enhancers as binary (on/off) variables, and after binarizing the data (see Methods), we used the existing Findr to predict TF targets directly. This approach will be referred to as Findr-B ("binary"). Second, we adapted all five tests in Findr to use continuous instead of discrete causal anchor data, and we used this method on (untransformed) eRNA data. This approach will be referred to as Findr-C ("continuous"). Third, to accommodate the co-existence of binary and continuous enhancers for different TFs within the same dataset, we developed an automatic adaptive method to treat each enhancer independently as binary or continuous, depending on the relative strength of the primary enhancer-TF linkage with either method. We call this approach Findr-A ("adaptive"). The workflow of the Findr framework is summarized in Figure 1C. We note that the implementation of the method is generic, i.e., it can be used by defining either eQTL genotypes or enhancer activity as causal anchors.

## 2.2. Causal Inference from Enhancer and Transcript/Gene Expression CAGE Data

To test our hypothesis that causal inference using enhancer expression as a causal anchor predicts true TF targets, we used CAGE data generated by the FANTOM Consortium across hundreds of cell types and tissues in human and mouse [6]. We used bi-directional expression in non-promoter regions as an indicator of likely enhancer activity in each CAGE sample [1]. Specifically, non-promoter regions with a similar number of sequence tags in both the forward and reverse direction were predicted as putative enhancer regions. Moreover, these regions also showed a high overlap (over 90 percent) with H3K4me1 modification. Importantly, CAGE data offer a powerful resource as each sample contains both enhancer and gene activity information. The ability to quantify enhancer expression (as a proxy for enhancer activity) and gene expression from the same sample is crucial for the ability to apply causal inference techniques. We first selected three mouse cell types (embryonic stem cells, macrophages and erythroblastic leukaemia) for systematic characterization, as these had more than 20 samples per cell type, with diverse treatments or time series. Furthermore, ChIP-seq and TF knock-out validation datasets were available for each of these cell types. In order to assign both promoter proximal, as well as promoter distal putative enhancers for each transcription factor, we selected predicted enhancers [1] within 50 kb of the transcription start site of each transcription factor in a cell type. This resulted in 109 enhancers for 48 transcription factors in ES cells, 55 enhancers for 8 transcription factors in macrophages and 5 enhancers for 4 transcription factors in erythroleukaemia, with an average of 3.8 enhancers per transcription factor across cell types.

We inferred causal transcription factor-target interactions for each transcription factor using the enhancer element most strongly linked to each TF in each cell type. We predicted targets for 48 transcription factors with two methods, one using continuous enhancer data ("Findr-C") and one using discretized, binary (on/off) enhancer data ("Findr-B") (see Methods). The Findr software outputs a score representing the putative probability of a causal interaction for each transcription factor-target pair (see Methods). For both methods, the targets with a predicted probability of a causal interaction greater than 0.8 (see Methods) were validated using a compendium of ChIP-seq data [20], containing 78 factors in ES cells, 12 factors in macrophages and 17 factors in erythroblasts. Of these factors, 18 in ES cells, 7 in macrophages and 4 in erythroblasts had enhancer expression in CAGE data. We noted that the suitability of Findr-B or Findr-C for causal inference was dependent on the factor, i.e., using continuous enhancer data performed better for some factors (Figure 2: Myc, Klf2, Figure S1: Fcgr3), while on/off data performed better for others (Figure 2: Gata1, Fli1, Figure S2: Junb, Jarid2). Because the number of putative ChIP-seq targets for each factor varied widely across factors and cell types, from only 420 gene targets for JunD in erythroblasts to over 12,000 gene targets for ESRRB in ES cells, the background precision levels differed highly between factors (Figure 2).

We further tested whether these results were sensitive to the target probability prediction threshold. The enrichments of true positives were stable over a wide range around this threshold for both methods (Figure 3, Figure S2).
Transcription factor binding inferred using ChIP-seq data is thought to be mostly opportunistic and therefore might not provide direct clues about the functional targets of the factor [21]. We therefore collected perturbation data from publications, specifically expression data after knock-out or knock-down (KO) of a factor. We generated differentially-expressed gene lists for 85 factors in ES cells and 11 factors in macrophages (see Methods). Using these gene lists as known targets, we evaluated the predictions of both methods. This confirmed the factor-specific suitability of either the Findr-B or Findr-C method (Figures 4, Figure S3).

<figure><img src="image_5.png" /><figcaption>**Figure 2.** Recall-precision curves for target predictions by Findr-B and Findr-C using ChIP-seq. The dotted line represents the background or the random classifier precision.</figcaption></figure>

<figure><img src="image_6.png" /><figcaption>**Figure 3.** Robustness of Findr performance demonstrated by using different score thresholds.</figcaption></figure>
<figure><img src="image_7.png" /><figcaption>**Figure 4.** Comparison of Findr-adaptive (A) predictions using mouse ES cells and all cell types samples. (A) Bar plots representing enrichments for Findr-B, -C and -A predictions using ChIP-seq data as a validation dataset for ES cells (left) and all cell types (right). (B) Bar plots representing enrichments for Findr-B, -C and -A predictions using knock-out data as a validation dataset for ES cells (left) and all cell types (right). (C) Overlap of factors between ES and all cell types using ChIP-seq (left) and knock-out (right) as validation datasets.</figcaption></figure>
The evaluation so far used the default combination of likelihood-ratio tests in Findr (Figure 1B, Tests 2, 4 and 5; see the Methods for details), which was previously shown to perform better than the traditional causal inference method, which relies on a conditional independence test (Figure 1B, Test 3), by accounting for hidden confounding due to common upstream regulatory factors between a TF and its targets [18]. To test whether this remains true for CAGE data, we implemented all five tests in both Findr-B and Findr-C. We found that the new test combination improved predictive power for the CAGE data in all three mouse cell types compared to the traditional test combination, similar to the previous results on eQTL data. We have therefore set it as the default choice for the Findr tool.

## 2.3. Development and Validation of an Adaptive Model-Selection Approach for Causal Inference Using Discretized or Continuous Data

As the optimal prediction performance depended on a factor-specific choice between discretizing enhancer expression data or not, we investigated if this decision could be made in a data-driven, adaptive approach (called "Findr-adaptive" or "Findr-A"; see Figure 1C), in the absence of validation data. In short, Findr-A selects for each TF among all its candidate enhancers, both continuous and binary, the one with the strongest primary linkage to the TF's expression and then uses that enhancer and its corresponding method (Findr-B or Findr-C) to predict downstream targets for that TF (see the Methods for details). This adaptive approach was indeed able to select the best performing method for most of the factors (Figure 4A,B, Findr-A selection marked by double stars).

We further performed functional enrichment analysis of gene target sets predicted by Findr-A. 1119 targets of JunB in macrophages were enriched for 'LPS signalling pathway' ($p < 10^{-8}$) and 'RNA binding' ($p < 10^{-8}$) (Tables S1 and S2). The macrophage CAGE samples indeed measured the response to LPS signalling and JunB is known to be a delayed response gene, attenuating transcriptional activity of immediate early genes and RNA binding proteins, specifically terminating translation of mRNAs induced by immediate early genes [22]. 131 targets for Cbx7 in ES cells (Figure 3) were enriched for 'regulation of transcription from RNA polymerase II promoter' ($p < 10^{-10}$), and included several developmental genes such as Hox family proteins (Tables S3 and S4). This enrichment was much stronger than for the ChIP bound targets of Cbx7 ($p < 10^{-5}$). Cbx7 is a part of the PRC complex, which binds predominantly at bivalent chromatin at promoters of transcription regulators in ES cells [23].

## 2.4. Perturbations within and across Cell Types Provide Causal Targets for a Distinct Set of Transcription Factors

We noted that most factors performed better using binary enhancer expression values and wondered if this might be due to the limited enhancer expression data available for each cell type. We therefore explored whether the enhancer activity across perturbations within cell type was comparable to variation of enhancer activity across different cell and tissue types. To test this, we used the FANTOM5 CAGE data containing over 1000 samples across 360 distinct mouse cell types and tissues, called "all-data". Findr-C indeed performed marginally better on all-data rather than cell type-specific data. Importantly, all-data and cell type (ES)-specific data resulted in causal targets for a distinct set of transcription factors. In particular, variation within a cell type was more informative for causal target predictions of cell type-specific factors. For example, the targets of key pluripotency factors Sox2 and Esrrb [24] were enriched in ES-data, but not all-data (Figure 4A,B).

There were only five common factors with causal targets predicted using both all-data and ES-specific data that were validated by ChIP-seq data and only six common factors validated by KO data (Figure 4C). Interestingly, the target genes predicted from ES-data and all-data for the same factor overlapped significantly. For example, 72% of Eed predicted targets using ES-data overlapped with Eed predicted targets using all-data.
## 2.5. Multiple Enhancers of the Same Factor Have a Highly Correlated Expression

Mammalian genes are controlled by multiple enhancers. We investigated the stability of inference outcome under different choices of enhancers as causal anchors. For all factors for which Findr-A predicted targets in ES cells that overlapped significantly with perturbation data (Figure 4), we predicted additional target sets using other available enhancers, resulting in target sets for 76 enhancer-transcription factor pairs for 46 unique transcription factors.

The hierarchical clustering of transcription factor-enhancer pairs based on these target sets clustered mostly by transcription factors, indicating that the expression of multiple enhancers contains highly redundant information about the activity of the associated transcription factor (Figure S5). Reassuringly, factors known to form regulatory complexes, including Max and Mxi1 or Runx1 and Smad1, also clustered together, i.e., shared predicted causal targets (Figure S5).

To investigate whether combining multiple enhancers was more informative for determining causal targets, we compared two integrative methods against the predictions of taking individual enhancers. Firstly, we used the median expression level of all the putative enhancers for each transcription factor as a 'meta-enhancer' in Findr-A (Figure S4A). Secondly, we calculated the first principal component of the binary target prediction matrix for all enhancer of a TF in order to 'average' predictions (Figure S4B). However, we did not observe any significant overall improvement in performance using either method.

## 2.6. Causal Inference Using CAGE Expression Data across Human Cell Types

Finally, we inferred causal interactions between transcription regulators and targets using CAGE enhancer and TSS expression data in humans. Specifically, we inferred causal interactions for 20 transcription factors (with eRNA expression) using Findr-A (see Methods). We firstly validated the predicted interactions using a database of experimentally-validated regulatory interactions in human [25] and noted a statistically-significant overlap between the predicted and experimentally-validated gene sets ($p < 10^{-5}$). Figure 5 represents the hierarchical clustering of the predicted top 200 interactions for each factor. We noted that multiple enhancers of the same factor predicted highly overlapping targets for that factor. Moreover, the factors involved in biologically-related processes shared predicted causal targets. For example, two members of the SMAD family, SMAD3 and SMAD6, as well as BCOR and SIN3A involved in histone deacetylase activity showed a high overlap of predicted targets.
<figure><img src="image_8.png" /><figcaption>**Figure 5.** Hierarchical representation of similarities between transcription factor-target sets predicted using Findr-A causal inference on the FANTOM5 human dataset.</figcaption></figure>

**3. Discussion**

We explored the utility of eRNA expression as a causal anchor to predict transcription regulatory networks, by leveraging the observation that eRNAs mark the activity of regulatory regions. Previous studies support this notion, as eRNA expression has been shown to precede the expression of its effector gene temporally [17] and to correlate strongly with active regulatory regions across cell types [15]. We therefore developed a novel statistical framework to infer causal gene networks (Findr-A), by extending the Findr software for causal inference using eQTL data [18].

We demonstrated the applicability of Findr-A by predicting causal interactions from CAGE data generated through the FANTOM Consortium and validating them with ChIP-seq and perturbation data for three mouse cell types, as well as on the entire FANTOM5 data. Notably, different factors were enriched for within cell type analysis as compared to across cell types. The causal regulatory network of cell type-specific factors (e.g., Sox2, Esrrb in ES cells) could be inferred only using expression variation within a cell type and not across cell types. Due to the limited availability of validation data, a more comprehensive assessment was not possible.

The current approach can be extended in several aspects in the future. Firstly, Findr assumes equal (or no) relations between all sample pairs [18], which hold for the majority of eQTL datasets. By accounting for heterogeneous sample relationships, such as biological and/or technical replicates, time series or population structure, we may be able to reconstruct more accurate networks. Secondly, the assumption that eRNAs act as causal anchors is only approximately true, because their activity ultimately is regulated by other regulatory factors, i.e., the assumption that they are a priori causally
upstream of correlated TF-gene pairs will not hold for all genes. Because eRNAs are temporally expressed before their direct target genes, we hypothesize that explicit modelling of gene expression dynamics in the Findr framework will allow detecting and correcting for such feedback loops. Thirdly, eRNAs are expressed at relatively low levels, and therefore susceptible to noise, and a reliable eRNA signal was available for only a limited number of known transcription factors in mouse or human. Generating deep sequencing data for CAGE, utilizing GRO-seq or epigenetic or transcription factor ChIP-seq data to estimate enhancer activity could be possible ways to get around this.

In this work, we have used a very basic approach for associating enhancers with their likely
promoters based on their mutual proximity, as associating enhancers with promoters was not our
main focus. This could be refined by using existing data generated by methods such as chromatin
confirmation capture or by integrating multiple genomic features into a statistical predictor for
associating enhancers with promoters [5].

Finally, we used ChIP-seq and KO data for validation, because these datasets were available for the same cell types as the expression data in mouse. These data are far from ideal as ground-truth sets, as ChIP-seq data tend to be noisy and differential expression in transcription factor knock-outs could include indirect effects. Moreover, the targets predicted by ChIP-seq and KO experiments show a very poor overlap between them. For example, a large-scale study where 59 TFs were knocked down in a human lymphoblastoid cell line (GM12878) concluded that only a small subset of genes bound by a factor were differentially expressed following knock-down of that factor [21]. It is therefore important to note that there is no universal agreement on ground-truth TF-target regulatory networks for validation, including networks obtained from literature mining. For example, there are only 151 common TF-target interactions among four literature-curated databases, which together comprise more than 10,000 interactions [26]. As shown, our method predicts targets for many TFs w.r.t. to one ground-truth as well or better than the other ground-truth, reaffirming our hypothesis that eRNA data can be used to infer TF targets.

In conclusion, we have demonstrated that enhancer activity can be used to infer causal gene
regulatory networks. We foresee this approach to be of high value in the context of human medicine,
by combining genetic, epigenetic and transcriptomic information across individuals to unravel causal
disease networks.

**4. Materials and Methods**

4.1. *Datasets*

* We used Cap Analysis of Gene Expression (CAGE) data (TPM expression values) from the FANTOM5 Consortium for enhancer and transcription start sites (TSS) in mouse embryonic stem (ES) cells (36 experiments), macrophages (224 experiments) and erythroblastic leukaemia (52 experiments) [6,17]. We also selected 1036 samples from all cell types and tissues in mouse.

* We use ChIP-seq data from the Codex Consortium [20]. Data available for 78 TFs in mouse ES cells, 12 TFs in macrophages and 17 TFs in erythroleukaemia cells were used.

* For validation using knock-out data, we have collected differentially-expressed gene lists after perturbation of factors from published studies in mouse and gene lists after overexpression of factors in mouse ES cells from [27].

* We obtained CAGE data (TPM expression values) from the FANTOM5 Consortium for enhancer and TSSs for human cell types and tissues [6,17]. The enhancer regions identified using bi-directional expression were obtained from [1]. The FANTOM5 Consortium has provided data for 1826 samples from which we selected 360 samples from all cell types and tissues, one sample for each cell and tissue type with the highest sequencing depth (removing technical and biological replicates).
## 4.2. Data Processing

* CAGE data were processed to clear unannotated and non-expressed genes, and expression levels were log-transformed. Genes with a TPM value of 1 or more in at least one sample were considered expressed. Only enhancers expressed in more than one third of experiments were retained.

* For each TF, we selected the promoter with the highest median expression level as the promoter for that TF.

* For each TF, all enhancers within 50 kb of the TF promoter region were detected using the GenomicRanges package in Bioconductor [28] and considered as candidate causal anchor enhancers for that TF. The Findr framework (described below in detail) includes a "primary linkage" step such that targets are only predicted for TFs with significantly correlated eRNAs.

* Enhancer data were binarized by setting all experiments with zero read count to zero and all others to one.

* For the ChIP-seq data, genes with a TF binding site within 1 kb of their TSS were defined as targets for that TF.

* For the knock-out and over-expression data, genes with differential expression q-value < 0.05 were defined as targets for the TF.

## 4.3. Likelihood Ratio Tests with Continuous Causal Anchor Data

Given a causal relation $E \to A \to B$ to test, where E is a (continuous) enhancer for TF A and B is a putative target gene, with their expression data samples 1, ..., n annotated in subscripts, we first convert each continuous variable into a standard normal distribution by rank. Each variable is modelled as a normal distribution with the mean linearly and additively dependent on its regulators in the five tests below (illustrated in Figure 1B).

1. **Primary linkage test:** The primary linkage test verifies that the enhancer E regulates the regulator gene A. Its null and alternative hypotheses are:

$$ \mathcal{H}_{\text{null}}^{(1)} \equiv E \quad A, \qquad \mathcal{H}_{\text{alt}}^{(1)} \equiv E \to A. $$

The log likelihood ratio (LLR) and its null distribution are identical to the correlation test in [18]. Therefore, the LLR is:

$$ \text{LLR}^{(1)} = -\frac{n}{2} \ln(1 - \hat{\rho}_{EA}^2), $$

where:

$$ \hat{\rho}_{XY} \equiv \frac{1}{n} \sum_{i=1}^{n} X_i Y_i . $$

Its null distribution is:

$$ \text{LLR}_{\text{null}}^{(1)} / n \sim \mathcal{D}(1, n-2). $$

The probability density function (PDF) for $z \sim \mathcal{D}(k_1, k_2)$ is defined as: for $z > 0$,

$$ p(z | k_1, k_2) = \frac{2}{B(k_1/2, k_2/2)} (1 - e^{-2z})^{(k_1/2 - 1)} e^{-k_2z}, $$

and for $z \le 0$, $p(z | k_1, k_2) = 0$, where $B(a, b)$ is the Beta function.

2. **Secondary linkage test:** The secondary linkage test verifies that the enhancer E regulates the target gene B. The LLR and its null distribution are identical to those of the primary linkage test, except by replacing A with B.
3. **Conditional independence test:** The conditional independence test verifies that E and B become independent after conditioning on A, with its null and alternative hypotheses as:

$$H_{\text{null}}^{(3)} \equiv E \to A \to B,$$

$$H_{\text{alt}}^{(3)} \equiv B \leftarrow E \to A \wedge (A \text{ correlates with } B).$$

Correlated genes are modelled as having a multi-variant normal distribution, whose mean linearly depends on their regulator gene. Therefore,

$$LLR^{(3)} = -\frac{n}{2} \ln \left( (1 - \hat{\rho}_{EA}^2)(1 - \hat{\rho}_{EB}^2) - (\hat{\rho}_{AB} - \hat{\rho}_{EA}\hat{\rho}_{EB})^2 \right) + \frac{n}{2} \ln(1 - \hat{\rho}_{EA}^2) + \frac{n}{2} \ln(1 - \hat{\rho}_{EB}^2).$$

Following the same definition of the null data, their null distribution is:

$$LLR_{\text{null}}^{(3)}/n \sim \mathcal{D}(1, n-3).$$

4. **Relevance test:** The relevance test verifies that B is regulated by either E or A. Its hypotheses are:

$$H_{\text{null}}^{(4)} \equiv E \to A \quad B,$$

$$H_{\text{alt}}^{(4)} \equiv E \to A \wedge E \to B \leftarrow A.$$

Similarly,

$$LLR^{(4)} = -\frac{n}{2} \ln \left( (1 - \hat{\rho}_{EA}^2)(1 - \hat{\rho}_{EB}^2) - (\hat{\rho}_{AB} - \hat{\rho}_{EA}\hat{\rho}_{EB})^2 \right) + \frac{n}{2} \ln(1 - \hat{\rho}_{EA}^2).$$

$$LLR_{\text{null}}^{(4)}/n \sim \mathcal{D}(2, n-3).$$

5. **Controlled test:** The controlled test verifies that E regulates B through A, partially or fully, with the hypotheses as:

$$H_{\text{null}}^{(5)} \equiv B \leftarrow E \to A,$$

$$H_{\text{alt}}^{(5)} \equiv B \leftarrow E \to A \wedge A \to B.$$

Its LLR is

$$LLR^{(5)} = -\frac{n}{2} \ln \left( (1 - \hat{\rho}_{EA}^2)(1 - \hat{\rho}_{EB}^2) - (\hat{\rho}_{AB} - \hat{\rho}_{EA}\hat{\rho}_{EB})^2 \right) + \frac{n}{2} \ln(1 - \hat{\rho}_{EA}^2) + \frac{n}{2} \ln(1 - \hat{\rho}_{EB}^2),$$

with the null distribution:

$$LLR_{\text{null}}^{(5)}/n \sim \mathcal{D}(1, n-3).$$

The LLR and its null distribution then allow one to compute the p-values and the posterior probabilities of the null and alternative hypotheses separately for each subtest, as detailed in [18].
### 4.4. Findr-B and Findr-C

In [18], it was shown that a combined causal inference test performs best in terms of sensitivity and specificity for recovering true regulatory interactions, using both real and simulated test data. The combined test score is:

$$P = \frac{1}{2}(P_2P_5 + P_4)$$

where $P_i$ is the posterior probability for subtest i.

The Findr-B method returns this combined p-value using the original Findr on binarized enhancer data. Findr-C does the same using the new tests on continuous enhancer data.

### 4.5. Adaptive Method Findr-A

Given a set of TFs and for every TF, a set of candidate causal anchor enhancers, the adaptive Findr-A method performs the following, for each TF A (Figure 1C):

1. Compute the primary linkage test p-value for all candidate enhancers of A, both continuous and binarized.

2. Find the enhancer E with the lowest p-value overall.

3. If the lowest p-value occurred for a binarized enhancer, use Findr-B for TF A with E as its causal anchor, else use Findr-C.

Findr-A, -B and -C have been implemented in the Findr software, available at https://github.com/lingfeiwang/findr.

### 4.6. Validation Methods

For the purpose of evaluation, we calculated the Findr-B and Findr-C scores for all TF-gene combinations. Genes with scores exceeding a threshold of 0.8 of Findr score were considered as predicted targets for each TF. Precision-recall curves were calculated using the “PRROC” package. We used the FDR corrected (BH procedure) hyper-geometric test for enrichment analysis, where the overlap with respect to known targets from ChIP-seq and knock-out data in the same cell type was tested, and the resulting p-values were used to compare the performance of the two methods.

**Supplementary Materials:** The following are available online at http://www.mdpi.com/1422-0067/19/11/3609/s1.

**Author Contributions:** A.J. and T.M. conceived of the project and designed the analysis. L.W. developed the computational tool. D.V. and G.D. analysed the data. A.J. and T.M. wrote the paper.

**Funding:** This work was funded by grants from the Biotechnology and Biological Sciences Research Council (BBSRC) (BB/P013732/1, BB/M020053/1). A.J. is currently supported by Bergen Research Foundation Grant No. BFS2017TMT01.

**Conflicts of Interest:** The authors declare no conflict of interest.

## References

1. Andersson, R.; Gebhard, C.; Miguel-Escalada, I.; Hoof, I.; Bornholdt, J.; Boyd, M.; Chen, Y.; Zhao, X.; Schmidl, C.; Suzuki, T.; et al. An atlas of active enhancers across human cell types and tissues. *Nature* **2014**, *507*, 455–461. [CrossRef] [PubMed]

2. Kundaje, A.; Meuleman, W.; Ernst, J.; Bilenky, M.; Yen, A.; Heravi-Moussavi, A.; Kheradpour, P.; Zhang, Z.; Wang, J.; Ziller, M.J.; et al. Integrative analysis of 111 reference human epigenomes. *Nature* **2015**, *518*, 317–330. [CrossRef] [PubMed]

3. Mifsud, B.; Tavares-Cadete, F.; Young, A.N.; Sugar, R.; Schoenfelder, S.; Ferreira, L.; Wingett, S.W.; Andrews, S.; Grey, W.; Ewels, P.A.; et al. Mapping long-range promoter contacts in human cells with high-resolution capture Hi-C. *Nat. Genet.* **2015**, *47*, 598–606. [CrossRef] [PubMed]

4. Thurman, R.E.; Rynes, E.; Humbert, R.; Vierstra, J.; Maurano, M.T.; Haugen, E.; Sheffield, N.C.; Stergachis, A.B.; Wang, H.; Vernot, B.; et al. The accessible chromatin landscape of the human genome. *Nature* **2012**, *489*, 75–82. [CrossRef] [PubMed]
5. He, B.; Chen, C.; Teng, L.; Tan, K. Global view of enhancer-promoter interactome in human cells. *Proc. Natl. Acad. Sci. USA* **2014**, *111*, E2191–E2199. [CrossRef] [PubMed]

6. Forrest, A.; Kawaji, H.; Rehli, M.; Baillie, J.; de Hoon, M.; Haberle, V.; Lassmann, T.; Kulakovskiy, I.; Lizio, M.; Itoh, M.; et al. A promoter-level mammalian expression atlas. *Nature* **2014**, *507*, 462–470. [CrossRef] [PubMed]

7. Pearl, J. *Causality*; Cambridge University Press: Cambridge, UK, 2009.

8. Schadt, E.E.; Lamb, J.; Yang, X.; Zhu, J.; Edwards, S.; GuhaThakurta, D.; Sieberts, S.K.; Monks, S.; Reitman, M.; Zhang, C.; et al. An integrative genomics approach to infer causal associations between gene expression and disease. *Nat. Genet.* **2005**, *37*, 710–717. [CrossRef] [PubMed]

9. Chen, L.S.; Emmert-Streib, F.; Storey, J.D. Harnessing naturally randomized transcription to infer regulatory relationships among genes. *Genome Biol.* **2007**, *8*, R219. [CrossRef] [PubMed]

10. Rockman, M.V. Reverse engineering the genotype–phenotype map with natural genetic variation. *Nature* **2008**, *456*, 738–744. [CrossRef] [PubMed]

11. Li, Y.; Tesson, B.M.; Churchill, G.A.; Jansen, R.C. Critical reasoning on causal inference in genome-wide linkage and association studies. *Trends Genet.* **2010**, *26*, 493–498. [CrossRef] [PubMed]

12. Schadt, E.E. Molecular networks as sensors and drivers of common human diseases. *Nature* **2009**, *461*, 218. [CrossRef] [PubMed]

13. Natoli, G.; Andrau, J.C. Noncoding transcription at enhancers: general principles and functional models. *Annu. Rev. Genet.* **2012**, *46*, 1–19. [CrossRef] [PubMed]

14. Lam, M.T.; Cho, H.; Lesch, H.P.; Gosselin, D.; Heinz, S.; Tanaka-Oishi, Y.; Benner, C.; Kaikkonen, M.U.; Kim, A.S.; Kosaka, M.; et al. Rev-Erbs repress macrophage gene expression by inhibiting enhancer-directed transcription. *Nature* **2013**, *498*, 511–515. [CrossRef] [PubMed]

15. Danko, C.G.; Hyland, S.L.; Core, L.J.; Martins, A.L.; Waters, C.T.; Lee, H.W.; Cheung, V.G.; Kraus, W.L.; Lis, J.T.; Siepel, A. Identification of active transcriptional regulatory elements from GRO-seq data. *Nat. Methods* **2015**, *12*, 433–438. [CrossRef] [PubMed]

16. Azofeifa, J.G.; Allen, M.A.; Hendrix, J.R.; Read, T.; Rubin, J.D.; Dowell, R.D. Enhancer RNA profiling predicts transcription factor activity. *Genome Res.* **2018**. [CrossRef] [PubMed]

17. Arner, E.; Daub, C.O.; Vitting-Seerup, K.; Andersson, R.; Lilje, B.; Drablos, F.; Lennartsson, A.; Ronnerblad, M.; Hrydziuszko, O.; Vitezic, M.; et al. Transcribed enhancers lead waves of coordinated transcription in transitioning mammalian cells. *Science* **2015**, *347*, 1010–1014. [CrossRef] [PubMed]

18. Wang, L.; Michoel, T. Efficient and accurate causal inference with hidden confounders from genome-transcriptome variation data. *PLoS Comput. Biol.* **2017**, *13*, e1005703. [CrossRef] [PubMed]

19. Storey, J.D.; Tibshirani, R. Statistical significance for genomewide studies. *Proc. Natl. Acad. Sci. USA* **2003**, *100*, 9440–9445. [CrossRef] [PubMed]

20. Sánchez-Castillo, M.; Ruau, D.; Wilkinson, A.C.; Ng, F.S.; Hannah, R.; Diamanti, E.; Lombard, P.; Wilson, N.K.; Gottgens, B. CODEX: A next-generation sequencing experiment database for the haematopoietic and embryonic stem cell communities. *Nucleic Acids Res.* **2015**, *43*, D1117–D1123. [CrossRef] [PubMed]

21. Cusanovich, D.A.; Pavlovic, B.; Pritchard, J.K.; Gilad, Y. The functional consequences of variation in transcription factor binding. *PLoS Genet.* **2014**, *10*, e1004226. [CrossRef] [PubMed]

22. Healy, S.; Khan, P.; Davie, J.R. Immediate early response genes and cell transformation. *Pharmacol. Ther.* **2013**, *137*, 64–77. [CrossRef] [PubMed]

23. Mantsoki, A.; Devailly, G.; Joshi, A. CpG island erosion, polycomb occupancy and sequence motif enrichment at bivalent promoters in mammalian embryonic stem cells. *Sci. Rep.* **2015**, *5*, 16791. [CrossRef] [PubMed]

24. Dunn, S.J.; Martello, G.; Yordanov, B.; Emmott, S.; Smith, A.G. Defining an essential transcription factor program for naïve pluripotency. *Science* **2014**, *344*, 1156–1160. [CrossRef] [PubMed]

25. Han, H.; Cho, J.W.; Lee, S.; Yun, A.; Kim, H.; Bae, D.; Yang, S.; Kim, C.Y.; Lee, M.; Kim, E.; et al. TRRUST v2: An expanded reference database of human and mouse transcriptional regulatory interactions. *Nucleic Acids Res.* **2018**, *46*, D380–D386. [CrossRef] [PubMed]

26. Han, H.; Shim, H.; Shin, D.; Shim, J.E.; Ko, Y.; Shin, J.; Kim, H.; Cho, A.; Kim, E.; Lee, T.; et al. TRRUST: A reference database of human transcriptional regulatory interactions. *Sci. Rep.* **2015**, *5*, 11432. [CrossRef] [PubMed]
27. Xu, H.; Baroukh, C.; Dannenfelser, R.; Chen, E.Y.; Tan, C.M.; Kou, Y.; Kim, Y.E.; Lemischka, I.R.; Ma'ayan, A. ESCAPE: database for integrating high-content published data collected from human and mouse embryonic stem cells. *Database (Oxford)*** **2013**, *2013*, bat045. [CrossRef] [PubMed]

28. Lawrence, M.; Huber, W.; Pages, H.; Aboyoun, P.; Carlson, M.; Gentleman, R.; Morgan, M.T.; Carey, V.J. Software for computing and annotating genomic ranges. *PLoS Comput. Biol.* **2013**, *9*, e1003118. [CrossRef] [PubMed]

<figure><img src="image_9.png" /></figure>

© 2018 by the authors. Licensee MDPI, Basel, Switzerland. This article is an open access article distributed under the terms and conditions of the Creative Commons Attribution (CC BY) license (http://creativecommons.org/licenses/by/4.0/).