-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrunVBW.py
More file actions
executable file
·61 lines (56 loc) · 2.63 KB
/
Copy pathrunVBW.py
File metadata and controls
executable file
·61 lines (56 loc) · 2.63 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#! /usr/bin/python
"""
Usage: runVBW.py -k -s layer_lines(simulated)
"""
__author__ = "Wojtek Potrzebowski"
__maintainer__ = "Wojtek Potrzebowski"
__email__ = "Wojciech.Potrzebowski@biochemistry.lu.se"
import optparse
import os
import sys
import vbw
if __name__=="__main__":
doc = """
Python interface to Variational Bayesian algorithm
Usage: python runVBW.py --help
"""
print doc
usage = "usage: %prog [options] args"
option_parser_class = optparse.OptionParser
parser = option_parser_class( usage = usage, version='0.1' )
parser.add_option("-r", "--restart", dest="restart",default = 0,
type = 'int',
help="Restart or not")
parser.add_option("-n", "--number_of_strcutures", dest="nstruct",default = None,
type = 'int',
help="Number of strcutural model [OBLIGATORY]")
parser.add_option("-m", "--measures", dest="measures",default = None,
type = 'int',
help="Number of measure on which algorithm is evaluated [OBLIGATORY]")
parser.add_option("-v", "--number_of_curves", dest="ncurves",default = 1,
type = 'int',
help="Number of strcutural model [OBLIGATORY]")
parser.add_option("-p", "--priors", dest="priors",
help="Prior weights [OBLIGATORY]")
parser.add_option("-s", "--simulated", dest="simulated",
help="Simulated SAXS curves [OBLIGATORY]")
parser.add_option("-e", "--experimental", dest="experimental",
help="Experimental SAXS curves [OBLIGATORY]")
parser.add_option("-o", "--output", dest="output",
help="Output file [OBLIGATORY]")
parser.add_option("-c", "--cores", dest="nprocs",default = None,
type = 'int',
help="Number of proccessors [OBLIGATORY]")
parser.add_option("-w", "--weights", dest="weight_cut",default = None,
type = 'float',
help="Weight cutoff [OBLIGATORY]")
parser.add_option("-d", "--molecular_mass", dest="molecular_mass",default = None,
type = 'float',
help="Molecular ass of monomer [OBLIGATORY]")
parser.add_option("-f", "--file_list", dest="filelist",default = None,
help="Weight cutoff [OBLIGATORY]")
options, args = parser.parse_args()
vbw.run_vbw(options.restart, options.nstruct, options.priors,\
options.measures, options.simulated, options.ncurves, options.experimental,\
options.filelist, options.molecular_mass,
options.output, options.nprocs, options.weight_cut)