def upload_prior(ctype, config, gene_names): fname = f'../models/{ctype}/prior_stmts.pkl' with open(fname, 'rb') as fh: stmts = pickle.load(fh) estmts = get_emmaa_statements(stmts, gene_names) model = EmmaaModel(ctype, config) model.add_statements(estmts) model.update_to_ndex()
def upload_prior(ctype, config): fname = f'../models/{ctype}/prior_stmts.pkl' with open(fname, 'rb') as fh: stmts = pickle.load(fh) estmts = [ EmmaaStatement(stmt, datetime.datetime.now(), []) for stmt in stmts ] model = EmmaaModel(ctype, config) model.add_statements(estmts) model.update_to_ndex()