def verify_result(plan, gene): print "Testing", plan, gene data_dir = os.path.join(DATA_DIR, drop_extension(plan)) execute_stylus_plan(gene, plan, './test_data', './sample', './sample', './sample/plans', data_dir) xml_directory_compare( os.path.join('test_data', drop_extension(plan), drop_extension(gene)), os.path.join(data_dir, drop_extension(gene)))
def collect_test_data(plan, gene): plan_name = drop_extension(plan) gene_name = drop_extension(os.path.basename(gene)) if (gene_name, plan_name) not in BLACKLIST: print "Collecting test data for plan: ", plan_name, "gene: ", gene_name target_path = os.path.join("test_data", plan_name) execute_stylus_plan( os.path.basename(gene), plan, "./test_data", "./sample/", "./sample/", "./sample/plans", target_path )
def collect_test_data(plan, gene): plan_name = drop_extension(plan) gene_name = drop_extension(os.path.basename(gene)) if (gene_name, plan_name) not in BLACKLIST: print "Collecting test data for plan: ", plan_name, "gene: ", gene_name target_path = os.path.join('test_data', plan_name) execute_stylus_plan(os.path.basename(gene), plan, './test_data', './sample/', './sample/', './sample/plans', target_path)
def verify_result(plan, gene): print "Testing", plan, gene data_dir = os.path.join(DATA_DIR, drop_extension(plan)) execute_stylus_plan(gene, plan, './test_data', './sample', './sample', './sample/plans', data_dir) xml_directory_compare( os.path.join('test_data', drop_extension(plan), drop_extension(gene) ), os.path.join(data_dir, drop_extension(gene) ) )
def main(): try: shutil.rmtree(DATA_DIR) except OSError: pass plans = list(find_plans()) genes = list(find_genes()) for plan in plans: for gene in genes: if (drop_extension(gene), drop_extension(plan)) not in BLACKLIST: verify_result(plan, gene)