Mercurial > repos > bgruening > openbabel
comparison modify/ob_genProp.py @ 7:12822efbd4a4
Uploaded
| author | bgruening |
|---|---|
| date | Sat, 11 May 2013 17:11:45 -0400 |
| parents | 6493d130f018 |
| children |
comparison
equal
deleted
inserted
replaced
| 6:9d1f982555ba | 7:12822efbd4a4 |
|---|---|
| 12 import cheminfolib | 12 import cheminfolib |
| 13 | 13 |
| 14 | 14 |
| 15 def parse_command_line(argv): | 15 def parse_command_line(argv): |
| 16 parser = argparse.ArgumentParser() | 16 parser = argparse.ArgumentParser() |
| 17 parser.add_argument('-iformat', default='sdf' , help='input file format') | 17 parser.add_argument('--iformat', default='sdf' , help='input file format') |
| 18 parser.add_argument('-i', '--input', required=True, help='input file name') | 18 parser.add_argument('-i', '--input', required=True, help='input file name') |
| 19 parser.add_argument('-oformat', default='sdf', choices = ['sdf', 'table'] , help='output file format') | 19 parser.add_argument('--oformat', default='sdf', choices = ['sdf', 'table'] , help='output file format') |
| 20 parser.add_argument('--header', type=bool, help='Include the header as the first line of the output table') | 20 parser.add_argument('--header', type=bool, help='Include the header as the first line of the output table') |
| 21 parser.add_argument('-o', '--output', required=True, help='output file name') | 21 parser.add_argument('-o', '--output', required=True, help='output file name') |
| 22 return parser.parse_args() | 22 return parser.parse_args() |
| 23 | 23 |
| 24 def compute_properties(args): | 24 def compute_properties(args): |
