-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added command line tool for generating model file
- Loading branch information
Showing
3 changed files
with
70 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import argparse | ||
from cryo_sbi.utils.generate_models import models_to_tensor | ||
|
||
|
||
def cl_models_to_tensor(): | ||
cl_parser = argparse.ArgumentParser( | ||
description="Convert models to tensor for cryoSBI" | ||
epilog="pdb-files: The name for the pdbs must contain a {} to be replaced by the index of the pdb file. The index starts at 0. \ | ||
For example protein_{}.pdb. trr-files: For .trr files you must provide a topology file.") | ||
cl_parser.add_argument( | ||
"--model_files", action="store", type=str, required=True | ||
) | ||
cl_parser.add_argument( | ||
"--output_file", action="store", type=str, required=True | ||
) | ||
cl_parser.add_argument( | ||
"--n_pdbs", action="store", type=int, required=False, default=None | ||
) | ||
cl_parser.add_argument( | ||
"--top_file", action="store", type=str, required=False, default=None | ||
) | ||
args = cl_parser.parse_args() | ||
models_to_tensor( | ||
model_files=args.model_files, | ||
output_file=args.output_file, | ||
n_pdbs=args.n_pdbs, | ||
top_file=args.top_file | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters