d683b78f2e959ed1cf40a5325175a1baa201d111,deepvariant/labeler/variant_labeler.py,,_genotype_from_matched_truth,#Any#Any#,149

Before Change


  if truth_variant is None:
    raise ValueError("truth_variant cannot be None")
  // redacted
  if not (truth_variant.calls and
          any(gt >= 0 for gt in truth_variant.calls[0].genotype)):
    raise ValueError("truth_variant needs genotypes to be used for labeling",
                     truth_variant)

After Change


    raise ValueError("candidate_variant cannot be None")
  if truth_variant is None:
    raise ValueError("truth_variant cannot be None")
  if not variantcall_utils.has_genotypes(
      variant_utils.only_call(truth_variant)):
    raise ValueError("truth_variant needs genotypes to be used for labeling",
                     truth_variant)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 16

Instances


Project Name: google/deepvariant
Commit Name: d683b78f2e959ed1cf40a5325175a1baa201d111
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/labeler/variant_labeler.py
Class Name:
Method Name: _genotype_from_matched_truth


Project Name: google/deepvariant
Commit Name: d683b78f2e959ed1cf40a5325175a1baa201d111
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/labeler/variant_labeler.py
Class Name:
Method Name: _genotype_from_matched_truth


Project Name: google/deepvariant
Commit Name: d683b78f2e959ed1cf40a5325175a1baa201d111
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/labeler/positional_labeler.py
Class Name:
Method Name: _genotype_from_matched_truth


Project Name: google/deepvariant
Commit Name: d683b78f2e959ed1cf40a5325175a1baa201d111
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/labeler/labeled_examples_to_vcf.py
Class Name:
Method Name: examples_to_variants