Skip to main content
PLOS Computational Biology logoLink to PLOS Computational Biology
. 2020 Apr 6;16(4):e1007800. doi: 10.1371/journal.pcbi.1007800

MAGIC: A tool for predicting transcription factors and cofactors driving gene sets using ENCODE data

Avtar Roopra 1,*
Editor: Ilya Ioshikhes2
PMCID: PMC7162552  PMID: 32251445

Abstract

Transcriptomic profiling is an immensely powerful hypothesis generating tool. However, accurately predicting the transcription factors (TFs) and cofactors that drive transcriptomic differences between samples is challenging. A number of algorithms draw on ChIP-seq tracks to define TFs and cofactors behind gene changes. These approaches assign TFs and cofactors to genes via a binary designation of ‘target’, or ‘non-target’ followed by Fisher Exact Tests to assess enrichment of TFs and cofactors. ENCODE archives 2314 ChIP-seq tracks of 684 TFs and cofactors assayed across a 117 human cell lines under a multitude of growth and maintenance conditions. The algorithm presented herein, Mining Algorithm for GenetIc Controllers (MAGIC), uses ENCODE ChIP-seq data to look for statistical enrichment of TFs and cofactors in gene bodies and flanking regions in gene lists without an a priori binary classification of genes as targets or non-targets. When compared to other TF mining resources, MAGIC displayed favourable performance in predicting TFs and cofactors that drive gene changes in 4 settings: 1) A cell line expressing or lacking single TF, 2) Breast tumors divided along PAM50 designations 3) Whole brain samples from WT mice or mice lacking a single TF in a particular neuronal subtype 4) Single cell RNAseq analysis of neurons divided by Immediate Early Gene expression levels. In summary, MAGIC is a standalone application that produces meaningful predictions of TFs and cofactors in transcriptomic experiments.

Author summary

Key to the control of gene expression is the level of transcript in the cell. This level is controlled large part by Transcription factors (TFs) and cofactors. TFs are DNA binding proteins that recognize specific sequence elements to control levels of gene activity. TFs recruit cofactors that do not themselves bind DNA but are brought to promoters via TFs to either enhance or repress gene expression. TFs and cofactors are thus key regulators of transcript levels. It is now routine to obtain the expression levels of every gene transcript in the genome i.e. whole transcriptome data. Understanding how the transcriptome is controlled is challenging. Herein, a method is described that predicts which Factors organize and control sets of genes. The algorithm is termed Mining Algorithm for GenetIc Controllers (MAGIC). MAGIC uses data derived from ChIPseq tracks archived at ENCODE to decipher which Factors are most likely to preferentially bind lists of genes that are altered from one biological state to another. MAGIC circumvents the principal confounds of current methods to identify Factors and will aid in the discovery of organizing principles behind large scale gene changes seen in physiology and disease.


This is a PLOS Computational Biology Methods paper.

Introduction

Key to the control of gene expression is the level of transcript in the cell. This level is controlled large part by Transcription factors (TFs) and cofactors. TFs are DNA binding proteins that recognize specific sequence elements (motifs) associated with gene promoters and enhancers. TFs recruit cofactors that do not themselves bind DNA but are brought to promoters via TFs to either enhance or repress gene expression. TFs and cofactors (hereon termed ‘Factors’) are thus key regulators of transcript levels[1].

It is now routine to obtain the levels of every gene transcript in the genome. The datasets can contain tens of thousands of expression values per sample and the number of samples can be in the thousands such as breast cancer transcriptomes archived at The Cancer Genome Atlas (TCGA)[2]. When comparing transcriptomes from two or more conditions such as normal to cancerous tissue, thousands of mRNA levels can change. The changes reflect both alterations in tissue heterogeneity and alterations in transcriptional regulator function. We posit that in many cases, the majority of cellular transcriptome changes are driven by alterations in the function of a few Factors that coordinate gene programs. Identifying those driving Factors is a fundamental problem and therapeutic opportunity.

Current algorithms for discerning Factors behind transcriptomic changes fall into two categories. The first looks for motifs that are over-represented in the upstream regions of a set of genes[35]. This approach often fails because with very few exceptions, transcription factor motifs are small and often have redundant bases.Thus, searches will yield a high false positive rate; most predicted sites will not be functional. Moreover, in many genes, TFs act in concert such that the presence of a single motif element is uninformative[6]. Motif searching also precludes any prediction of cofactors because cofactors do not bind DNA directly[7]. This is especially problematic for translational research where uncovering drugable targets is a major goal, and cofactors are often enzymes that can make excellent drug targets. A second approach relies on assigning genes to Factors by analysis of ChIP-seq tracks. Genes are ranked by ChIP signal and then an arbitrary number of ‘top’ genes are taken as targets to form a gene set for a Factor. Fisher Exact Tests (FET) or Gene Set Enrichment Analysis-like (GSEA) analyses[8] can then be performed between differentially expressed genes and Factor sets. Examples of such algorithms are BART[9], VIPER[10], TFEA.ChIP[11], ENRICHR[12] and CHEA3[13].

ChIP-seq based approaches allow for assignment of cofactors. However, many Factors have highly non-gaussian ChIP signal distributions; the distributions can have large numbers of sites with very low but detectable signals. This thwarts unbiased attempts to define genes as ‘targets’ or ‘non-targets’[14]. Herein, a method is described that assigns Factors to gene lists using ENCODE ChIP-seq data without first defining genes as ‘targets’ or ‘non-targets’. The algorithm is termed Mining Algorithm for GenetIc Controllers (MAGIC). MAGIC circumvents the principal confounds of current methods to identify Factors, namely: 1) the use of TF motif searches 2) inability to identify cofactors due the absence of any binding site motifs 3) assignment of Factors to genes based on hard cutoffs of ChIP-seq signals. MAGIC accepts an input set of genes and compares ChIP signals for the set with the population of ChIP signals for each Factor in ENCODE. When compared to CHEA3, TFEA.CHIP and ENRICHR, MAGIC performs favourably in predicting transcription factors and cofactors enriched in lists of differentially expressed genes.

Methods

MCF7 RNA profiling

MCF7 cells harboring a REST shRNA knockdown and controls were generated as described and the dataset derived from Nimblegen Arrays is described in Meyer et al[15]. Probes were considered as expressed in the experiment if they were called as ‘present’ in all 3 samples of either controls or knockdown cells. If a probe was present in only one condition, the values in the other condition were accepted regardless of the present/absent call. Student t tests were performed for each probe and one probe was assigned per gene symbol by taking the probe with the largest T statistic between conditions. Genes up-regulated more than 3 Standard Deviations from the log of the mean fold change (average shREST value/average shCon value) and having a Benjamini Hochberg[16] corrected t-test p value<0.05 were used for Factor analysis. The background list consisted of all symbols found to be present in all controls or all knockdowns or both (S1 Table).

TCGA profiling

Breast cancer RNAseq data (data_RNA_Seq_v2_expression_median.txt) was downloaded from cBioPortal (latest datafreeze as of 6July2017). PAM50[17] designations were used to parse tumors into Luminal-A or Basal subtypes. A gene with an RPKM ≥1 in at least 50% of either basal or Luminal-A samples was considered for further analysis. Fold changes, statistics and gene lists were then generated as above (S2 Table).

Sams et al profiling

RNAseq data associated with Sams et al[18] (GSE84175) was downloaded from GEO. A gene with an RPKM ≥1 in all controls or all CTCF KO cells was considered for further analysis and fold changes, statistics and gene lists were then generated as above for REST knock-down cells. 17,015 genes were expressed by this criterion with 432 genes down-regulated at least 1.5 fold with a corrected t-test p value < 0.25 (S3 Table).

Jaeger et al profiling

Supplemental file 41467_2018_5418_MOESM6_ESM.xlsx from Jaeger et al [19] was used to generate gene lists for Factor analysis. All genes with a positive test statistic and adjusted p-value<0.05 (842 genes) were accepted as up-regulated genes from the DG_Reactive_HC tab. All 5306 detected genes were used as a background list (S4 Table).

MAGIC

MAGIC aims to determine whether genes in a query list are associated with higher ChIP values than expected by chance for a given transcription factor or cofactor based on ChIP-seq tracks archived at ENCODE. MAGIC was written in Python 3.7 and packaged into a stand-alone executable using Pyinstaller 3.6.

Generation of MAGIC matrices

MAGIC utilizes MAGIC matrix files (*.mtx files) to determine Factors behind gene lists. MAGIC matrices were generated as follows: All human genes were assigned a gene domain encompassing one of the following: 1) gene body (promoter to the end of the last exon) plus 1Kb flanking sequence either side of the gene body, 2) gene body plus 5Kb flanking sequence either side of the gene body, 3) 1Kb upstream of the promoter and 300bp downstream. NarrowPeak files for all Factors were downloaded from: https://www.encodeproject.org/matrix/?searchTerm=chip-seq&type=Experiment&target.investigated_as=transcription+factor&files.file_type=bed+narrowPeak&award.project=ENCODE

A custom Python script was used to extract the highest ChIP-seq peak value (signalValue) within the gene domain for each ChIP-seq track. Thus each Factor and gene were assigned a single signalValue. Matrices were generated that either include Chip-Seq tracks for Factors that were engineered (for example by CRISPR or stable transfection) in which case they have “_with_engineered_factors” in the name, or do not include engineered factors. Five matrices are therefore currently available to the user:

1Kb_gene.mtx

1Kb_gene_with_engineered_factors.mtx

1Kb_promoter.mtx

1Kb_promoter_with_engineered_factors.mtx

5Kb_gene.mtx

5Kb_gene_with_engineered_factors.mtx

Matrices with engineered factors are derived from 2312 ChIP-seq tracks covering 684 Factors in 588 cell lines or conditions. Matrices without engineered Factors derive from 1923 ChIP-seq tracks covering 392 Factors in 207 cell lines or conditions. All Matrices encompass 27,941 genes.

Defining enriched factors in a gene set

At least two lists are entered into MAGIC. The first is a background list containing all genes of relevance to the experiment (for example, all genes present or expressed in an experiment). Subsequent lists contains genes of interest–the query lists (e.g. differentially expressed genes). Query lists are subsets of the background list and both lists are filtered by MAGIC for genes present in the designated MAGIC matrix.

