4d934160aa7f4f9f1d5cdea7cd0e66cfc3d43d05,third_party/nucleus/io/fasta.py,InMemoryRefReader,__init__,#InMemoryRefReader#Any#,130

Before Change


    
    super(InMemoryRefReader, self).__init__()

    self._chroms = {}
    contigs = []
    for i, (contig_name, start, bases) in enumerate(chromosomes):
      if start < 0:
        raise ValueError("start={} must be >= for chromosome={}".format(

After Change


    
    super(InMemoryRefReader, self).__init__()

    ref_seqs = []
    contigs = []
    for i, (contig_name, start, bases) in enumerate(chromosomes):
      if start < 0:
        raise ValueError("start={} must be >= for chromosome={}".format(
            start, contig_name))
      if not bases:
        raise ValueError(
            "Bases must contain at least one base, but got "{}"".format(bases))

      end = start + len(bases)
      ref_seqs.append(reference_pb2.ReferenceSequence(
          region=ranges.make_range(contig_name, start, end), bases=bases))
      contigs.append(
          reference_pb2.ContigInfo(
              name=contig_name, n_bases=end, pos_in_fasta=i))
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: google/deepvariant
Commit Name: 4d934160aa7f4f9f1d5cdea7cd0e66cfc3d43d05
Time: 2018-04-29
Author: mdepristo@google.com
File Name: third_party/nucleus/io/fasta.py
Class Name: InMemoryRefReader
Method Name: __init__


Project Name: OpenMined/PySyft
Commit Name: 1eb369ae3a1865789f5809bec59f066ac1cbe58d
Time: 2020-06-03
Author: kmhigley@gmail.com
File Name: syft/workers/base.py
Class Name: BaseWorker
Method Name: __init__


Project Name: GPflow/GPflow
Commit Name: cc5e7d00a6696a8cf6e40686455e7e034fbf26ff
Time: 2017-09-28
Author: art.art.v@gmail.com
File Name: testing/test_kerns.py
Class Name: TestAdd
Method Name: test_asym