bb621f07cb33b6e8ab46c3d7b6d51db7bd8dba68,deepvariant/haplotypes.py,,_nonref_genotype_count,#Any#,487

Before Change



def _nonref_genotype_count(variant):
  Returns the number of non-reference alleles in the called genotype.
  if len(variant.calls) != 1:
    raise ValueError(
        "Expecting only single-sample variant calls: {}".format(variant))
  return sum(g > 0 for g in variant.calls[0].genotype)

After Change



def _nonref_genotype_count(variant):
  Returns the number of non-reference alleles in the called genotype.
  return sum(g > 0 for g in variant_utils.only_call(variant).genotype)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: google/deepvariant
Commit Name: bb621f07cb33b6e8ab46c3d7b6d51db7bd8dba68
Time: 2018-03-20
Author: cym@google.com
File Name: deepvariant/haplotypes.py
Class Name:
Method Name: _nonref_genotype_count


Project Name: google/deepvariant
Commit Name: 8c9c914ae2759f3731468e86e3a4f23a83be4cd1
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: add_call_to_variant


Project Name: google/deepvariant
Commit Name: 8c9c914ae2759f3731468e86e3a4f23a83be4cd1
Time: 2018-03-12
Author: cym@google.com
File Name: deepvariant/postprocess_variants.py
Class Name:
Method Name: _extract_single_sample_name