For each Factor in the Matrix, MAGIC orders the N genes in the accepted background list by ChIP signal (lowest to highest). It then generates a normalized cumulative distribution function (CDF) such that:

B(c)=1Ni=1N1Bic

Where B(c) is the fraction of genes in the background list (N genes) with ChIP signal less than or equal to c. B are the ordered ChIP signals. 1Bic is an indicator function that is equal to 1 if Bi ≤ c else equal to 0. An empirical distribution function, Q(c) is generated by accumulating the ordered X query genes (Q) (where Q is a subset of B and 1Qic = 1 if Qi less than or equal to c else equal to 0):

Q(c)=1Xi=1X1Qic

The maximal difference between the two cumulatives is then calculated thus:

Dsup=supc(B(c)Q(c))

A Kolmogorov-Smirnov test is performed on N, X and Dsup to determine the probabilty of this difference or larger occuring by chance. The argument of Dsup (argDsup) is also noted; this is used to define that subset of the query list that is targeted by the Factor. If there are fewer than five genes with chip values greater than argDsup, the Factor is triaged and not considered further.

A Score for each Factor is calculated to incorporate the Benjamini-Hochberg corrected Kolmogorov-Smirnov p value, as well as a measure of how the highest ChIP values in the query list compare to the highest values in the background list. Thus, for each Factor, the mean of the top n chip signals in the query list of length X, is compared to the mean of the top n ChIPs in the population to produce a ratio such that:

n=0.05X

and

r=μqμb

Where μq is the mean for the top n signals for Q and μb is the mean of the top n signals for B.

A Score, S, is assigned to each Factor thus:

S=log(Pcorr)×r

Where Pcorr is the Benjamini-Hochberg corrected Kolmogorov-Smirnov p value. Factors are then sorted by Score.

Implementation of MAGIC

A tab delimited text file is requested by MAGIC (lists file). The first column contains a list of all genes expressed in the experiment (background list). Any number of other columns are then added containing query lists. For example, a query list may be all genes that go up under some criterion and another may be all genes that go down. The first row is the header and must have unique names for each column. MAGIC then requests which Matrix to use.

MAGIC analyzes each query list and generates a series of output files and sub-directories in the directory containing the original lists file. An ‘Accepted_Lists.txt’ file is generated which is the original input file filtered for genes in the Matrix. A Platform_Matrix.txt file is the matrix file filtered for genes in the the background list. A series of directories are generated named after each query list in the lists file. Each directory contains sub-directories and files for the stand-alone analysis of that query list. A Query_List_Details.xls file contains statistical information for all non-triaged Factors. All Factors associated with Pcorr < 10% are highlighted in bold red. Data reported in Query_List_Details.xls are:

Factor Name of Factor

Description The ENCODE cell line, tissue or experiment description

Critical ChIP: argDsup i.e. ChIP value at Dsup (This value is used to determine target genes in the list)

Obs Tail Mean: Average of the 95th percentile ChIP values (n values) in the query list.

Exp Tail Mean: Average of the top n ChIP values in the backgound.

Tail Enrichment: Ratio of the Obs and Exp Tail Means (r)

Raw P: Kolmogorov-Smirnov p value

Corrected P: Benjamini Hochberg corrected p value (Pcorr)

Score: Score (-log(Pcorr)x r)

Where ENCODE contains multiple Chip-seq tracks for a Factor, the best scoring is also reported in a Summary.xls file with the same layout as above–each Factor appears once in this file. A query_list_summary.pdf contains a bar graph of Factors and Scores with Pcorr <10%.

Query_list_Drivers.gmx is a tab delimited file in the GMX format utilized by GSEA[8]. The first column contains the background list of genes. The second contains the query list. Subsequent columns contain all target genes of each Factor. Target genes are defined as those genes in the query list whose ChIP signal is greater than the Critical ChIP (argDsup) i.e. the ChIP at which there is the maximal difference between the population and query cumulative.

A sub-directory called ‘CDFs’ contains graphical displays of the analysis for all non-triaged Factors. The naming format is ‘rank (integer)’_’factor (string)’.pdf (e.g. 1_NRSF.pdf; rank = 1, factor = NRSF) (S1 Fig) where ranking is determined by Score. Two cumulative functions are displayed: the black curve is the fractional cumulative of all genes in the background list against ChIP values, red is the same for query genes. A blue vertical line denotes the ChIP value at Dsup i.e. argDsup. Red ticks along the x-axis represent each gene in the query list and black ticks are all genes in the background. Red ticks with circles (‘lollipops’) are the n = 0.05X best chiped genes. Black lollipops are genes in the background list with the n highest ChIP values.

A second sub-directory called ‘Auxiliary_Files’ is populated with data behind the summary files. The ‘query_list_raw_results.CSV’ file contains the same columns as the Query_list_Summary.xls file but has raw data for all factors including those that were triaged and not considered for further statistical analysis. It also contains the Kolmogorov-Smirnov D statistic for each factor. D statistics with a negative sign denote D values for triaged factors; the negative sign is used by the algorithm for triage sorting.

Query_list_Sub_Matrix.txt is the MAGIC Matrix filtered for genes in the query list.

Triaged_Factors.txt is a list of factors that were not considered (triaged).

Triaged_Genes.txt contains all genes in the query that were not in the MAGIC Matrix and therefore eliminated from analysis.

A sub-directory named ‘Target_Data’ contains comma separated text files for each Factor with Pcorr < 10%. Each file contains a list of target genes for that Factor and associated MAGIC Matrix ChIP value.

Obtaining MAGIC

MAGIC can be downloaded from: https://go.wisc.edu/magic

The Python script and information on how to access required Matrix files is available at:

https://github.com/asroopra/MAGIC

Defining cofactors and associated TFs of manipulated factors for ROC, PR and rank analysis

To generate a list of potential cofactors and transcription factors that may interact physically or functionally with a manipulated Factor (hereon called Potential Interactors, PIs), the file 9606.protein.links.detailed.v11.0.txt was downloaded from the STRING protein interaction database (http://string-db.org/)[20]. Proteins with a Combined Score of greater than 300 (representing the 75th percentile of scores) were taken as PIs.

Precision Recall (PR) and Receiver Operator Characteristics (ROC) analysis

Outputs from MAGIC, CHEA3, TFEA and Enrichr were ordered by Score (for MAGIC) or Fisher’s Exact Test p value and ranks were scaled between 1/n and 1 for each algorithm and library as in Keenan et al[13]. This produced vectors of positive and negative calls for each test (Calls Vectors). The positive class was defined as the manipulated Factor and all PIs as defined above. ROC and PR curves and statistics were generated by importing roc_curve and precision_recall_curve from sklearn.metrics in Python3.7. No balancing of imbalanced datasets was performed and so PR analysis was prioritized over ROC analysis.

Rank analysis

To determine how well the algorithms prioritized the manipulated Factor and PIs, scaled ranks of the positive calls in the Calls Vectors were cumulated to give D(r). A lack of enrichment of TFs and associated cofactors for either high or low ranks would produce a uniform distribution (which equates to r). Thus D(r)-r is plotted for each dataset: the greater the Area Under the Curve (AUC), the better the identification of TFs and cofactors. Contiguous runs of positive calls (a block of positive calls) are assigned the rank of the first element in the block. Differences between the distributions were assessed using Kolmogorov-Smirnov tests.

Results

The purpose of MAGIC is to identify those transcription factors and cofactors responsible for patterns of gene expression changes after a manipulation or between conditions. For all analyses, the 1Kb_gene.mtx matrix was used. MAGIC was tested on four transcriptome datasets: 1) MCF7(shCon_vs_shREST). This dataset consists of MCF7 breast cancer cells stably expressing shRNA against the transcription factor REST or a control sham shRNA. REST is a transcriptional repressor and tumor suppressor whose loss drives tumor growth of MCF7 cells in mouse xenograft model of breast cancer[15, 21, 22]. This simple system consists of a clonal cell line lacking a single factor. 119 genes out of 15,446 expressed genes were identified as up-regulated by more than 3 standard deviations than the log mean fold change and an associated False Discovery Rate (FDR)<5% (S1 Table). 2) TCGA(Lum_vs_Basal). 233 Luminal-A and 79 Basal-like tumors were identified in The Cancer Genome Atlas (TCGA) Nature 2012 provisional breast cancer dataset [23]. Luminal-A tumors are a subset of breast cancers defined by their robust expression of estrogen receptor alpha (ERα) and associated pioneer factors. They also express the progesterone and her2 receptors. Basal-like tumors are estrogen, progesterone and her2 receptor negative. This is a complex dataset with over 300 samples and heterogeneous tissue. 203 genes out of 17,814 expressed genes were up-regulated in Lum-A over Basal tumors using the same criterion as for MCF7(shCon_vs_shREST) (S2 Table). 3) Brain(WT_vs_CTCFko). MAGIC utilizes ChIP-seq data derived from immortalized or transformed human cancer cell lines and the above two examples utilize either an immortalized cell line or cancer tissue. To test whether MAGIC could be used on data derived from non-cancerous, highly heterogeneous, rodent samples, we turned to non-malignant mouse brain tissue. CTCF is a TF that organizes long distance interactions in the genome[24]. Sams et al demonstrated that elimination of CTCF in excitatory neurons (while sparing its expression in other neuron subtypes, astocytes and glia) results in defects in learning, memory and neuronal plasticity[18]. 432 genes were down-regulated upon CTCF loss out of 17,015 expressed genes (S3 Table). 4) DGC(Quiet_vs_Reactive). Single cell transcriptome profiling allows the discerning of responses of individual cells to stimuli. Jaeger et al performed single cell profiling on mouse dentate granule cells in response to a novel location stimulus [19]. Cells were sorted on Fos expression, an Immediate Early Gene (IEG) that is expressed in response to neuronal firing[25]. 843 genes were up-regulated in Reactive Dentate Granule cells out of 5305 expressed genes (S4 Table).

Identification of manipulated factors

