Spaces:
Runtime error
Runtime error
Commit
·
6dda5ff
1
Parent(s):
45b5401
Update app.py
Browse files
app.py
CHANGED
|
@@ -350,6 +350,8 @@ def preprocess_mol(pdb_code="", filepath=""):
|
|
| 350 |
print("cleaned", tf_cleaned)
|
| 351 |
mol.write(tf_cleaned.name)
|
| 352 |
print(os.listdir())
|
|
|
|
|
|
|
| 353 |
return tf_cleaned.name, df, tf_original.name
|
| 354 |
|
| 355 |
|
|
@@ -381,6 +383,8 @@ def process_atomsel(atomsel):
|
|
| 381 |
|
| 382 |
def make_fixed_positions_dict(original_file, atomsel, residue_index_df):
|
| 383 |
# we use the uploaded file for the selection
|
|
|
|
|
|
|
| 384 |
mol = Molecule(original_file)
|
| 385 |
# use index for selection as resids will change
|
| 386 |
|
|
|
|
| 350 |
print("cleaned", tf_cleaned)
|
| 351 |
mol.write(tf_cleaned.name)
|
| 352 |
print(os.listdir())
|
| 353 |
+
print("tf_cleaned", tf_cleaned.name)
|
| 354 |
+
print("tf_original", tf_original.name)
|
| 355 |
return tf_cleaned.name, df, tf_original.name
|
| 356 |
|
| 357 |
|
|
|
|
| 383 |
|
| 384 |
def make_fixed_positions_dict(original_file, atomsel, residue_index_df):
|
| 385 |
# we use the uploaded file for the selection
|
| 386 |
+
print("fixed_pos using", original_file)
|
| 387 |
+
print(os.system(f"head -n10 {original_file}"))
|
| 388 |
mol = Molecule(original_file)
|
| 389 |
# use index for selection as resids will change
|
| 390 |
|