Spaces:
Sleeping
Sleeping
fix: datasets => snapshot_download
Browse files
app.py
CHANGED
|
@@ -19,15 +19,17 @@ from huggingface_hub import from_pretrained_keras
|
|
| 19 |
|
| 20 |
model = from_pretrained_keras("funlab/DeepLoop-CPGZ-LoopDenoise")
|
| 21 |
|
| 22 |
-
from
|
| 23 |
|
| 24 |
-
anchors =
|
| 25 |
-
|
|
|
|
|
|
|
| 26 |
|
| 27 |
predict_and_write(
|
| 28 |
model,
|
| 29 |
-
full_matrix_dir=
|
| 30 |
-
input_name=f"anchor_2_anchor.loop.{chromosome}.p_val",
|
| 31 |
outdir="results",
|
| 32 |
anchor_dir=anchors,
|
| 33 |
chromosome=chromosome,
|
|
|
|
| 19 |
|
| 20 |
model = from_pretrained_keras("funlab/DeepLoop-CPGZ-LoopDenoise")
|
| 21 |
|
| 22 |
+
from huggingface_hub import snapshot_download
|
| 23 |
|
| 24 |
+
anchors = snapshot_download(
|
| 25 |
+
repo_id="funlab/hg19_HindIII_anchor_bed", repo_type="dataset"
|
| 26 |
+
)
|
| 27 |
+
HiCorr_data = snapshot_download("funlab/HiCorr_test_data", repo_type="dataset")
|
| 28 |
|
| 29 |
predict_and_write(
|
| 30 |
model,
|
| 31 |
+
full_matrix_dir=HiCorr_data + f"anchor_2_anchor.loop.{chromosome}",
|
| 32 |
+
input_name=HiCorr_data + f"anchor_2_anchor.loop.{chromosome}.p_val",
|
| 33 |
outdir="results",
|
| 34 |
anchor_dir=anchors,
|
| 35 |
chromosome=chromosome,
|