Arguably, the most impactful output of any Factor discovery tool is the best ranked, or ‘top’ Factor predicted to target a list of input genes. The above datasets were subjected to Factor analysis using MAGIC, TFEA.ChIP[11], Enrichr[12] and CHEA3 [13]. Integer ranks were calculated for the manipulated Factor in each experiment (‘top’ Factor has rank = 1). Reciprocals were calculated so that unity represents the best rank and zero the poorest. Fig 1 and S5S8 Tables shows that MAGIC was able to call the manipulated Factor in each experiment as the top ranked Factor for 3 of the datasets i.e. REST in MCF7(shCon_vs_shREST) (S5 Table), ESR1 in TCGA(Lum_vs_Basal) (S5 Table), and CTCF in Brain(WT_vs_CTCFko) (S7 Table). MAGIC called FOS as 2nd rank in the fourth dataset, DGC(Quiet_vs_Reactive) (S8 Table), having called FOSL2 as top rank. Thus MAGIC was able to identify the manipulated Factor as well as, or better than CHEA3 using any of its libraries, TFEA or Enrichr.

Fig 1. Comparing ranks of manipulated factors predicted by MAGIC, CHEA3, TFEA and Enrichr.

Fig 1

MCF7(shCon_vs_shREST), TCGA(Lum_vs_Basal), Brain(WT_vs_CTCFko) and DGC(Quiet_vs_Reactive) datasets were analyzed by MAGIC, CHEA3 (using all available libraries: ARCHS4 co-expression, ENCODE ChIP-Seq, Enrichr Queries, GTEx co-expression, Literature mining, ReMAP ChIP-seq, Mean Rank and Top Rank), TFEA and Enrichr. The reciprocal integer ranks for REST, ESR1, CTCF and FOS (the Factors manipulated in MCF7(shCon_vs_shREST), TCGA(Lum_vs_Basal), Brain(WT_vs_CTCFko) and DGC(Quiet_vs_Reactive)) are plotted. The top rank = 1, second rank = 0.5 etc. ND = Not Determined; Factor not present in library.

Identification of cofactors and Potential Interacting TFs

