Update app.py
Browse files
app.py
CHANGED
|
@@ -43,11 +43,26 @@ def main(input_file_path, species):
|
|
| 43 |
from evaluate import AnndataProcessor
|
| 44 |
from accelerate import Accelerator
|
| 45 |
|
| 46 |
-
# python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
|
| 47 |
-
script_name = "/home/user/app/UCE/eval_single_anndata.py"
|
| 48 |
-
args = ["--adata_path", input_file_path, "--dir", "/home/user/app/UCE/", "--model_loc", "minwoosun/uce-100m"]
|
| 49 |
-
command = ["python", script_name] + args
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 50 |
|
|
|
|
|
|
|
|
|
|
| 51 |
try:
|
| 52 |
print("---> RUNNING UCE")
|
| 53 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|
|
|
|
| 43 |
from evaluate import AnndataProcessor
|
| 44 |
from accelerate import Accelerator
|
| 45 |
|
| 46 |
+
# # python eval_single_anndata.py --adata_path "./data/10k_pbmcs_proc.h5ad" --dir "./" --model_loc "minwoosun/uce-100m"
|
| 47 |
+
# script_name = "/home/user/app/UCE/eval_single_anndata.py"
|
| 48 |
+
# args = ["--adata_path", input_file_path, "--dir", "/home/user/app/UCE/", "--model_loc", "minwoosun/uce-100m"]
|
| 49 |
+
# command = ["python", script_name] + args
|
| 50 |
+
|
| 51 |
+
dir_path = '/home/user/app/UCE/'
|
| 52 |
+
model_loc = 'minwoosun/uce-100m'
|
| 53 |
+
|
| 54 |
+
# Construct the command
|
| 55 |
+
command = [
|
| 56 |
+
'python',
|
| 57 |
+
'/home/user/app/eval_single_anndata.py',
|
| 58 |
+
'--adata_path', input_file_path,
|
| 59 |
+
'--dir', dir_path,
|
| 60 |
+
'--model_loc', model_loc
|
| 61 |
+
]
|
| 62 |
|
| 63 |
+
# Print the command for debugging
|
| 64 |
+
print("Running command:", command)
|
| 65 |
+
|
| 66 |
try:
|
| 67 |
print("---> RUNNING UCE")
|
| 68 |
result = subprocess.run(command, capture_output=True, text=True, check=True)
|