Beispiel #1
0
def _print_control_summary(call_file, align_bam, config, params, out):
    for expect in config["expected"]:
        out_info = {"file": align_bam, "region": expect["name"], "calls": []}
        out_info.update(params)
        counts, calls, wrong = mixed.compare_files(call_file, expect["file"],
                                                   expect["offset"], True)
        _print_expect_info(expect["name"], counts, calls)
        _print_wrong_info(wrong)
        for percent, vals in counts.items():
            vals["percent"] = percent
            out_info["calls"].append(vals)
        out.append(out_info)
        print_summary_counts(out_info)
    return out
Beispiel #2
0
def _print_control_summary(call_file, align_bam, config, params, out):
    all_train = []
    for expect in config["expected"]:
        out_info = {"file": align_bam, "region": expect["name"], "calls": []}
        out_info.update(params)
        counts, calls, train = mixed.compare_files(call_file, expect["file"],
                                                   expect["offset"], True)
        all_train.extend(filter(_check_training, train))
        _print_expect_info(expect["name"], counts, calls)
        for percent, vals in counts.items():
            vals["percent"] = percent
            out_info["calls"].append(vals)
        out.append(out_info)
        print_summary_counts(out_info)
    _write_train_info(all_train, align_bam, config)
    return out