예제 #1
0
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)))
예제 #2
0
파일: collect.py 프로젝트: rjones30/stylus
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
        )
예제 #3
0
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)
예제 #4
0
파일: verify.py 프로젝트: rjones30/stylus
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) )
    )
예제 #5
0
파일: verify.py 프로젝트: rjones30/stylus
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)
예제 #6
0
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)