Transcription factors work by recruiting cofactors via protein-protein interactions and often work in unison with other TFs[26]. Thus it would be useful if an algorithm designed to identify TFs behind gene lists could also highlight associated cofactors and TFs (i.e. Potential Interactors—PIs). Ideally those cofactors would appear near the top of the list of putative Factors. To assess how well MAGIC compares to the other algorithms in identifying PIs associated with DEG lists, a cohort of PIs was identified for the above 4 manipulated TFs. Annotated protein-protein interactions were downloaded from the STRING database (https://string-db.org)[20] and used to identify proteins associated with either REST, ESR1, CTCF or FOS with a STRING Combined Score of greater than 300 (representing the 75th percentile of scores) [27]. Fractional ranks for the manipulated Factor and PIs were then cumulated (to give D(r)). A lack of enrichment of TFs and associated cofactors for either high or low ranks would produce a uniform p-value distribution (which equates to r). Thus D(r)-r was plotted for each dataset: the greater the Area Under the Curve (AUC), the better the identification of TFs and cofactors. This approach is borrowed and modified from Keenan et al in their excellent publication describing CHEA3[13]. Fig 2A and 2B shows that MAGIC manifests the largest AUC for REST and its PIs in MCF7(shCon_vs_shREST), ESR1 and associated PIs in TCGA(Lum_vs_Basal), CTCF and PIs in Brain(WT_vs_CTCFko) and for FOS in DGC(Quiet_vs_Reactive). In an attempt to integrate the rank results for the manipulated Factor in Fig 1 and recollection of PIs in Fig 2, the AUC for D(r)-r functions was multiplied by the fractional rank values of the manipulated Factors in order to weight the AUCs according to priority the algorithms placed on the manipulated Factor. Using this ‘weighted AUC’ metric, MAGIC manifested a robust ability to call the manipulated Factor along with its PIs (Fig 2C and 2D)

Fig 2. Manipulated transcription factors and associated cofactors are preferentially ranked by MAGIC compared to CHEA3, TFEA and Enrichr.

Fig 2

(A) Emperical cumulatives were generated of factional ranks (1/Integer ranks) for manipulated factors and associated cofactors for the 4 datasets using all algorithms and libraries as in Fig 1. The difference between the cumulative of all scaled fractional ranks and a uniform distribution for the manipulated factor and associated cofactors is plotted against the fractional rank. Kolmogorov-smirnov tests of each distribution against a uniform distribution yields p<10−10 for all tests. (B) Area Under Curve (AUC) for D(r)-r x r curves in panel A. (C) The D(r)-r curves in panel A were scaled for the rank of the manipulated actor. For each algorithm, D(r)-r was multiplied by the fractional rank of the manipulated factor (FR). (D) AUCs for curves in panel C.

Precision Recall and Receiver Operator Characteristics

Using the manipulated Factors (REST, ESR1, CTCF and FOS) and their PIs as defined above, Precision Recall (PR) and Receiver Operator Characteristics (ROC) curves were generated for the 4 datasets, algorithms and libraries to assess how well MAGIC compares in classifying Factors behind input gene lists. The datasets are unbalanced in that the positive class (consisting of the manipulated Factor and PIs) is smaller than the negative class. Therefore the PR curve was prioritized in assessing algorithm performance. Fig 3A–3C show that MAGIC manifests superior precision for the MCF7(shCon_vs_shREST), TCGA(Lum_vs_Basal), and Brain(WT_vs_CTCFko) datasets with PR AUCs of 84%, 83% and 91% respectively. For the DGC(Quiet_vs_Reactive) dataset, MAGIC exhibited an AUC = 72%, 2nd to TFEA at AUC = 77%. When normalizing the PR AUC for ranking of the manipulated Factor as in Fig 2C, MAGIC exhibited superior performance across all 4 datasets (Fig 3D). For completeness, ROC curves were generated for all algorithms across the four data sets (Fig 3B). ROC analysis showed that MAGIC performed solidly across all four datasets and was bested by only one algorithm in one dataset (CHEA3_Mean_Rank in DGC(Quiet_vs_Reactive)).

Fig 3. MAGIC demonstrates skill at calling manipulated factors as assessed by Precision Recall and Receiver Operator Characteristics.

Fig 3

(A) Precision Recall curves for the four datasets and all algorithms and libraries. (B) Receiver Operator Characteristic curves for the four datasets and all algorithms and libraries. As in panel A, data was not balanced prior to graphing. (C) ROC versus PR AUCs for all algorithms and libraries. (D) PR AUCs were scaled for fractional rank of the manipulated factor by multiplying PR UAC by FR.

The Requirement for a valid background gene list

To test how MAGIC might be sensitive to the background list of genes, MAGIC was tested on the 4 datasets in the absence and presence of a bespoke background list. The background lists for MCF7(shCon_vs_shREST), Brain(WT_vs_CTCFko) and DGC(Quiet_vs_Reactive) were generated by accepting all genes in the dataset that had detectable signal in all samples of either control or experimental condition. For TCGA(Lum_vs_Basal) which has 312 samples, this was modified to allow genes that were detectable in at least 50% of samples in either condition. The results using these background lists were compared to results obtained using all genes in the matrix (i.e. ‘minus background’). MAGIC was first assessed for its ability to call manipulated Factors and PIs as in Fig 2 using D(r)-r plots. Fig 4A shows that the D(r)-r AUC is significantly reduced in the absence of a background list for all four datasets indicating a reduced ability to call Factors. Precision was also reduced in the absence of a background list as judged by PR AUC and precision at 80% recall (Fig 4B). ROC parameters were also diminished in the absence of a background list. Thus ROC AUC as well as the True Positive Rate measured at 20% False Discovery Rate was reduced in the absence of a background list (Fig 4C).

Fig 4. MAGIC requires a valid background gene list for optimal performance.

Fig 4

(A) D(r)-r curves for the 4 datasets generated for MAGIC outputs in the presence or absence of a background list. Kolmogorov-smirnov statistics for the 2 curves: MCF7(shCon_vs_shREST); D = 0.10, p = 8.6x10-5. TCGA(Lum_vs_Basal); D = 0.15, p = 4.6x10-11. Brain(WT_vs_CTCFko); D = 0.26, p = 1.1x10-16. DGC(Quiet_vs_Reactive); D = 0.11, p = 3.9x10-9. (B) Precision Recall curves for MAGIC outputs in the presence or absence of a background list: MCF7(shCon_vs_shREST); 0.84 vs 0.78, TCGA(Lum_vs_Basal); 0.83 vs 0.81, Brain(WT_vs_CTCFko); 0.91 vs 0.71, DGC(Quiet_vs_Reactive); 0.72 vs 0.67. Black vertical line denotes 80% Recall (C) Receiver Operator Characteristics curves for MAGIC outputs in the presence or absence of a background list (unbalanced). (D) Emperical cumulative distribution for False Discovery Rates associated with MAGIC outputs in the presence or absence of a background list. For all datasets, Kolmogorov-smirnov p <10−4. (E) The integer ranks for the top 50 Factors called by MAGIC in the presence of a background list were compared to their ranks in the absence of a background list.

To test the effect of background list on p values associated with Factors and PIs in MAGIC outputs, emperical cumulatives were generated of -log(FDR) values (Benjamini Hochberg corrected p values) for the four datasets. Fig 4D shows that there are significantly more low FDR calls in the absence of a background list demonstrating that lack of a background list inflates statistical significances associated with MAGIC outputs. Finally, the effect of background list was tested on ranking of Factors. The integer ranks for the 50 top ranked Factors for each dataset in the presence of appropriate background lists was compared to their ranks in the absence of a background list. Fig 4E shows that Factor order is impacted by the absence or presence of the background.

In summary, using four disparate datasets, MAGIC performed at least as well as CHEA3, TFEA and Enrichr according to ranking of the manipulated Factor, calling of potential interactors, PR characteristics and ROC analysis.

Discussion

MAGIC is a standalone application for predicting transcription factors and cofactors that drive gene expression changes in transcriptomic experiments. Data presented herein shows that MAGIC compares favourably with three other algorithms: CHEA3, TFEA and Enrichr. A number of approaches have been used historically to tackle the difficult problem of determining which Factors drive sets of genes. One approach—exemplified by oPossum[5]—relies on searching for short transcription factor binding motifs in promoter proximal sequences. Using hypergeometric tests provides a likelihood of enrichment for the factor. This approach is limited due to the small size of binding sites for most factors; a random 6bp sequence will be found approximately 750,000 times in the human genome. This approach also cannot predict cofactors as cofactors do not bind DNA directly.

A more sophisticated approach relies on comparing query lists of genes with gene lists attributed to Factors based on ChIP-seq experiments. This approach is the basis for CHEA3, TFEA and Enrichr. ChIP-seq based allocation of genes to Factors ensures that only actual binding events are considered but even here, genes can be falsely attributed to Factors because many sites where Factors are ChIPed are not functional[3]. Thus many genes will show some low level of binding/chip signal. For example, extracting all REST ChIP-seq tracks from wgEncodeRegTfbsClusteredV2.bed from the UCSC genome browser (http://hgdownload.soe.ucsc.edu/goldenPath/hg19/encodeDCC/wgEncodeRegTfbsClustered/) showed 27,386 binding sites across the human genome with 17,971 genes showing a detectable signal within 5Kb of the promoter. This thwarts unbiased attempts to define genes as ‘targets’ or ‘non-targets’. These caveats not withstanding, ChIP-seq based allocation of genes to Factors and Fisher Exact Tests give good performance in real world tests[9, 1113]. MAGIC attempts to overcome the problem of assigning genes to Factors by utilizing complete ChIP-seq profiles without parsing Factors into ‘bound’ and ‘not bound’ classes.

CHEA3, TFEA (using the ‘Association analysis’ option) and Enrichr use Fisher Exact Tests (FET) to assess associations between input gene lists and Factor targets[1113]. The rank order of Factors driving gene lists is therefore not altered by the size of the universal set of all genes (the background gene list) in the analysis; FET p values scale with background gene list size. In contrast, MAGIC output is sensitive to the background gene list. For each Factor in the chosen matrix, MAGIC performs a Kolmogorov-Smirnov test on cumulatives of all ChIP-seq signals in the background list of genes and the input list. The Score combines the corrected p value from this test and a measure of how skewed the chip signals are towards high values in the query versus background lists (see Methods). It follows then, that the output (p values, Scores and ranks) are sensitive to the background lists (Fig 4). Unlike FET p values that scale with background list sizes and do not change rank order, MAGIC p values have a complicated relationship with background gene content. The shape of the background cumulative will change depending on the set of genes in it, and so the maximal distance between it and the input cumulative (i.e. the Kolmogorov-Smirnov D statistic) will either increase or decrease depending on the argument of D.

Testing MAGIC on cells transfected with REST shRNA highlights the ability of the algorithm to not only identify transcription factors but also their associated cofactors. MAGIC called REST as the highest scoring factor but also called SIN3A, HDAC2, CoREST, G9a and CtBP2, which are well-characterized REST cofactors[2831]. EZH2 and SUZ12 were also called as factors that preferentially bind up-regulated genes. Though there are reports of REST interacting with Polycomb[32], it is likely that Polycomb targets many of the same genes as REST but does so independently[33]. Interestingly the second highest scoring Factor was SP2 that has no reported association with REST (S9 Table). Current work in the lab is focussed on testing the hypothesis that REST and SP2 do interact–perhaps in a similar manner to REST and SP3[34].

Using gene lists derived from over 300 breast tumor transcriptomes (S10 Table), MAGIC correctly called ERα (encoded by the ESR1 gene) as the principal TF in ER positive (Luminal-A) versus negative (Basal-like) tumors. ERα binds chromatin with pioneer factors and MAGIC sucessfully called GATA3, FOXA1 and FOXA2[35]. P300 and EZH2 are ERα cofactors and were called by MAGIC[36, 37].

ENCODE hosts ChIP-seq tracks derived from transformed or immortal cell lines and human embryonic stem cells. A particular concern was that generating a matrix from homogenous cell lines may preclude MAGIC’s use in analysis of transcriptome data derived from in vivo samples that are not immortalized and likely heterogeneous. However, testing of MAGIC on CTCF knock-out mouse brains demonstrates that gene lists derived from control and experimental whole brain extract are handled appropriately (S11 Table). In GSE84175, CTCF was deleted in a subset of post-mitotic cells (eliminated from excitatory neurons but retained in all other neuronal subtypes)[18, 38]. MAGIC correctly called CTCF as the principle factor in the experiment. The CTCF binding partner RAD21 was also called and would reflect its role as part of the cohesin complex[39, 40]. Interestingly, ZNF143 was also in the top 5 hits. This is in keeping with the recent findings of Mourad and Cuvier[38] showing that CTCF and ZNF143 coordinate chromatin border domain formation. Thus, MAGIC was able to call CTCF as well as a known associated proteins when provided transcriptome data from a highly heterogeneous tissue where only a small subset of cells were altered in the experiment.

Single cell RNA-seq on hippocampal dentate granule cells from mice subjected to novel environments shows differences in transcriptomes between sparsley firing neurons in the dentate gyrus versus quiet cells[19]. When profiles are sorted based on FOS expression, MAGIC was able to call FOS as the second most likely driver of gene changes, placing the highly homologous protein FOSL2 as top rank[41]. This prediction was superior to any of the other algorithms.

All analyses in this manuscript utilized the 1Kb_gene.mtx matrix. Nearly identical results were obtained with the 5Kb_gene.mtx. Future work will focus on the relative performances of the matrices provided. It should be noted that none of the matrices incorporate information from distal enhancers which are clearly key to fully understanding gene regulation[42]. Current efforts are underway to incorporate long distance information into the MAGIC algorithm. A prototype of the MAGIC approach was recently used to identify EZH2 as a principle driver of gene changes in epilepsy[43]. The approach was validated by biochemical analysis of mouse brains that showed an almost order of magnitude increase in levels of this protein over a 10 day window after seizure induction and robust repression of target genes. This prototypical approach aggregated all ChIP-seq tracks for a Factor into one meta-track and so lost all information on cell type and experimental conditions. Also, a Mann-Whitney test was incorporated instead of the more sensitive Kolmogorov-smirnov test. Nevertheless, it provided an extremely powerful prediction of EZH2 induction. MAGIC concurs with the prototypical algorithm.

MAGIC was tested against CHEA3, TFEA and Enrichr on 4 datasets where it performed well. However, the general performance level of MAGIC against the leading algorithms will only be truly revealed with significantly increased numbers of tests. In conclusion, MAGIC was able to call principle transcription factors and cofactors that target gene lists with a performance comparable to or better than current leading brand algorithms.

Supporting information

S1 Fig. Example of a CDF graphic produced by MAGIC.

Two cumulative functions are displayed: the black curve is the fractional cumulative of all genes in the background list against ChIP values, red is the same for query genes. A blue vertical line denotes the ChIP value at Dsup i.e. argDsup. Red ticks along the x-axis represent each gene in the query list and black ticks are all genes in the background. Red ticks with circles (‘lollipops’) are the n (n = 0.05X) best chiped genes. Black lollipops are genes in the background list with the n highest ChIP values.

(TIFF)

S1 Table. Background and input list for MCF7(shCon_vs_shREST).

The first column contains 15445 genes in the background list. Second column contains 118 genes induced as described in Methods and Results.

(TXT)

S2 Table. Background and input list for TCGA(Lum_vs_Basal).

The first column contains 17815 genes in the background list. Second column contains 203 genes induced as described in Methods and Results.

(TXT)

S3 Table. Background and input list for Brain(WT_vs_CTCFko).

The first column contains 15509 genes in the background list. Second column contains 203 genes down-regulated as described in Methods and Results.

(TXT)

S4 Table. Background and input list for DGC(Quiet_vs_Reactive).

The first column contains 5305 genes in the background list. Second column contains 842 genes induced as described in Methods and Results.

(TXT)

S5 Table. REST interactors and rank-ordered algorithm outputs for MCF7(shCon_vs_shREST).

The first column contains proteins associated with REST extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries. If the same Factor appears multiple times, it is because there are multiple entries (e.g. ChIP-seq tracks in different cell lines) for that factor in the libraries mined by the algorithm.

(TXT)

S6 Table. Estrogen Receptor alpha (ESR1) interactors and rank-ordered algorithm outputs for TCGA(Lum_vs_Basal).

The first column contains proteins associated with ESR1 extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

(TXT)

S7 Table. CTCF interactors and rank-ordered algorithm outputs for Brain(WT_vs_CTCFko).

The first column contains proteins associated with CTCF extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

(TXT)

S8 Table. FOS interactors and rank-ordered algorithm outputs for DGC(Quiet_vs_Reactive).

The first column contains proteins associated with FOS extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

(TXT)

S9 Table. MAGIC Summary output for MCF7(shCon_vs_shREST).

The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for MCF7(shCon_vs_shREST) are provided in the summary file.

(TXT)

S10 Table. MAGIC Summary output for TCGA(Lum_vs_Basal).

The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for TCGA(Lum_vs_Basal) are provided in the summary file.

(TXT)

S11 Table. MAGIC Summary output for Brain(WT_vs_CTCFko).

The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for Brain(WT_vs_CTCFko) are provided in the summary file.

(TXT)

S12 Table. MAGIC Summary output for DGC(Quiet_vs_Reactive).

The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for DGC(Quiet_vs_Reactive) are provided in the summary file.

(TXT)

Acknowledgments

I would like to thank Ray Dingledine and Steve Goldstein for critical insights into the statistics behind MAGIC. I thank John Svaren for helpful edits of the manuscript. I am grateful to Caroline Alexander for editing, aiding, encouraging and cojoling the submission of this manuscript. I would like to thank Queen because ‘It’s a Kind of Magic’.

Data Availability

Expression data files are available from the GEO database (GSE84175 for CTCF WT and KO data) or TCGA (https://www.cbioportal.org/study/summary?id=brca_tcga).

Funding Statement

The author received no specific funding for this work.

References

  • 1.Lambert SA, Jolma A, Campitelli LF, Das PK, Yin Y, Albu M, et al. The Human Transcription Factors. Cell. 2018;172(4):650–65. Epub 2018/02/10. 10.1016/j.cell.2018.01.029 . [DOI] [PubMed] [Google Scholar]
  • 2.Cancer Genome Atlas Research N, Weinstein JN, Collisson EA, Mills GB, Shaw KR, Ozenberger BA, et al. The Cancer Genome Atlas Pan-Cancer analysis project. Nat Genet. 2013;45(10):1113–20. Epub 2013/09/28. 10.1038/ng.2764 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 3.Cusanovich DA, Pavlovic B, Pritchard JK, Gilad Y. The functional consequences of variation in transcription factor binding. PLoS Genet. 2014;10(3):e1004226 Epub 2014/03/08. 10.1371/journal.pgen.1004226 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 4.Jolma A, Yan J, Whitington T, Toivonen J, Nitta KR, Rastas P, et al. DNA-binding specificities of human transcription factors. Cell. 2013;152(1–2):327–39. Epub 2013/01/22. 10.1016/j.cell.2012.12.009 . [DOI] [PubMed] [Google Scholar]
  • 5.Kwon AT, Arenillas DJ, Worsley Hunt R, Wasserman WW. oPOSSUM-3: advanced analysis of regulatory motif over-representation across genes or ChIP-Seq datasets. G3 (Bethesda). 2012;2(9):987–1002. Epub 2012/09/14. 10.1534/g3.112.003202 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 6.Spitz F, Furlong EE. Transcription factors: from enhancer binding to developmental control. Nat Rev Genet. 2012;13(9):613–26. Epub 2012/08/08. 10.1038/nrg3207 . [DOI] [PubMed] [Google Scholar]
  • 7.Lee TI, Young RA. Transcriptional regulation and its misregulation in disease. Cell. 2013;152(6):1237–51. Epub 2013/03/19. 10.1016/j.cell.2013.02.014 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 8.Subramanian A, Tamayo P, Mootha VK, Mukherjee S, Ebert BL, Gillette MA, et al. Gene set enrichment analysis: a knowledge-based approach for interpreting genome-wide expression profiles. Proc Natl Acad Sci U S A. 2005;102(43):15545–50. Epub 2005/10/04. 10.1073/pnas.0506580102 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 9.Wang Z, Civelek M, Miller CL, Sheffield NC, Guertin MJ, Zang C. BART: a transcription factor prediction tool with query gene sets or epigenomic profiles. Bioinformatics. 2018;34(16):2867–9. Epub 2018/04/03. 10.1093/bioinformatics/bty194 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 10.Alvarez MJ, Shen Y, Giorgi FM, Lachmann A, Ding BB, Ye BH, et al. Functional characterization of somatic mutations in cancer using network-based inference of protein activity. Nat Genet. 2016;48(8):838–47. Epub 2016/06/21. 10.1038/ng.3593 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 11.Puente-Santamaria L, Wasserman WW, Del Peso L. TFEA.ChIP: A tool kit for transcription factor binding site enrichment analysis capitalizing on ChIP-seq datasets. Bioinformatics. 2019. Epub 2019/07/28. 10.1093/bioinformatics/btz573 . [DOI] [PubMed] [Google Scholar]
  • 12.Chen EY, Tan CM, Kou Y, Duan Q, Wang Z, Meirelles GV, et al. Enrichr: interactive and collaborative HTML5 gene list enrichment analysis tool. BMC Bioinformatics. 2013;14:128 Epub 2013/04/17. 10.1186/1471-2105-14-128 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 13.Keenan AB, Torre D, Lachmann A, Leong AK, Wojciechowicz ML, Utti V, et al. ChEA3: transcription factor enrichment analysis by orthogonal omics integration. Nucleic Acids Res. 2019;47(W1):W212–W24. Epub 2019/05/23. 10.1093/nar/gkz446 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 14.Biggin MD. Animal transcription networks as highly connected, quantitative continua. Dev Cell. 2011;21(4):611–26. Epub 2011/10/22. 10.1016/j.devcel.2011.09.008 . [DOI] [PubMed] [Google Scholar]
  • 15.Meyer K, Albaugh B, Schoenike B, Roopra A. Type 1 Insulin-Like Growth Factor Receptor/Insulin Receptor Substrate 1 Signaling Confers Pathogenic Activity on Breast Tumor Cells Lacking REST. Mol Cell Biol. 2015;35(17):2991–3004. Epub 2015/06/24. 10.1128/MCB.01149-14 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 16.Benjamini Y, Hochberg Y. Controlling the False Discovery Rate—a Practical and Powerful Approach to Multiple Testing. J R Stat Soc B. 1995;57(1):289–300. WOS:A1995QE45300017. [Google Scholar]
  • 17.Nielsen TO, Parker JS, Leung S, Voduc D, Ebbert M, Vickery T, et al. A comparison of PAM50 intrinsic subtyping with immunohistochemistry and clinical prognostic factors in tamoxifen-treated estrogen receptor-positive breast cancer. Clin Cancer Res. 2010;16(21):5222–32. Epub 2010/09/15. 10.1158/1078-0432.CCR-10-1282 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 18.Sams DS, Nardone S, Getselter D, Raz D, Tal M, Rayi PR, et al. Neuronal CTCF Is Necessary for Basal and Experience-Dependent Gene Regulation, Memory Formation, and Genomic Structure of BDNF and Arc. Cell Rep. 2016;17(9):2418–30. Epub 2016/11/24. 10.1016/j.celrep.2016.11.004 . [DOI] [PubMed] [Google Scholar]
  • 19.Jaeger BN, Linker SB, Parylak SL, Barron JJ, Gallina IS, Saavedra CD, et al. A novel environment-evoked transcriptional signature predicts reactivity in single dentate granule neurons. Nat Commun. 2018;9(1):3084 Epub 2018/08/08. 10.1038/s41467-018-05418-8 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 20.Szklarczyk D, Morris JH, Cook H, Kuhn M, Wyder S, Simonovic M, et al. The STRING database in 2017: quality-controlled protein-protein association networks, made broadly accessible. Nucleic Acids Res. 2017;45(D1):D362–D8. Epub 2016/12/08. 10.1093/nar/gkw937 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 21.Gunsalus KT, Wagoner MP, Meyer K, Potter WB, Schoenike B, Kim S, et al. Induction of the RNA regulator LIN28A is required for the growth and pathogenesis of RESTless breast tumors. Cancer Res. 2012;72(13):3207–16. Epub 2012/04/26. 10.1158/0008-5472.CAN-11-1639 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 22.Wagoner MP, Gunsalus KT, Schoenike B, Richardson AL, Friedl A, Roopra A. The transcription factor REST is lost in aggressive breast cancer. PLoS Genet. 2010;6(6):e1000979 Epub 2010/06/16. 10.1371/journal.pgen.1000979 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 23.The Cancer Genome Atlas N, Koboldt DC, Fulton RS, McLellan MD, Schmidt H, Kalicki-Veizer J, et al. Comprehensive molecular portraits of human breast tumours. Nature. 2012;490:61 10.1038/nature11412 https://www.nature.com/articles/nature11412#supplementary-information. [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 24.Ghirlando R, Felsenfeld G. CTCF: making the right connections. Genes Dev. 2016;30(8):881–91. Epub 2016/04/17. 10.1101/gad.277863.116 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 25.Benito E, Barco A. The neuronal activity-driven transcriptome. Mol Neurobiol. 2015;51(3):1071–88. Epub 2014/06/18. 10.1007/s12035-014-8772-z . [DOI] [PubMed] [Google Scholar]
  • 26.Reiter F, Wienerroither S, Stark A. Combinatorial function of transcription factors and cofactors. Curr Opin Genet Dev. 2017;43:73–81. Epub 2017/01/23. 10.1016/j.gde.2016.12.007 . [DOI] [PubMed] [Google Scholar]
  • 27.von Mering C, Jensen LJ, Snel B, Hooper SD, Krupp M, Foglierini M, et al. STRING: known and predicted protein-protein associations, integrated and transferred across organisms. Nucleic Acids Res. 2005;33(Database issue):D433–7. Epub 2004/12/21. 10.1093/nar/gki005 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 28.Andres ME, Burger C, Peral-Rubio MJ, Battaglioli E, Anderson ME, Grimes J, et al. CoREST: a functional corepressor required for regulation of neural-specific gene expression. Proc Natl Acad Sci U S A. 1999;96(17):9873–8. Epub 1999/08/18. 10.1073/pnas.96.17.9873 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 29.Garriga-Canut M, Schoenike B, Qazi R, Bergendahl K, Daley TJ, Pfender RM, et al. 2-Deoxy-D-glucose reduces epilepsy progression by NRSF-CtBP-dependent metabolic regulation of chromatin structure. Nat Neurosci. 2006;9(11):1382–7. Epub 2006/10/17. 10.1038/nn1791 . [DOI] [PubMed] [Google Scholar]
  • 30.Huang Y, Myers SJ, Dingledine R. Transcriptional repression by REST: recruitment of Sin3A and histone deacetylase to neuronal genes. Nat Neurosci. 1999;2(10):867–72. Epub 1999/09/24. 10.1038/13165 . [DOI] [PubMed] [Google Scholar]
  • 31.Roopra A, Sharling L, Wood IC, Briggs T, Bachfischer U, Paquette AJ, et al. Transcriptional repression by neuron-restrictive silencer factor is mediated via the Sin3-histone deacetylase complex. Mol Cell Biol. 2000;20(6):2147–57. Epub 2000/02/25. 10.1128/mcb.20.6.2147-2157.2000 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 32.Dietrich N, Lerdrup M, Landt E, Agrawal-Singh S, Bak M, Tommerup N, et al. REST-mediated recruitment of polycomb repressor complexes in mammalian cells. PLoS Genet. 2012;8(3):e1002494 Epub 2012/03/08. 10.1371/journal.pgen.1002494 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 33.McGann JC, Oyer JA, Garg S, Yao H, Liu J, Feng X, et al. Polycomb- and REST-associated histone deacetylases are independent pathways toward a mature neuronal phenotype. Elife. 2014;3:e04235 Epub 2014/09/25. 10.7554/eLife.04235 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 34.Formisano L, Guida N, Valsecchi V, Cantile M, Cuomo O, Vinciguerra A, et al. Sp3/REST/HDAC1/HDAC2 Complex Represses and Sp1/HIF-1/p300 Complex Activates ncx1 Gene Transcription, in Brain Ischemia and in Ischemic Brain Preconditioning, by Epigenetic Mechanism. J Neurosci. 2015;35(19):7332–48. Epub 2015/05/15. 10.1523/JNEUROSCI.2174-14.2015 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 35.Zaret KS, Carroll JS. Pioneer transcription factors: establishing competence for gene expression. Genes Dev. 2011;25(21):2227–41. Epub 2011/11/08. 10.1101/gad.176826.111 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 36.Shang Y, Hu X, DiRenzo J, Lazar MA, Brown M. Cofactor dynamics and sufficiency in estrogen receptor-regulated transcription. Cell. 2000;103(6):843–52. Epub 2001/01/04. 10.1016/s0092-8674(00)00188-4 . [DOI] [PubMed] [Google Scholar]
  • 37.Hwang C, Giri VN, Wilkinson JC, Wright CW, Wilkinson AS, Cooney KA, et al. EZH2 regulates the transcription of estrogen-responsive genes through association with REA, an estrogen receptor corepressor. Breast Cancer Res Treat. 2008;107(2):235–42. Epub 2007/04/25. 10.1007/s10549-007-9542-7 . [DOI] [PubMed] [Google Scholar]
  • 38.Mourad R, Cuvier O. Computational Identification of Genomic Features That Influence 3D Chromatin Domain Formation. PLoS Comput Biol. 2016;12(5):e1004908 Epub 2016/05/21. 10.1371/journal.pcbi.1004908 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 39.Hou C, Dale R, Dean A. Cell type specificity of chromatin organization mediated by CTCF and cohesin. Proc Natl Acad Sci U S A. 2010;107(8):3651–6. Epub 2010/02/06. 10.1073/pnas.0912087107 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 40.Tang Z, Luo OJ, Li X, Zheng M, Zhu JJ, Szalaj P, et al. CTCF-Mediated Human 3D Genome Architecture Reveals Chromatin Topology for Transcription. Cell. 2015;163(7):1611–27. Epub 2015/12/22. 10.1016/j.cell.2015.11.024 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 41.Mahner S, Baasch C, Schwarz J, Hein S, Wolber L, Janicke F, et al. C-Fos expression is a molecular predictor of progression and survival in epithelial ovarian carcinoma. Br J Cancer. 2008;99(8):1269–75. Epub 2008/10/16. 10.1038/sj.bjc.6604650 [DOI] [PMC free article] [PubMed] [Google Scholar]
  • 42.Schoenfelder S, Fraser P. Long-range enhancer-promoter contacts in gene expression control. Nat Rev Genet. 2019;20(8):437–55. Epub 2019/05/16. 10.1038/s41576-019-0128-0 . [DOI] [PubMed] [Google Scholar]
  • 43.Khan N, Schoenike B, Basu T, Grabenstatter H, Rodriguez G, Sindic C, et al. A systems approach identifies Enhancer of Zeste Homolog 2 (EZH2) as a protective factor in epilepsy. PLoS One. 2019;14(12):e0226733 Epub 2020/01/01. 10.1371/journal.pone.0226733 [DOI] [PMC free article] [PubMed] [Google Scholar]
PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007800.r001

Decision Letter 0

Thomas Lengauer, Ilya Ioshikhes

1 Aug 2019

Dear Dr Roopra,

Thank you very much for submitting your manuscript 'MAGICTRICKS: A tool for predicting transcription factors and cofactors binding sites in gene sets using ENCODE data' for review by PLOS Computational Biology. Your manuscript has been fully evaluated by the PLOS Computational Biology editorial team and in this case also by independent peer reviewers. The reviewers appreciated the attention to an important problem, but raised some substantial concerns about the manuscript as it currently stands. While your manuscript cannot be accepted in its present form, we are willing to consider a revised version in which the issues raised by the reviewers have been adequately addressed. We cannot, of course, promise publication at that time.

Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out.

Your revisions should address the specific points made by each reviewer. Please return the revised version within the next 60 days. If you anticipate any delay in its return, we ask that you let us know the expected resubmission date by email at ploscompbiol@plos.org. Revised manuscripts received beyond 60 days may require evaluation and peer review similar to that applied to newly submitted manuscripts.

In addition, when you are ready to resubmit, please be prepared to provide the following:

(1) A detailed list of your responses to the review comments and the changes you have made in the manuscript. We require a file of this nature before your manuscript is passed back to the editors.

(2) A copy of your manuscript with the changes highlighted (encouraged). We encourage authors, if possible to show clearly where changes have been made to their manuscript e.g. by highlighting text.

(3) A striking still image to accompany your article (optional). If the image is judged to be suitable by the editors, it may be featured on our website and might be chosen as the issue image for that month. These square, high-quality images should be accompanied by a short caption. Please note as well that there should be no copyright restrictions on the use of the image, so that it can be published under the Open-Access license and be subject only to appropriate attribution.

Before you resubmit your manuscript, please consult our Submission Checklist to ensure your manuscript is formatted correctly for PLOS Computational Biology: http://www.ploscompbiol.org/static/checklist.action. Some key points to remember are:

- Figures uploaded separately as TIFF or EPS files (if you wish, your figures may remain in your main manuscript file in addition).

- Supporting Information uploaded as separate files, titled Dataset, Figure, Table, Text, Protocol, Audio, or Video.

- Funding information in the 'Financial Disclosure' box in the online system.

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

To enhance the reproducibility of your results, we recommend that you deposit your laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions see here

We are sorry that we cannot be more positive about your manuscript at this stage, but if you have any concerns or questions, please do not hesitate to contact us.

Sincerely,

Ilya Ioshikhes

Associate Editor

PLOS Computational Biology

Thomas Lengauer

Methods Editor

PLOS Computational Biology

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: Minor:

1) Instead of ‘level’ use another term like ‘quantity’

2) I think part of your discussion about tissues heterogeneity should be put in the introduction.

Major (for me I think it is a Major revision but I will register this review only as minor revision because the validation of your algorithm can be done independently and later by other researchers)

1) Need validation of your algorithm: To be sure that your algorithm is interesting for life science research the validation of the prediction of the algorithm need to be done using 'wet lab' experiments. 'Cherry picking' online references is okay for 'discussion' but it not a validation of your algorithm.

