BorzoiBICCN#
The BorzoiBICCN model is Borzoi model that is (double) fine-tuned to perform peak regression on motor cortex cell types from the BICCN dataset. The model was first fine-tuned on all consensus peaks (440K regions), and further fine-tuned on a training set of cell type-specific peaks (73K regions).
The model is a CNN multiclass regression model using the borzoi()
architecture, with an added dense layer after the final embedding layer to predict peak heights over cell types.
Details of the data and the model can be found in the original publication.
Citation
Kempynck, N., De Winter, S., et al. CREsted: modeling genomic and synthetic cell type-specific enhancers across tissues and species. Zenodo. https://doi.org/10.5281/zenodo.13918932
Usage#
1import crested
2import keras
3
4# download model
5model_path, output_names = crested.get_model("BorzoiBICCN")
6
7# load model
8model = keras.models.load_model(model_path)
9
10# make predictions
11sequence = "A" * 2048
12predictions = crested.tl.predict(sequence, model)
13print(predictions.shape)
Warning
The borzoi architecture uses custom layers that are serialized inside the CRESted package. To ensure that the model is loaded correctly, make sure that crested is imported before loading the model.