4f3ec507fb0c87f0fa25f3dee5d7006e0c3dfecd,third_party/nucleus/util/variant_utils.py,,is_variant_call,#Any#Any#Any#Any#,485

Before Change


        any(g > 0
            for g in variant.calls[i].genotype) or
        (no_calls_are_variant and
         not variantcall_utils.has_genotypes(variant.calls[i]))
        for i in call_indices)

After Change


      call_indices = range(len(variant.calls))
    for i in call_indices:
      for g in variant.calls[i].genotype:
        if g > 0 or (no_calls_are_variant and g < 0):
          return True
    return False


def has_calls(variant):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 3

Instances


Project Name: google/deepvariant
Commit Name: 4f3ec507fb0c87f0fa25f3dee5d7006e0c3dfecd
Time: 2019-10-03
Author: marianattestad@google.com
File Name: third_party/nucleus/util/variant_utils.py
Class Name:
Method Name: is_variant_call


Project Name: google/deepvariant
Commit Name: 37b64f9d799adee9dcd7503e96ec2cfcbb026c6d
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/nucleus
Commit Name: 1c0e8b29a453c40b9e1828e9213b5b03d1f11a2f
Time: 2019-10-03
Author: no-reply@google.com
File Name: nucleus/util/variant_utils.py
Class Name:
Method Name: is_variant_call


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