Introduction

"We posit that in many cases, the majority of those changes are driven by alterations in the function of a few Factors that coordinate programmatic gene changes on a genome wide scale."

-> By opposition to clonal cell line, cancerous tissue is a mix of hundred different cell types. I think the observed change in gene transcript quantity is principally related to the change in cell quantity inside the sample. Please discuss this aspect of cell diversity in tissues analyzed and how this affects the observed changes in gene level quantity. e.g. : A disease tissues should have a drastic increase in the quantity of immune cells, Cancer tissues can show a significant change in the quantity of blood vessels...

Methods

-> Explain RNA extraction protocol. Trizol is an old technique, why not using Qiagen RNeasy columns?

"Probes were then collapsed to a single gene value ..."

-> 1 Gene with 1 value assigned to it is not what happen in reality. You need to talk about the problem of alternate splicing and multiple transcripts expressed per gene. Can the Transcription Factors have an influence on the complexity of RNA expression inside a single gene? Does the probes have been designed to target multiple transcripts per gene?

"any genes changed more than 3 Standard Deviations from the mean fold change..."

-> please explain more your methods to compute fold change of each gene. Which standard deviation are you using, is it the Standard Deviation between Probes from the same gene or between factors?

"Sams et al profiling..."

-> What is the meaning of ‘Sams et al profiling’ ?.

