Spaces:
Running
Running
Upload folder using huggingface_hub
Browse files- app/.source-revision +1 -1
- app/routers/docking.py +10 -1
app/.source-revision
CHANGED
|
@@ -1 +1 @@
|
|
| 1 |
-
|
|
|
|
| 1 |
+
00e7b5b38c9561cf792f2338cbb7d8f30a30590b
|
app/routers/docking.py
CHANGED
|
@@ -340,7 +340,16 @@ def _run_docking_sync(job_id: str, payload: dict):
|
|
| 340 |
interaction_analysis["method"] = interactions.get("method")
|
| 341 |
interaction_analysis["limitations"] = "; ".join(interactions.get("limitations", [])) if isinstance(interactions.get("limitations"), list) else interactions.get("limitations", interaction_analysis["limitations"])
|
| 342 |
interaction_analysis["hydrogen_coordinate_provenance"] = interactions.get("hydrogen_coordinate_provenance")
|
| 343 |
-
interaction_analysis["protein_parse"] = interactions.get("protein_parse")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 344 |
except Exception as e:
|
| 345 |
interactions = {"hbonds": [], "hydrophobic": [], "pi_stacking": [], "salt_bridges": []}
|
| 346 |
interaction_analysis = {
|
|
|
|
| 340 |
interaction_analysis["method"] = interactions.get("method")
|
| 341 |
interaction_analysis["limitations"] = "; ".join(interactions.get("limitations", [])) if isinstance(interactions.get("limitations"), list) else interactions.get("limitations", interaction_analysis["limitations"])
|
| 342 |
interaction_analysis["hydrogen_coordinate_provenance"] = interactions.get("hydrogen_coordinate_provenance")
|
| 343 |
+
interaction_analysis["protein_parse"] = interactions.get("protein_parse")
|
| 344 |
+
interaction_analysis["scientific_limitations"] = interactions.get("limitations", [])
|
| 345 |
+
if (receptor_prep_evidence.get("input_other_hetero_records_excluded", 0)
|
| 346 |
+
or receptor_prep_evidence.get("input_water_records_excluded", 0)):
|
| 347 |
+
interaction_analysis["status"] = "DEGRADED"
|
| 348 |
+
interaction_analysis["receptor_coverage"] = {
|
| 349 |
+
"input_other_hetero_records_excluded": receptor_prep_evidence.get("input_other_hetero_records_excluded", 0),
|
| 350 |
+
"input_water_records_excluded": receptor_prep_evidence.get("input_water_records_excluded", 0),
|
| 351 |
+
"note": "Interactions are calculated against the prepared protein ATOM records; excluded HETATM groups and waters are not included.",
|
| 352 |
+
}
|
| 353 |
except Exception as e:
|
| 354 |
interactions = {"hbonds": [], "hydrophobic": [], "pi_stacking": [], "salt_bridges": []}
|
| 355 |
interaction_analysis = {
|