510ca4e9bb7403703aee755e9d9d5b75698b21ed,deepvariant/labeler/haplotype_labeler.py,,enumerate_all_possible_haplotypes,#Any#Any#Any#,458

Before Change


  for genotypes in itertools.product(*genotype_options):
    paired = [VariantAndGenotypes(v, g) for v, g in zip(variants, genotypes)]
    for haplotypes in create_haplotypes(paired, ref.start):
      yield haplotypes, genotypes


def all_diploid_haplotypes(variants_and_genotypes, genotypes2haplotype):
  Returns all diploid haplotypes for variants given their genotypes.

After Change


      pass

  genotype_options = genotype_options_for_variants(variants, enumeration_type)
  haplotypes_to_genotypes_dict = collections.OrderedDict()
  for genotypes in itertools.product(*genotype_options):
    paired = [VariantAndGenotypes(v, g) for v, g in zip(variants, genotypes)]
    for haplotypes in create_haplotypes(paired, ref.start):
      key = frozenset(haplotypes)
      if key not in haplotypes_to_genotypes_dict:
        haplotypes_to_genotypes_dict[key] = []
      haplotypes_to_genotypes_dict[key].append(genotypes)
  return haplotypes_to_genotypes_dict


def all_diploid_haplotypes(variants_and_genotypes, genotypes2haplotype):
  Returns all diploid haplotypes for variants given their genotypes.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: google/deepvariant
Commit Name: 510ca4e9bb7403703aee755e9d9d5b75698b21ed
Time: 2020-07-23
Author: pichuan@google.com
File Name: deepvariant/labeler/haplotype_labeler.py
Class Name:
Method Name: enumerate_all_possible_haplotypes


Project Name: chainer/chainercv
Commit Name: 12d8b1210b6a999164d7f2da503f3addbcf9b44d
Time: 2018-04-24
Author: Hakuyume@users.noreply.github.com
File Name: chainercv/links/model/yolo/yolo_v3.py
Class Name: Darknet53Extractor
Method Name: __call__


Project Name: GPflow/GPflow
Commit Name: 601aee254c46a69c4d27e8bd8dea03021b40d961
Time: 2017-11-10
Author: art.art.v@gmail.com
File Name: gpflow/params/parameterized.py
Class Name: Parameterized
Method Name: trainable_tensors