No retraction, correction or concern found when last checked on Oct 17, 2026.
TFBSTools: an R/bioconductor package for transcription factor binding site analysis
Ge Tan, Boris Lenhard
Bioinformatics · 2016
doi:10.1093/bioinformatics/btw024
Abstract
Summary: The ability to efficiently investigate transcription factor binding sites (TFBSs) genome-wide is central to computational studies of gene regulation. TFBSTools is an R/Bioconductor package for the analysis and manipulation of TFBSs and their associated transcription factor profile matrices. TFBStools provides a toolkit for handling TFBS profile matrices, scanning sequences and alignments including whole genomes, and querying the JASPAR database. The functionality of the package can be easily extended to include advanced statistical analysis, data visualization and data integration. Availability and implementation: The package is implemented in R and available under GPL-2 license from the Bioconductor website (http://bioconductor.org/packages/TFBSTools/). Contact: ge.tan09@imperial.ac.uk Supplementary information: Supplementary data are available at Bioinformatics online.
Shown for reading. Its publisher allows quoting it, not republishing it.
Full text
From PubMed Central, U.S. National Library of Medicine, as current on Oct 17, 2026. Paragraph numbers are ours, so an answer can point at one.
1 Introduction
Transcription factor binding sites (TFBSs) on DNA play a central role in gene regulation via their sequence-specific interaction with transcription factor (TF) proteins. Most individual TFBSs are 4–30 base-pairs (bp) wide, but are generally located in larger cis-regulatory regions of 50–200 bp. Analysis and identification of TFBSs is crucial for understanding the regulatory mechanisms of gene regulation.
At present, the TFBS analysis functionality in R/Bioconductor is limited and scattered across multiple packages. Here we introduce an R package TFBSTools, which provides a unified and efficiently implemented suite of TFBS analysis tools. The package provides a number of functions for manipulating TFBS profile matrices and searching DNA sequence and pairwise alignments using them. We have ported all of the functionality of our popular TFBS Perl modules, retaining the equivalent class structure where possible, and expanded the functionality to provide efficient genome-wide analysis of TFBSs. Our implementation is tightly integrated with the existing Bioconductor core packages, enabling high-performance sequence and interval manipulation. A database interface for JASPAR2014, JASPAR2016 and wrapper function for de novo motif discovery software are also provided.
2.1 S4 classes defined in TFBSTools
To provide easy data storage, manipulation and exchange, we created several novel S4 classes (Fig. 1), and also defined an aggregate version of each class (e.g. PFMatrixList) to help manipulate sets of the corresponding objects. The design of these classes corresponds to classes in TFBS Perl modules, while remaining extensible in an object-oriented manner, adding new functionality and taking advantage of functional programming capabilities of R.
2.2 Operations with TFBS matrix profiles
To characterize the binding preference of a TF, the aligned sequences bound by the TF are aggregated into a position frequency matrix (PFM). From this matrix, another two matrices can be derived: position weight matrix (PWM, the most commonly used kind of position-specific scoring matrix) and information content matrix (ICM). PWM is a matrix of positional log-likelihoods normally used for sequence scanning and scoring against the motif, while ICM is mostly used in motif visualization, e.g. for drawing sequence logos which can be easily done by the package seqLogo (Fig. 1A). As a novel feature, in addition to matrix profiles, TFBSTools also supports the manipulation of transcription factor flexible model (TFFM) profiles, which capture the dinucleotide dependence (Fig. 1B).
TFBSTools provides methods to perform the conversion between different types of matrices, providing a range of options and customizations. The highlights include: (i) a default pseudocount of 0.8 is used to eliminate the small or zero counts before log transformation, although a different pseudocount, or pseudocount function, for each column is possible; (ii) Schneider correction for ICM is available; (iii) Unequal background nucleotide frequencies can also be specified.
TFBSTools provides tools for comparing pairs of PFMs, or a PFM with IUPAC strings, using a modified Needleman–Wunsch algorithm. Quantification of the similarity between PFMs is commonly used for comparing a newly discovered matrix with existing matrices in the motif database, such as JASPAR, to determine whether the motif is related to known annotated motifs.
The similarity between two PWMs can be quantified using several metrics (e.g. normalized Euclidian distance, Pearson correlation coefficient and Kullback–Leibler divergence). In addition, TFBSTools also allows random profile generation by: (i) sampling the posterior distribution of Dirichlet multinomial mixture models trained on all available JASPAR matrices; (ii) permutation of columns from selected PFMs. The availability of random matrices with the same statistical properties as selected profiles is particularly useful for computational/simulation studies, such as matrix-matrix comparison.
2.3 Sequence/alignment scanning with PWM profiles
TFBSTools includes facilities for screening potential TFBSs present in a DNA sequence (searchSeq), or conserved in a pairwise alignment.
When a pairwise alignment is available, it can be used to combine the TFBSs prediction with phylogenetic footprinting, which can in many cases reduce the false discovery rate whilst retaining a sufficient level of sensitivity. Alternatively, it can be used in combination with other data (e.g. ChIP-seq) to study the cross-species conservation properties of TF binding.
For genome-wide phylogenetic footprinting, TFBSTools can accept two BSgenome objects, and a chain file for liftover from one genome to another (searchPairBSgenome) or a novel S4 class Axt from our CNEr package (available from the Bioconductor website) for representing the axt alignments (searchAln). It can take up to 50 CPU hours to run searchAln on human–mouse pairwise alignment with the possibility of parallel computation, while searchSeq or searchPairBSgenome only needs several minutes. The computationally predicted putative TFBSs can be returned in GFF format or GRanges for downstream analysis.
2.4 JASPAR database interface
Since the release of JASPAR2014, we have provided Bioconductor data packages, JASPAR2014 and JASPAR2016, holding the profile matrices and associated metadata. To accompany the use of this data package for TFBS analysis, TFBSTools provides functions to enable efficient database querying and manipulation.
2.5 Use of de novo motif discovery software
TFBSTools provides wrapper functions for de novo motif discovery softwares and seamlessly integrates the results back into R objects. Currently, support for MEME is implemented and reported motifs are stored in MotifSet object.
3 Conclusions and further information
The Bioconductor TFBSTools package provides a full suite of TFBS analysis tools. The package allows the efficient and reproducible identification and analysis of TFBSs. In combination with other functionality in Bioconductor, it provides a powerful way to analyze TF binding motifs on genome-wide scale. Further development will include an efficient implementation of scanning sequence/alignment with TFFM. A tutorial and additional use cases are available at Bioconductor website.
References 8
- 1.
- 2.
Lenhard B. Wasserman W.W. (2002 ) TFBS: computational framework for transcription factor binding site analysis. Bioinformatics, 18, 1135–1136.
Not in our library10.1093/bioinformatics/18.8.1135
- 3.
- 4.
Mathelier A (2014 ) JASPAR 2014: an extensively expanded and updated open-access database of transcription factor binding profiles. Nucleic Acids Res., 42, D142–D147.
Not in our library10.1093/nar/gkt997
- 5.
Mathelier A (2015 ) JASPAR 2016: a major expansion and update of the open-access database of transcription factor binding profiles. Nucleic Acids Res., gkv1176.
Not in our library10.1093/nar/gkv1176
- 6.
Nishida K (2009 ) Pseudocounts for transcription factor binding sites. Nucleic Acids Res., 37, 939–944.
Not in our library10.1093/nar/gkn1019
- 7.
Sandelin A (2003 ) Integrated analysis of yeast regulatory sequences for biologically linked clusters of genes. Funct. Integr. Genomics, 3, 125–134.
Not in our library10.1007/s10142-003-0086-6
- 8.
Wasserman W.W. Sandelin A. (2004 ) Applied bioinformatics for the identification of regulatory elements. Nat. Rev. Genet., 5, 276–287.
Not in our library10.1038/nrg1315
Cited by papers we hold 10
- An atlas of cells in the human tonsil · 2024No notice
- JASPAR 2024: 20th anniversary of the open-access database of transcription factor binding profiles · 2023No notice
- Polysome-CAGE of TCL1-driven chronic lymphocytic leukemia revealed multiple N-terminally altered epigenetic regulators and a translation stress signature · 2022Not checked
- Species-specific sensitivity to TGFβ signaling and changes to the Mmp13 promoter underlie avian jaw development and evolution · 2022Not checked
- Evidence for additive and synergistic action of mammalian enhancers during cell fate determination · 2021No notice
- Enhancer hijacking determines extrachromosomal circular MYCN amplicon architecture in neuroblastoma · 2020No notice
- The genetic basis of sex determination in grapes · 2020No notice
- From reads to insight: a hitchhiker’s guide to ATAC-seq data analysis · 2020No notice
- Biocomputational Analyses and Experimental Validation Identify the Regulon Controlled by the Redox-Responsive Transcription Factor RpaB · 2019Not checked
- Low-intensity electromagnetic fields induce human cryptochrome to modulate intracellular reactive oxygen species. · 2018Not checked
Reads
Read by people on this page
None yet.
Checked or read by AI through naulon
None yet.
A person counts once a day per paper. We keep no cookie and no address: a reader is a hash that changes every day. Any month under five reads shows no number.
Are you an author?
Is this your paper?
Claim it to add your note and be paid when agents cite it. Free.