preciseTAD: A transfer learning framework for 3D domain boundary prediction at base-pair resolution
preciseTAD: A transfer learning framework for 3D domain boundary
prediction at base-pair resolution Spiro C. Stilianoudakis, Maggie A.
Marshall, Mikhail G. Dozmorov. bioRxiv 2020.09.03.282186; doi:
https://doi.org/10.1101/2020.09.03.282186
Predicted preciseTAD boundary points (PTBPs) and regions (PTBRs) for 60
cell lines are available
here.
Overview
preciseTAD provides functions to predict the location of boundaries of
topologically associated domains (TADs) and chromatin loops at
base-level resolution. As an input, it takes BED-formatted genomic
coordinates of domain boundaries detected from low-resolution Hi-C data,
and coordinates of high-resolution genomic annotations from ENCODE or
other consortia. preciseTAD employs several feature engineering
strategies and resampling techniques to address class imbalance, and
trains an optimized random forest model for predicting low-resolution
domain boundaries. Translated on a base-level, preciseTAD predicts the
probability for each base to be a boundary. Density-based clustering and
scalable partitioning techniques are used to detect precise boundary
regions and summit points. Compared with low-resolution boundaries,
preciseTAD boundaries are highly enriched for CTCF, RAD21, SMC3, and
ZNF143 signal and more conserved across cell lines. The pre-trained
model can accurately predict boundaries in another cell line using CTCF,
RAD21, SMC3, and ZNF143 annotation data for this cell line.
The main functions (in order of implementation) are:
extractBoundaries() accepts a 3-column data.frame or matrix with
the chromosomal coordinates of user-defined domains and outputs the
unique boundaries. The second and third columns are the domain
anchor centers.
bedToGRangesList() accepts a filepath containing BED files
representing the coordinates of ChIP-seq defined functional genomic
annotations
createTADdata() accepts a set of unique boundaries and genomic
annotations derived from extractBoundaries() and
bedToGRangesList(), respectively, to create the data matrix used
to build a model to predict domain boundary regions
TADrandomForest() a wrapper of the randomForest package which
implements a random forest binary classification algorithm on domain
boundary data
preciseTAD() which leverages a domain boundary prediction model
(i.e., random forest) and density-based clustering to predict TAD
boundary coordinates at a base-level resolution
Installation
preciseTAD can be installed from Bioconductor:
# if (!requireNamespace("BiocManager", quietly=TRUE))
# install.packages("BiocManager")
# BiocManager::install("preciseTAD")
library(preciseTAD)
#>
The latest version of preciseTAD can be directly installed from
Github:
Below is a brief workflow of how to implement preciseTAD on binned
data from CHR1 to get precise base pair coordinates of TAD boundaries
for a 10mb section of CHR 22. For more details, including the example
how to use the pre-trained model, see vignette("preciseTAD")
First, you need to obtain called TAD boundaries using an established
TAD-caller. As an example, consider the
Arrowhead
TAD-caller, a part of the juicer suite of tools developed by the Aiden
Lab. Arrowhead outputs a .txt file with the chromosomal start and end
coordinates of their called TADs. As an example, we have provided
Arrowhead TADs for GM12878 at 5kb resolution.
Next, you will need to download cell line-specific ChIP-seq data in the
form of BED files from
ENCODE.
Once, you have downloaded your preferred list of functional genomic
annotations, store them in a specific file location. These files can
then be converted into a GRangesList object and used for downstream
modeling using the following command:
As an example, we have already provided a GRangesList object with a
variety of transcription factor binding sites specific to the GM12878
cell line. Once you load it in, you can see the list of transcription
factors using the following:
Now, using the “ground-truth” boundaries and the following TFBS, we can
build the data matrix that will be used for predictive modeling. The
following command creates the training data from CHR1 and reserves the
testing data from CHR22. We specify 5kb sized genomic bins (to match the
resolution used to call the original TADs), a distance-type feature
space, and apply random under-sampling (RUS) on the training data only.
preciseTAD: A transfer learning framework for 3D domain boundary prediction at base-pair resolution
preciseTAD: A transfer learning framework for 3D domain boundary prediction at base-pair resolution Spiro C. Stilianoudakis, Maggie A. Marshall, Mikhail G. Dozmorov. bioRxiv 2020.09.03.282186; doi: https://doi.org/10.1101/2020.09.03.282186
Predicted preciseTAD boundary points (PTBPs) and regions (PTBRs) for 60 cell lines are available here.
Overview
preciseTAD provides functions to predict the location of boundaries of topologically associated domains (TADs) and chromatin loops at base-level resolution. As an input, it takes BED-formatted genomic coordinates of domain boundaries detected from low-resolution Hi-C data, and coordinates of high-resolution genomic annotations from ENCODE or other consortia. preciseTAD employs several feature engineering strategies and resampling techniques to address class imbalance, and trains an optimized random forest model for predicting low-resolution domain boundaries. Translated on a base-level, preciseTAD predicts the probability for each base to be a boundary. Density-based clustering and scalable partitioning techniques are used to detect precise boundary regions and summit points. Compared with low-resolution boundaries, preciseTAD boundaries are highly enriched for CTCF, RAD21, SMC3, and ZNF143 signal and more conserved across cell lines. The pre-trained model can accurately predict boundaries in another cell line using CTCF, RAD21, SMC3, and ZNF143 annotation data for this cell line.
The main functions (in order of implementation) are:
extractBoundaries()accepts a 3-column data.frame or matrix with the chromosomal coordinates of user-defined domains and outputs the unique boundaries. The second and third columns are the domain anchor centers.bedToGRangesList()accepts a filepath containing BED files representing the coordinates of ChIP-seq defined functional genomic annotationscreateTADdata()accepts a set of unique boundaries and genomic annotations derived fromextractBoundaries()andbedToGRangesList(), respectively, to create the data matrix used to build a model to predict domain boundary regionsTADrandomForest()a wrapper of therandomForestpackage which implements a random forest binary classification algorithm on domain boundary datapreciseTAD()which leverages a domain boundary prediction model (i.e., random forest) and density-based clustering to predict TAD boundary coordinates at a base-level resolutionInstallation
preciseTADcan be installed from Bioconductor:The latest version of
preciseTADcan be directly installed from Github:Usage
Below is a brief workflow of how to implement
preciseTADon binned data from CHR1 to get precise base pair coordinates of TAD boundaries for a 10mb section of CHR 22. For more details, including the example how to use the pre-trained model, seevignette("preciseTAD")First, you need to obtain called TAD boundaries using an established TAD-caller. As an example, consider the Arrowhead TAD-caller, a part of the juicer suite of tools developed by the Aiden Lab. Arrowhead outputs a .txt file with the chromosomal start and end coordinates of their called TADs. As an example, we have provided Arrowhead TADs for GM12878 at 5kb resolution.
The unique boundaries for CHR1 and CHR22 can be extracted as:
Next, you will need to download cell line-specific ChIP-seq data in the form of BED files from ENCODE. Once, you have downloaded your preferred list of functional genomic annotations, store them in a specific file location. These files can then be converted into a GRangesList object and used for downstream modeling using the following command:
As an example, we have already provided a GRangesList object with a variety of transcription factor binding sites specific to the GM12878 cell line. Once you load it in, you can see the list of transcription factors using the following:
For the purposes of this example, let’s focus only on CTCF, RAD21, SMC3, and ZNF143 transcription factors.
Now, using the “ground-truth” boundaries and the following TFBS, we can build the data matrix that will be used for predictive modeling. The following command creates the training data from CHR1 and reserves the testing data from CHR22. We specify 5kb sized genomic bins (to match the resolution used to call the original TADs), a distance-type feature space, and apply random under-sampling (RUS) on the training data only.
We can now implement our machine learning algorithm of choice to predict TAD-boundary regions. Here, we opt for the random forest algorithm.
Lastly, we take our TAD-boundary region predictive model and use it to make predictions on a 10mb section of CHR22:35,000,000-45,000,000.