Add BPNet model ENCSR124ANL (ENCSR000DME)
Browse files- .gitattributes +5 -0
- README.md +54 -0
- config.json +45 -0
- fold_0/model.h5 +3 -0
- fold_0/saved_model/saved_model.pb +3 -0
- fold_0/saved_model/variables/variables.data-00000-of-00001 +3 -0
- fold_0/saved_model/variables/variables.index +0 -0
- fold_1/model.h5 +3 -0
- fold_1/saved_model/saved_model.pb +3 -0
- fold_1/saved_model/variables/variables.data-00000-of-00001 +3 -0
- fold_1/saved_model/variables/variables.index +0 -0
- fold_2/model.h5 +3 -0
- fold_2/saved_model/saved_model.pb +3 -0
- fold_2/saved_model/variables/variables.data-00000-of-00001 +3 -0
- fold_2/saved_model/variables/variables.index +0 -0
- fold_3/model.h5 +3 -0
- fold_3/saved_model/saved_model.pb +3 -0
- fold_3/saved_model/variables/variables.data-00000-of-00001 +3 -0
- fold_3/saved_model/variables/variables.index +0 -0
- fold_4/model.h5 +3 -0
- fold_4/saved_model/saved_model.pb +3 -0
- fold_4/saved_model/variables/variables.data-00000-of-00001 +3 -0
- fold_4/saved_model/variables/variables.index +0 -0
.gitattributes
CHANGED
|
@@ -33,3 +33,8 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
| 34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
| 35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
| 36 |
+
fold_0/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
| 37 |
+
fold_1/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
| 38 |
+
fold_2/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
| 39 |
+
fold_3/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
| 40 |
+
fold_4/saved_model/variables/variables.data-00000-of-00001 filter=lfs diff=lfs merge=lfs -text
|
README.md
ADDED
|
@@ -0,0 +1,54 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: cc-by-4.0
|
| 3 |
+
library_name: bpnet
|
| 4 |
+
tags:
|
| 5 |
+
- bpnet
|
| 6 |
+
- dna
|
| 7 |
+
- genomics
|
| 8 |
+
- transcription-factor-binding
|
| 9 |
+
- encode
|
| 10 |
+
- ChIP-seq
|
| 11 |
+
- hg38
|
| 12 |
+
- qc-passed
|
| 13 |
+
- CTCF
|
| 14 |
+
---
|
| 15 |
+
|
| 16 |
+
# ENCODE BPNet -- CTCF ChIP-seq in LNCaP clone FGC (ENCSR000DME)
|
| 17 |
+
|
| 18 |
+
Trained BPNet model (ChIP-seq) from the ENCODE project.
|
| 19 |
+
|
| 20 |
+
- Experiment: [ENCSR000DME](https://www.encodeproject.org/experiments/ENCSR000DME/)
|
| 21 |
+
- Model annotation: [ENCSR124ANL](https://www.encodeproject.org/annotations/ENCSR124ANL/)
|
| 22 |
+
- Assembly: hg38 · Target: CTCF · Biosample: LNCaP clone FGC
|
| 23 |
+
|
| 24 |
+
## QC
|
| 25 |
+
- Status: **passed**
|
| 26 |
+
- Notes: Found direct motif (counts, profile);
|
| 27 |
+
|
| 28 |
+
## Files
|
| 29 |
+
5-fold cross-validation. Each `fold_*/` holds the trained model in two forms:
|
| 30 |
+
- `model.h5` — Keras weights (needs the `bpnet` custom layer to load)
|
| 31 |
+
- `saved_model/` — TensorFlow SavedModel (portable; loads with no extra deps)
|
| 32 |
+
|
| 33 |
+
## Load
|
| 34 |
+
```python
|
| 35 |
+
from huggingface_hub import snapshot_download
|
| 36 |
+
import tensorflow as tf
|
| 37 |
+
d = snapshot_download("kundajelab/encode-bpnet-CTCF-ChIP-seq-LNCaP-clone-FGC-ENCSR000DME-ENCSR124ANL")
|
| 38 |
+
model = tf.saved_model.load(f"{d}/fold_0/saved_model") # portable
|
| 39 |
+
# Keras .h5 (needs the bpnet package):
|
| 40 |
+
# from bpnet.model.custommodel import CustomModel
|
| 41 |
+
# m = tf.keras.models.load_model(f"{d}/fold_0/model.h5",
|
| 42 |
+
# custom_objects={'CustomModel': CustomModel})
|
| 43 |
+
```
|
| 44 |
+
|
| 45 |
+
## Inference inputs
|
| 46 |
+
The `serving_default` signature takes **three** inputs (not sequence alone):
|
| 47 |
+
- `sequence` — one-hot DNA, shape `(N, 2114, 4)`
|
| 48 |
+
- `profile_bias_input_0` — control (bias) profile track, shape `(N, 1000, 2)`
|
| 49 |
+
- `counts_bias_input_0` — control log-count(s), shape `(N, 2)`
|
| 50 |
+
|
| 51 |
+
The bias inputs are the experiment's matched control signal (the model file's `derived_from` control bigWigs on the ENCODE portal). Outputs: `profile_predictions` `(N, 1000, 2)` and `logcounts_predictions` `(N, 1)`. Reverse-complement averaging is the production default.
|
| 52 |
+
|
| 53 |
+
## License & citation
|
| 54 |
+
Released under CC-BY-4.0, matching the [ENCODE data-use policy](https://www.encodeproject.org/about/data-use-policy/). Please cite the ENCODE Project Consortium and the model software: [BPNet](https://github.com/kundajelab/bpnet) (Avsec et al., Nat Genet 2021).
|
config.json
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"input_len": 2114,
|
| 3 |
+
"output_profile_len": 1000,
|
| 4 |
+
"motif_module_params": {
|
| 5 |
+
"filters": [64],
|
| 6 |
+
"kernel_sizes": [21],
|
| 7 |
+
"padding": "valid"
|
| 8 |
+
},
|
| 9 |
+
"syntax_module_params": {
|
| 10 |
+
"num_dilation_layers": 8,
|
| 11 |
+
"filters": 64,
|
| 12 |
+
"kernel_size": 3,
|
| 13 |
+
"padding": "valid",
|
| 14 |
+
"pre_activation_residual_unit": true
|
| 15 |
+
},
|
| 16 |
+
"profile_head_params": {
|
| 17 |
+
"filters": 1,
|
| 18 |
+
"kernel_size": 75,
|
| 19 |
+
"padding": "valid"
|
| 20 |
+
},
|
| 21 |
+
"counts_head_params": {
|
| 22 |
+
"filters": 1,
|
| 23 |
+
"kernel_size": 75,
|
| 24 |
+
"padding": "valid",
|
| 25 |
+
"units": [1],
|
| 26 |
+
"activations":["linear"],
|
| 27 |
+
"dropouts":[0]
|
| 28 |
+
|
| 29 |
+
},
|
| 30 |
+
"profile_bias_module_params": {
|
| 31 |
+
"kernel_sizes": [1]
|
| 32 |
+
},
|
| 33 |
+
"counts_bias_module_params": {
|
| 34 |
+
},
|
| 35 |
+
"use_attribution_prior": false,
|
| 36 |
+
"attribution_prior_params": {
|
| 37 |
+
"frequency_limit": 150,
|
| 38 |
+
"limit_softness": 0.2,
|
| 39 |
+
"grad_smooth_sigma": 3,
|
| 40 |
+
"profile_grad_loss_weight": 200,
|
| 41 |
+
"counts_grad_loss_weight": 100
|
| 42 |
+
},
|
| 43 |
+
"loss_weights": [1, 41.33742027583984],
|
| 44 |
+
"counts_loss": "MSE"
|
| 45 |
+
}
|
fold_0/model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ce05f6e52e1cfd6f53d8c8683198f6fe738629b786c67585d231d2d9720e6d16
|
| 3 |
+
size 561784
|
fold_0/saved_model/saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3e873d6d3a9945f9bfa1fc6e8a4a08b6c051865416ebff30b43769d6751096a0
|
| 3 |
+
size 750201
|
fold_0/saved_model/variables/variables.data-00000-of-00001
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7baf4780d244f396b61f54e1e7ab567bf46a36c9bb77051d8374cbcf4199b734
|
| 3 |
+
size 1393322
|
fold_0/saved_model/variables/variables.index
ADDED
|
Binary file (5.77 kB). View file
|
|
|
fold_1/model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f6346b30cb696a1f2c2e06af401ef43025e83c72eecb14079bfc199ecd01adbc
|
| 3 |
+
size 561784
|
fold_1/saved_model/saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ac9adfef41b0017752f1747f720fda4fdabe268d7c1fc779e3373af96cdb875d
|
| 3 |
+
size 750974
|
fold_1/saved_model/variables/variables.data-00000-of-00001
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8b0fd8ad5da95a77eb70e7eda822187fd61558a40473dc1443685030d7bd7861
|
| 3 |
+
size 1393322
|
fold_1/saved_model/variables/variables.index
ADDED
|
Binary file (5.77 kB). View file
|
|
|
fold_2/model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1840c2eab69e9f72738c9a3b0fc4b2bdaa96b9ac880823488089882d1f996d7e
|
| 3 |
+
size 561784
|
fold_2/saved_model/saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6455884bf7b9821084342929cf9e24a79e15d575f99840a2f30afc73f16cd30e
|
| 3 |
+
size 750604
|
fold_2/saved_model/variables/variables.data-00000-of-00001
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:896d253b1def21baccd6b7491ac8bf8427de14232a7466e8d06cdd0381225951
|
| 3 |
+
size 1393322
|
fold_2/saved_model/variables/variables.index
ADDED
|
Binary file (5.77 kB). View file
|
|
|
fold_3/model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:e18c75b1c8016cadc5e8af4963dc7738f90be8d9bc8e62133f201e725291579d
|
| 3 |
+
size 561784
|
fold_3/saved_model/saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:22b25d6754eaab9716f4467c185ff714a9df8cd0fc912715c2bc74ec9065339a
|
| 3 |
+
size 750974
|
fold_3/saved_model/variables/variables.data-00000-of-00001
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:1131949a254d2e214ad62e3c60393dc6c2873ab0a5e7de98817585249e6f656e
|
| 3 |
+
size 1393322
|
fold_3/saved_model/variables/variables.index
ADDED
|
Binary file (5.77 kB). View file
|
|
|
fold_4/model.h5
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bf00a60ada615ec2957ec293d31c8fba6f2196c878abdbd1fb4b50dede2de377
|
| 3 |
+
size 561784
|
fold_4/saved_model/saved_model.pb
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:5deb3c4f264eacd16451610027dd778c41bb1edf3c329d84e121c342bcb6c119
|
| 3 |
+
size 750974
|
fold_4/saved_model/variables/variables.data-00000-of-00001
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:205f862f41eff2065da9b5038dc1566aa4ed7faffc4defc5a3fedc2dd851f75e
|
| 3 |
+
size 1393322
|
fold_4/saved_model/variables/variables.index
ADDED
|
Binary file (5.77 kB). View file
|
|
|