-> Explain RNAseq protocol

"were assigned a gene domain that was defined as 5Kb either side of the gene body.."

-> Explain why you choose 5Kb, why not 1KB? reference needed. Else can you add an option to your algorithm to scan for gene domain with a shorter or larger window and then report the most significant with some sort of ‘weight’ based on distance? (e.g.: More it is close of the RNA start and more it is significant)

" = -log (corr) × "

-> Can you please explain the scientific validity of this type of scoring (multiplication of transformed significance by ratio)? Do you assume that the log of significance (corrected pvalue) and the ratio of means will follow a similar distribution?, if not I think this scoring can induce a bias in the detection of more significance (lowest pValue) or to the opposite to the detection of bigger ratio, all this will dependent of the shape of the corresponding distribution of ‘Pcorr’ and ‘r’. Will it be possible to adapt your algorithm and add an option to rank the genes by ‘r’ using a fixed corr (e.g.: p< 0.01? or even p< 0.1?)

Results

-> Please define "FDR", is it the False Detecting Rate? how do you compute it? is it the same as corr? If it is False Detecting Rate can you use ‘%’, (e.g. FDR 5% instead of FDR 0.05)

-> ‘biologically meaningful’ can not be done by ‘cherry-picking’ online references or pathways because you will report only the reference that are validating your results and not the ones that go against. Your predicted results need to be validated by ‘wet lab’ experiments, what type of ‘wet lab’ experiments did you do to validate your informatics results?

Discussion

-> How does your algorithm react when more than 1 gene share the 5Kb window? Do you have some way to reduce the significance in function of the number of genes that share this TF (e.g.: if using a 5Kb windows you found 4 genes that share the same TF, only 1 gene is of interest I think the significance of this TF should be reduced because you don’t know which gene this TF is affecting)

-> I think you should put the discussion about tissues heterogeneity in the Introduction. Putting in the discussion make believe the reader that it is a limitation of your algorithm but it is in fact a limitation of the experiment and not of your algorithm. Every type of algorithm will be impaired if a list of gene from tissue with cell heterogeneity is used. The problem comes from the list used not from your algorithm. Gene expression from tissues with cell heterogeneity can be corrected by in-silico gene expression deconvolution prior to feeding to your algorithm (c.f. Dachet 2015, after analysis of correlation profile of gene expression they can be separated multiple list of genes could be fed to your algorithm, each list of genes represent 1 cell type).

