vr-scientist commited on
Commit
90fd309
·
verified ·
1 Parent(s): 395a21a

Add BPNet model ENCSR853BLF (ENCSR968GIB)

Browse files
.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
+ - RFX1
14
+ ---
15
+
16
+ # ENCODE BPNet -- RFX1 ChIP-seq in K562 (ENCSR968GIB)
17
+
18
+ Trained BPNet model (ChIP-seq) from the ENCODE project.
19
+
20
+ - Experiment: [ENCSR968GIB](https://www.encodeproject.org/experiments/ENCSR968GIB/)
21
+ - Model annotation: [ENCSR853BLF](https://www.encodeproject.org/annotations/ENCSR853BLF/)
22
+ - Assembly: hg38 · Target: RFX1 · Biosample: K562
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-RFX1-ChIP-seq-K562-ENCSR968GIB-ENCSR853BLF")
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, 433.2539648173207],
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:10a494bf15fac6b386de7713293334d8077ebd1659101e29750a711a183458c7
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:bf391367f8d9d6494a124f717cb30c492655ab732885a0e6e7f6cedf7e7c594f
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:963c86e9fc80d37a7dd9906a5d6671a05f0530ed7ff61286ab5b151aa8422a30
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:04235411fd561a8b590f66b34f274d1ccf5804fca3b81eac95d8c9aa0e8206ff
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:7b32368ce1569be2f080f0ec631cb66b604e3be1c2c1cb53f5b8b49d5b278aba
3
+ size 750201
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:bbe55df3817fc310b961b87fbce2dacb4a1bfda28ce468cb0cd63f425bbbdaa8
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:114a65447428f1125e0fa10df898920b6ef15b8ba69891323d61ecd5375055d2
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:33e4663a1eb19b1aa984124965362298ea8ab3f2c81b5989f5127925dbec0e22
3
+ size 750201
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:a2af03b3a963c46a67a90f41de8246a6914eae9d18796b18391a4799987d542d
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:d60c9c4de1072708a9c89d565f9fd82cdf42316f0aa984fca04ec8cd1a1827b5
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:66a6aa281849a0769a161d9f0c5c64d55ae5af092d9ad48c26a364f7062c5bd0
3
+ size 750201
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:fa6da43c1944334aa5adf7a291c1bd27edaa202d541f0d1f27f7943ceef02c69
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:60a97ed8d94767f7ffb4c4943860801d86cd1237bd602bf29f83e3916d69371b
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:d3debfc07f70d2885bef251cc969eadcd03b5a4a57b979ca8f5ce89caa655e22
3
+ size 750201
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:52c4dce20eeceaa03e6910d14d3858b2d3d3c460b795125b05c86c4a7602fb4b
3
+ size 1393322
fold_4/saved_model/variables/variables.index ADDED
Binary file (5.77 kB). View file