37651fcb98ae564f95c28fbbe3401f48731f7a0d,deepvariant/realigner/window_selector.py,,_candidates_from_reads,#Any#Any#Any#Any#,42

Before Change



  return {
      expanded_region.start + i: count
      for i, count in enumerate(counts_vec)
      if count > 0 and ranges.position_overlaps(
          region.reference_name, expanded_region.start + i, region)
  }

After Change


    allele_counter.add(read)

  model_type = config.window_selector_model.model_type
  if model_type == realigner_pb2.WindowSelectorModel.VARIANT_READS:
    return _variant_reads_threshold_selector(
        allele_counter, config.window_selector_model.variant_reads_model,
        region, expanded_region)
  elif model_type == realigner_pb2.WindowSelectorModel.ALLELE_COUNT_LINEAR:
    return _allele_count_linear_selector(
        allele_counter, config.window_selector_model.allele_count_linear_model,
        region, expanded_region)
  else:
    raise ValueError("Unknown enum option "{}" for "
                     "WindowSelectorModel.model_type"
                     .format(config.window_selector_model.model_type))


def _variant_reads_threshold_selector(allele_counter, model_conf, region,
                                      expanded_region):
  Returns a list of candidate positions.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: google/deepvariant
Commit Name: 37651fcb98ae564f95c28fbbe3401f48731f7a0d
Time: 2018-07-30
Author: no-reply@google.com
File Name: deepvariant/realigner/window_selector.py
Class Name:
Method Name: _candidates_from_reads


Project Name: GPflow/GPflow
Commit Name: a1a3a6a27e236464460d07fa7e0c4b605d094717
Time: 2017-08-17
Author: art.art.v@gmail.com
File Name: GPflow/_settings.py
Class Name:
Method Name: parse


Project Name: NervanaSystems/coach
Commit Name: 39a28aba95b0d8eeb56f7a17b7dad140e601b591
Time: 2018-02-21
Author: zach.dwiel@intel.com
File Name: architectures/tensorflow_components/architecture.py
Class Name: TensorFlowArchitecture
Method Name: _feed_dict