Exemple #1
0
def test_convert_counts(tmp_path, counts, expfile):
    csvfile = str(tmp_path / "out.csv")
    result = TypingResult(fromfile=data_file("prof/deep-filt-clean.json"))
    result.dump_csv(csvfile, "MySample", counts=counts)
    observed = pd.read_csv(csvfile)
    expected = pd.read_csv(data_file(expfile))
    assert observed.equals(expected)
Exemple #2
0
def main(args):
    result = TypingResult(fromfile=args.result)
    result.dump_csv(args.out,
                    args.sample,
                    counts=args.counts,
                    fix_homo=args.fix_homo)