9b8ae961fd3ba79665514508bc6b84f5d60beff1,deepvariant/labeler/haplotype_labeler_test.py,HaplotypeLabelerClassUnitTest,test_label_variants,#HaplotypeLabelerClassUnitTest#,352

Before Change


        _test_variant(start=30, gt=(1, 1)),
    ]

    labeler = _make_labeler(truths=truths, max_separation=5)
    labeler._ref_reader = fasta.InMemoryRefReader([("20", 0, "A" * 100)])
    region = ranges.make_range("20", 1, 50)
    result = list(labeler.label_variants(variants, region))

After Change


        _test_variant(start=30, gt=(1, 1)),
    ]

    labeler = _make_labeler(
        truths=truths,
        max_separation=5,
        ref_reader=fasta.InMemoryRefReader([("20", 0, "A" * 100)]))
    region = ranges.make_range("20", 1, 50)
    result = list(labeler.label_variants(variants, region))

    expected_genotypes_by_pos = {
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: google/deepvariant
Commit Name: 9b8ae961fd3ba79665514508bc6b84f5d60beff1
Time: 2018-04-10
Author: mdepristo@google.com
File Name: deepvariant/labeler/haplotype_labeler_test.py
Class Name: HaplotypeLabelerClassUnitTest
Method Name: test_label_variants


Project Name: google/deepvariant
Commit Name: 2ee3017cf85e5e274e74e34b5539e56ef72562b0
Time: 2018-03-08
Author: mdepristo@google.com
File Name: deepvariant/labeler/positional_labeler_test.py
Class Name: PositionalVariantLabelerTest
Method Name: test_match_selects_variant_by_start


Project Name: google/deepvariant
Commit Name: 9b8ae961fd3ba79665514508bc6b84f5d60beff1
Time: 2018-04-10
Author: mdepristo@google.com
File Name: deepvariant/labeler/haplotype_labeler_test.py
Class Name: HaplotypeLabelerClassUnitTest
Method Name: assertMetricsEqual