Spaces:
Running on Zero
Running on Zero
Download baselines_2124/bindEmbed21DL/src/run_bindEmbed21DL.py from projectxddi/be_protein_binding: direct link, hf CLI and curl.
- Browser
- Download file 605 Bytes
-
https://huggingface.co/spaces/projectxddi/be_protein_binding/resolve/main/baselines_2124/bindEmbed21DL/src/run_bindEmbed21DL.py
- Command line
-
hf download hf://spaces/projectxddi/be_protein_binding/baselines_2124/bindEmbed21DL/src/run_bindEmbed21DL.py
-
curl -L -o run_bindEmbed21DL.py https://huggingface.co/spaces/projectxddi/be_protein_binding/resolve/main/baselines_2124/bindEmbed21DL/src/run_bindEmbed21DL.py
605 Bytes
| from config import FileSetter, FileManager | |
| from bindEmbed21DL import BindEmbed21DL | |
| from pathlib import Path | |
| def main(): | |
| prediction_folder = FileSetter.predictions_folder() | |
| Path(prediction_folder).mkdir(parents=True, exist_ok=True) | |
| model_prefix = 'trained_models/checkpoint' | |
| query_fasta = FileSetter.query_set() | |
| query_sequences = FileManager.read_fasta(query_fasta) | |
| query_ids = list(query_sequences.keys()) | |
| ri = True # Whether to write RI or Probabilities | |
| BindEmbed21DL.prediction_pipeline(model_prefix, 0.5, prediction_folder, query_ids, query_fasta, ri) | |
| main() | |