def __init__(self, logger=None):
		cfg.configure(self)
		self.logger = logger
示例#2
0
	def __init__(self, logger=None):
		cfg.configure(self)
		self.logger = logger
		self.pg = PG()
		self.pg.connect(self.pg_db, self.pg_user, self.pg_password, self.pg_host)
示例#3
0
                  help="Minimum b.p. entropy to accept candidate.")

parser.add_option("--filter-code",
                  action="store",
                  dest="filter_code",
                  default=None,
                  type="string",
                  help="Name of a file containing a filtering expression.")

(options, args) = parser.parse_args()

#
# Configure and initialize the search class
#
config.data_path = options.data_path
config.configure()

#
# Read the data from the results file
#
(seqs, cands, constraint, seq_count,
 tries) = results.Results.load(options.in_file, config.models)

#
# Output
#

# standard filter code
if (options.filter_code is None):
    filter_code = "ok = (count >= %d and " % options.min_count
    filter_code += "occur >= %f and " % options.min_occur
	def __init__(self, logger=None):
		cfg.configure(self)
		self.logger = logger
		self.pg = PG()
		self.pg.connect(self.pg_db, self.pg_user, self.pg_password, self.pg_host)
 def __init__(self, logger=None):
     cfg.configure(self)
     self.logger = logger