-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCustomSolBox.py
More file actions
40 lines (36 loc) · 1.3 KB
/
CustomSolBox.py
File metadata and controls
40 lines (36 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
import argparse
import numpy as np
import os
from LigParGenTools import *
if __name__ == "__main__":
parser = argparse.ArgumentParser(
prog='Converter.py',
formatter_class=argparse.RawDescriptionHelpFormatter,
description="""
SCRIPT TO CREATE CUSTOM SOLVENT BOXES FOR
OPENMM AND NAMD FROM LIGPARGEN FILES
Created on Mon Nov 14 15:10:05 2016
@author: Leela S. Dodda leela.dodda@yale.edu
@author: William L. Jorgensen Lab
if using PDB file
Usage: python CustomSolBox.py -p OCT.pdb -b 45 -r OCT
Usage: python CustomSolBox.py -p CYH.pdb -r CYH -b 28
REQUIREMENTS:
Preferably Anaconda python with following modules
argparse
numpy
"""
)
parser.add_argument(
"-p", "--pdb", help="Submit PDB file from CHEMSPIDER or PubChem", type=str)
parser.add_argument(
"-r", "--sol_name", help="Submit PDB file from CHEMSPIDER or PubChem", type=str)
parser.add_argument("-b", "--box_size", type=float,
help="SIZE of the CUBIC box in ANGSTROM")
parser.add_argument("-ns", "--num_solv", type=int,
help="NUMBER of Molecules in CUBIC box")
args = parser.parse_args()
try:
BOX_MAKER(args.pdb, args.box_size,args.sol_name, args.num_solv)
except TypeError:
print('For Help: python CustomSolBox.py -h')