Reviewer #2: The manuscript by Avtar Roopra presents a useful tool MAGICTRICKS which identifies enriched transcription factors (TFs) whose signals are enriched in genes (5'UTR-5kb to 3'UTR+5kb) in a query gene list (e.g. differentially expressed genes) compared to a master gene list (e.g., expressed genes). The tool identifies these enriched TFs using a 1-tailed Kolmogorov-Smirnov (KS) test of the max ChIP signals (from ENCODE) within genes (as detailed above) of the query gene list compared to the master gene list. A score is calculated using -log of the Benjamini-Hochberg corrected KS p-value x mean of the top 5th percentile query list ChIP values over mean of top (same number as query list) master list ChIP values. The resulting tool performs well against two other TF enrichment tools Enrichr and oPOSSUM-3 based on analysis of three datasets where TFs are knocked out or missing. However, there are a number of recently developed TF enrichment tools including BART, TFEA.ChIP, VIPER, DoRothEA v2 and ChEA3. In fact, in the recent ChEA3 manuscript (https://academic.oup.com/nar/article/47/W1/W212/5494769), the authors compare ChEA3 to these TF enrichment tools and MAGICTRICKS (which they call MAGICACT and reference the bioRxiv version of this submitted manuscript). They claim superior performance against all the TF enrichment tools including MAGICTRICKS. Given that the standard in the field is show some kind of advantage against existing top tools and to demonstrate this advantage by not just listing top genes (as is done in this manuscript) but compute performance metrics including precision, recall, AUC, etc (as is done in the ChEA3 manuscript), the following are the major and minor comments/suggested changes.

Major comments:

1. The author(s) should compare MAGICTRICKS to BART, TFEA.ChIP, VIPER, DoRothEA v2 and ChEA3 using performance metrics including precision, recall, AUC, etc and demonstrate some advantage. The perturbed TF datasets used in the ChEA3 manuscript allowed these calculations. These should be presented as main figures in the manuscript.

2. ChIP signals for each gene are defined by taking the max within the gene locus. Max is notoriously un-robust. A robust max (95th percentile of the ChIP signal within the gene locus) should also be implemented and available to users.

Minor comments:

1. This reviewer would not use a z-score cutoff of 1.65 for tools like oPossum. Something more like a z-score cutoff of 2 or higher should be used when comparing oPossum and MAGICTRICKS.

2. "Kolmogorov" is misspelled on p. 3 of the manuscript.

3. In Fig. 2 legend, "REST" should be replaced by "GATA3, ESR1 and FOXA1".

4. Under Fig. 2, a sentence mistakenly has "...yielded TFs with oPossum at z < 1.65..." which should be "...yielded TFs with oPossum at z > 1.65...".

5. Fig. 3A has "Down in" twice in the text highlighting the CTCF-KO down-regulated gene cluster in the heat map. In Fig. 3 legend, B) should be a "summary output for down-regulated genes" not "up-regulated" as written.

Reviewer #3: This manuscript describes MAGICTRICKS, a software tool for predicting factors responsible for the co-regulation of sets of genes. The tool relies on binding profiles from ChIP-seq experiments but, unlike other methods based on experimental data, it does not classify genes as targets and non-targets. Instead, each gene-factor pair is assigned a normalized ChIP-value and the program compares the distribution of values in the list of co-regulated genes and across all genes in the internal database. This is a major innovation that avoids the arbitrary classification of genes into two mutually exclusive categories.

Major comments:

1. As indicated by the author, a major limitation of the tool is that the current input matrix only considers peaks within 5Kb of the gene body. Firstly, aparently this distance was chosen arbitrarily. Second, and more important, many transcriptional regulators preferentially bind distant enhancers and thus most of theirs targets won’t be represented in the matrix. A potential solution to assign distant peaks to specific genes, is using the experimental evidences recorded in databases such as GeneHancer.

2. A second limitation is the relatively small set of Factors and Regulators included in MAGICTRICKS. The author could consider using ReMap instead of just data from the ENCODE project.

3. The selection of the highest ChIPseq value from a given factor across cell lines supposedly maximizes the likelihood that the site is universal, i.e. present in other cell types not represented in the original datasets. This hypothesis should be supported by references or data. In addition, this approach will blur tissue-specific or treatment-specific responses. Would not it be better to keep each experiment as an independent column in the internal matrix?

4. The examples used to illustrate the performance of MAGICTRICKS, although convincing, are just individual cases and thus do not provide compelling evidence for the general performance of the method. The use of complete collections of well-defined transcriptional signatures or gene sets, such as those in the GSEA MSigDB, will probably be more appropriate.

5. The Score for each transcription factor integrates the statistical significance of the KS test and a parameter (r) that tries to represents the size effect. Although we agree it is important to include both factors, the value of r is based on few extreme data points and, as such, it is not a indicators of the overall difference between master and query lists CDFs. We suggest the use of another parameters to represent the size effect (difference between both distributions) such as Ds-Di or the difference between the c value required to reach 0.5 of the CDF.

6. The tool is implemented for two specific operating systems. A cross-platform tool would be more widely accepted.

Minor comments:

1. The programming language used for the implementation is not stated.

2. Supplementary file 9 is not referenced in the manuscript.

3. There is a typo in the paragraph before the last in the Results section. It should say “supplemental file 12-Enrich tab” instead of “supplemental file 1-Enrich tab”

4. In the analysis of the CTCF knock-out experiment the conversion of mouse to human IDs is not explained.

5. The captions for figures 3B and 3C contradict the main text.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Fabien DACHET

Reviewer #2: Yes: Stefan Bekiranov

Reviewer #3: Yes: Luis del Peso

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007800.r003

Decision Letter 1

Thomas Lengauer, Ilya Ioshikhes

25 Feb 2020

Dear Dr. Roopra,

Thank you very much for submitting your manuscript "MAGIC: A tool for predicting transcription factors and cofactors driving gene sets using ENCODE data." for consideration at PLOS Computational Biology. As with all papers reviewed by the journal, your manuscript was reviewed by members of the editorial board and by several independent reviewers. The reviewers appreciated the attention to an important topic. Based on the reviews, we are likely to accept this manuscript for publication, providing that you modify the manuscript according to the review recommendations.

Please prepare and submit your revised manuscript within 30 days. If you anticipate any delay, please let us know the expected resubmission date by replying to this email. 

When you are ready to resubmit, please upload the following:

[1] A letter containing a detailed list of your responses to all review comments, and a description of the changes you have made in the manuscript. Please note while forming your response, if your article is accepted, you may have the opportunity to make the peer review history publicly available. The record will include editor decision letters (with reviews) and your responses to reviewer comments. If eligible, we will contact you to opt in or out

[2] Two versions of the revised manuscript: one with either highlights or tracked changes denoting where the text has been changed; the other a clean version (uploaded as the manuscript file).

Important additional instructions are given below your reviewer comments.

Thank you again for your submission to our journal. We hope that our editorial process has been constructive so far, and we welcome your feedback at any time. Please don't hesitate to contact us if you have any questions or comments.

Sincerely,

Ilya Ioshikhes

Associate Editor

PLOS Computational Biology

Thomas Lengauer

Methods Editor

PLOS Computational Biology

***********************

A link appears below if there are any accompanying review attachments. If you believe any reviews to be missing, please contact ploscompbiol@plos.org immediately:

[LINK]

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #1: The revised manuscript has been greatly improved, it is now clearer and addressed all my concerns. The new corrected algorithm accepts more parametrisations and I expect the authors will continue its development. I hope the authors will release updates that will allow to switch the TFs&factors analysis from genes to transcripts and splicing pattern identification using an adequate background file.

Reviewer #2: Dr. Roopra has addressed all my comments/suggestions in this revised manuscript.

There are just a few remaining minor issues that need to be addressed:

1. In addition to being made available from a University of Wisconsin website, MAGIC should be made available on GitHub, which serves as a more permanent site.

2. In the Methods section under the Precision Recall... subsection, "FET" should be defined as "Fisher's Exact Test" and there should be a period after "...each test (Calls Vectors)".

3. In the Methods section under the Rank Analysis subsection, D(r) is more clearly defined in the Results section as cumulative of fractional ranks for the manipulated Factor and PIs. I would use this definition in the methods section as well.

4. In the Methods section under the Rank Analysis subsection, the sentence "Blocks of positive calls in the Calls Vector were all assigned the rank of the first element of the block." is unclear. How are "blocks" defined? I was under the impression that every positive call was ranked.

5. In the Methods section under MCF7 RNA..., the last sentence is missing a period after "...(S1 Table)".

6. In the Methods section under Implementation of MAGIC in the second paragraph, "...each query list and generate a series..." should be "...each query list and generates a series...".

7. In the Results section in the Identification of Cofactors...subsection, "...either high or low ranks would produce a uniform distribution (which equates to r)" should be "...either high or low ranks would produce a uniform p-value distribution (which equates to r)" for clarity (unless something else was meant). it's known that a null model or random data with no enrichment will produce a uniform p-value distribution.

8. In the Discussion section, "...depending on the set of genes in it and so the maximal..." should be "...depending on the set of genes in it, and so the maximal...".

Best,

Stefan Bekiranov

Reviewer #3: The author have addressed most of our concerns and the current version of the method is clearly improved as compared to the original one. However, some concerns regarding the manuscript still remain, as detailed below.

Major comments:

1. The number of cases used to illustrate the performance of MAGIC have been slightly increased but, given the limited number of datasets and the arbitrary criteria for their selection, they still do not provide compelling evidence for the general performance of the method. At least the author should clearly acknowledge this important limitation when drawing conclusions. Particularly, when comparing MAGICTRICKS with the rest of tools included in the manuscript as reference.

2. The criteria to select genes of interest should be the same across the experiments used for validation. Even if the experiments weren't homogeneously process from reads to diferential expression. The author should provide a robust reason to not follow the same criteria when selecting genes for testing. Additionally, the author stated "Genes up-regulated more than 3 Standard Deviations from the mean fold change....". Since Fold Change doesn't follow a simmetric distribution, this apporach only serves to select up-regulated genes. Did the author meant the log-fold change?

3. The manuscript indicates that the tool is implemented for two specific operating systems, yet the address https://go.wisc.edu/MAGIC. only contains stand-alone for MacOS. More importantly, since the tool is written in python, the author could provide the source code so it can be used in any platform.

4. page 19 states that "plasticity[18]. 432 genes were down-regulated upon CTCF loss out of 17,015 expressed genes (S3 Table).". However, according to the results reported on GEO, there are 321 genes with log2(FC)<0 and adjusted p-value <0.05. If the author has analized the RNA-seq following a different pipeline that the one reported on GEO, it should be stated.

5. On page 23 the author states "Nevertheless, it provided an extremely powerful prediction of EZH2 induction which was missed by CHEA3 and TFEA but was confirmed

by Enrichr.". However, we analyzed the dataset provided as supplementary information in reference 43 (https://journals.plos.org/plosone/article?id=10.1371/journal.pone.0226733#sec033) and found that TFEA identifies EZH2 (along with SUZ12 and JARID2) as the top candidate for this dataset. Moreover, five of the top ten datasets represent EZH2 ChIPseqs. In the case of ChEA3 (literature library), the top candidate is MTF2 (also known as Polycomb-Like 2) that mediates binding of PRC2 to DNA. The author should correct their conclusion regarding the performance of TFEA and ChEA3 or provide a compelling argument to explain the indicated discrepancies.

Minor comments:

1. It's possible to ask ReMap's authors for the MACS2 outputs of their ChIP collection. The current ENCODE dump has a wide range of TF covered, but you might want to consider ReMap for a future update.

2. Methods. Page 15. "An emperical distribution function...", should say "empirical".

3. Figure legends page 24, spelling of "reciprical"

3. Last line pag 16 says "ChIP value at dsup", for consistency "dsup" should by capitalized as "Dsup"

4. figure 1, please indicate the meaning of "ND".

5. Quality of figures 2 and 3 is poor.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #1: Yes

Reviewer #2: Yes

Reviewer #3: None

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #1: Yes: Fabien DACHET

Reviewer #2: Yes: Stefan Bekiranov

Reviewer #3: No

Figure Files:

While revising your submission, please upload your figure files to the Preflight Analysis and Conversion Engine (PACE) digital diagnostic tool, https://pacev2.apexcovantage.com. PACE helps ensure that figures meet PLOS requirements. To use PACE, you must first register as a user. Then, login and navigate to the UPLOAD tab, where you will find detailed instructions on how to use the tool. If you encounter any issues or have any questions when using PACE, please email us at figures@plos.org.

Data Requirements:

Please note that, as a condition of publication, PLOS' data policy requires that you make available all data used to draw the conclusions outlined in your manuscript. Data must be deposited in an appropriate repository, included within the body of the manuscript, or uploaded as supporting information. This includes all numerical values that were used to generate graphs, histograms etc.. For an example in PLOS Biology see here: http://www.plosbiology.org/article/info%3Adoi%2F10.1371%2Fjournal.pbio.1001908#s5.

Reproducibility:

To enhance the reproducibility of your results, PLOS recommends that you deposit laboratory protocols in protocols.io, where a protocol can be assigned its own identifier (DOI) such that it can be cited independently in the future. For instructions see http://journals.plos.org/ploscompbiol/s/submission-guidelines#loc-materials-and-methods

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007800.r005

Decision Letter 2

Thomas Lengauer, Ilya Ioshikhes

19 Mar 2020

Dear Dr. Roopra,

We are pleased to inform you that your manuscript 'MAGIC: A tool for predicting transcription factors and cofactors driving gene sets using ENCODE data.' has been provisionally accepted for publication in PLOS Computational Biology.

Before your manuscript can be formally accepted you will need to complete some formatting changes, which you will receive in a follow up email. A member of our team will be in touch with a set of requests.

Please add on that occasion a link in the manuscript to the GitHub page where the Python script and information on how to access the other relevant files are deposited, as per the Reviewer 2 request.

Please note that your manuscript will not be scheduled for publication until you have made the required changes, so a swift response is appreciated.

IMPORTANT: The editorial review process is now complete. PLOS will only permit corrections to spelling, formatting or significant scientific errors from this point onwards. Requests for major changes, or any which affect the scientific understanding of your work, will cause delays to the publication date of your manuscript.

Should you, your institution's press office or the journal office choose to press release your paper, you will automatically be opted out of early publication. We ask that you notify us now if you or your institution is planning to press release the article. All press must be co-ordinated with PLOS.

Thank you again for supporting Open Access publishing; we are looking forward to publishing your work in PLOS Computational Biology. 

Best regards,

Ilya Ioshikhes

Associate Editor

PLOS Computational Biology

Thomas Lengauer

Methods Editor

PLOS Computational Biology

***********************************************************

Reviewer's Responses to Questions

Comments to the Authors:

Please note here if the review is uploaded as an attachment.

Reviewer #2: Dr. Roopra has addressed all my remaining minor comments/suggestions.

The only thing that remains is adding a link in the manuscript to the GitHub page where the Python script and information on how to access the other relevant files are deposited.

Best,

Stefan Bekiranov

Reviewer #3: The author have has addressed all our comments/suggestions in the R2 version of the manuscript.

**********

Have all data underlying the figures and results presented in the manuscript been provided?

Large-scale datasets should be made available via a public repository as described in the PLOS Computational Biology data availability policy, and numerical data that underlies graphs or summary statistics should be provided in spreadsheet form as supporting information.

Reviewer #2: Yes

Reviewer #3: Yes

**********

PLOS authors have the option to publish the peer review history of their article (what does this mean?). If published, this will include your full peer review and any attached files.

If you choose “no”, your identity will remain anonymous but your review may still be made public.

Do you want your identity to be public for this peer review? For information about this choice, including consent withdrawal, please see our Privacy Policy.

Reviewer #2: Yes: Stefan Bekiranov

Reviewer #3: No

PLoS Comput Biol. doi: 10.1371/journal.pcbi.1007800.r006

Acceptance letter

Thomas Lengauer, Ilya Ioshikhes

30 Mar 2020

PCOMPBIOL-D-19-00993R2

MAGIC: A tool for predicting transcription factors and cofactors driving gene sets using ENCODE data.

Dear Dr Roopra,

I am pleased to inform you that your manuscript has been formally accepted for publication in PLOS Computational Biology. Your manuscript is now with our production department and you will be notified of the publication date in due course.

The corresponding author will soon be receiving a typeset proof for review, to ensure errors have not been introduced during production. Please review the PDF proof of your manuscript carefully, as this is the last chance to correct any errors. Please note that major changes, or those which affect the scientific understanding of the work, will likely cause delays to the publication date of your manuscript.

Soon after your final files are uploaded, unless you have opted out, the early version of your manuscript will be published online. The date of the early version will be your article's publication date. The final article will be published to the same URL, and all versions of the paper will be accessible to readers.

Thank you again for supporting PLOS Computational Biology and open-access publishing. We are looking forward to publishing your work!

With kind regards,

Laura Mallard

PLOS Computational Biology | Carlyle House, Carlyle Road, Cambridge CB4 3DN | United Kingdom ploscompbiol@plos.org | Phone +44 (0) 1223-442824 | ploscompbiol.org | @PLOSCompBiol

Associated Data

    This section collects any data citations, data availability statements, or supplementary materials included in this article.

    Supplementary Materials

    S1 Fig. Example of a CDF graphic produced by MAGIC.

    Two cumulative functions are displayed: the black curve is the fractional cumulative of all genes in the background list against ChIP values, red is the same for query genes. A blue vertical line denotes the ChIP value at Dsup i.e. argDsup. Red ticks along the x-axis represent each gene in the query list and black ticks are all genes in the background. Red ticks with circles (‘lollipops’) are the n (n = 0.05X) best chiped genes. Black lollipops are genes in the background list with the n highest ChIP values.

    (TIFF)

    S1 Table. Background and input list for MCF7(shCon_vs_shREST).

    The first column contains 15445 genes in the background list. Second column contains 118 genes induced as described in Methods and Results.

    (TXT)

    S2 Table. Background and input list for TCGA(Lum_vs_Basal).

    The first column contains 17815 genes in the background list. Second column contains 203 genes induced as described in Methods and Results.

    (TXT)

    S3 Table. Background and input list for Brain(WT_vs_CTCFko).

    The first column contains 15509 genes in the background list. Second column contains 203 genes down-regulated as described in Methods and Results.

    (TXT)

    S4 Table. Background and input list for DGC(Quiet_vs_Reactive).

    The first column contains 5305 genes in the background list. Second column contains 842 genes induced as described in Methods and Results.

    (TXT)

    S5 Table. REST interactors and rank-ordered algorithm outputs for MCF7(shCon_vs_shREST).

    The first column contains proteins associated with REST extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries. If the same Factor appears multiple times, it is because there are multiple entries (e.g. ChIP-seq tracks in different cell lines) for that factor in the libraries mined by the algorithm.

    (TXT)

    S6 Table. Estrogen Receptor alpha (ESR1) interactors and rank-ordered algorithm outputs for TCGA(Lum_vs_Basal).

    The first column contains proteins associated with ESR1 extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

    (TXT)

    S7 Table. CTCF interactors and rank-ordered algorithm outputs for Brain(WT_vs_CTCFko).

    The first column contains proteins associated with CTCF extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

    (TXT)

    S8 Table. FOS interactors and rank-ordered algorithm outputs for DGC(Quiet_vs_Reactive).

    The first column contains proteins associated with FOS extracted from the STRING database with a Combined Score>300. Subsequent columns contain ordered lists of Factors predicted to target the input list by the varous algorithms and associated libraries.

    (TXT)

    S9 Table. MAGIC Summary output for MCF7(shCon_vs_shREST).

    The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for MCF7(shCon_vs_shREST) are provided in the summary file.

    (TXT)

    S10 Table. MAGIC Summary output for TCGA(Lum_vs_Basal).

    The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for TCGA(Lum_vs_Basal) are provided in the summary file.

    (TXT)

    S11 Table. MAGIC Summary output for Brain(WT_vs_CTCFko).

    The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for Brain(WT_vs_CTCFko) are provided in the summary file.

    (TXT)

    S12 Table. MAGIC Summary output for DGC(Quiet_vs_Reactive).

    The analysis statistics for the best scoring example of each Factor in the MAGIC matrix for DGC(Quiet_vs_Reactive) are provided in the summary file.

    (TXT)

    Attachment

    Submitted filename: Response_to_Reviewers.docx

    Attachment

    Submitted filename: Response_to_Reviewers_II.docx

    Data Availability Statement

    Expression data files are available from the GEO database (GSE84175 for CTCF WT and KO data) or TCGA (https://www.cbioportal.org/study/summary?id=brca_tcga).


    Articles from PLoS Computational Biology are provided here courtesy of PLOS

    RESOURCES