forked from lacc-ufmg/QSARpackage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrunLQTAGrid4D.py
executable file
·75 lines (67 loc) · 2 KB
/
runLQTAGrid4D.py
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env
# coding: utf-8
import click
from LQTAQSAR.LQTAGrid4D.grid_generate import *
#from . import grid_generate
CONTEXT_SETTINGS = dict(help_option_names=['-h', '--help'])
@click.command(context_settings=CONTEXT_SETTINGS)
@click.option('--mols','-m',
metavar='<path>',
type=click.Path(exists=True),
required=True,
help='files path, gro and itp.'
)
@click.option('--extension','-e',
metavar='<extension>',
required=True,
help='Extension of yhe input files'
)
@click.option('--coordinates', '-c',
metavar='<x> <y> <z>',
type=int,
nargs=3,
required=False,
help='Coordinates of the box.'
)
@click.option('--dimensions', '-d',
metavar='<x> <y> <z>',
type=int,
nargs=3,
required=False,
help='Dimensions of the box.'
)
@click.option('--atom', '-a',
metavar='[atom]',
multiple=True,
required=True,
help='Probe.'
)
@click.option('--step', '-s',
metavar='<x>',
type=float,
nargs=1,
required=True,
help='Steps for navegation on matrix.'
)
@click.option('--output', '-o',
metavar='<path_output>',
type=click.Path(),
required=True,
help='Output matrix file.'
)
def run(mols, extension, coordinates, dimensions, atom, step, output):
'''LQTAgridPy is a python version of LQTAgrid, a practical application of
4D QSAR analysis methodology developed at University of Campinas.
More: https://github.com/rougeth/LQTAgridPy
'''
grid = GridGenerate(
extension,
coordinates,
dimensions,
atom,
mols,
step
)
grid.saveGrid(output)
if __name__ == '__main__':
run()