コード例 #1
0
def experiment_to_target_to_values(exp_list_file, params_hash):
    print "Gathering data from experiments listed in '%s'..."  % exp_list_file
    exp_accs = []
    with open(exp_list_file, 'r') as f:
        exp_accs = f.readlines()[0].strip().split(",")

    exp_acc_to_target_to_values = {}
    for exp_acc in exp_accs:
        out_loc = join(repo_loc, exp_acc, params_hash, "gene_tpm.tsv")
        exp_acc_to_target_to_values[exp_acc] = parse_kallisto.target_to_values(out_loc)
    return exp_acc_to_target_to_values
コード例 #2
0
def experiment_to_target_to_values(exps):
    exp_to_targ_to_vals = {}
    for exp in exps:
        out_loc = join(REPO_LOC, exp, "gene_bool_express.tsv")
        exp_to_targ_to_vals[exp] = parse_kallisto.target_to_values(out_loc)
    return exp_to_targ_to_vals