73ec9752604a0a0210fafa0722ca355629648502,nucleus/io/fasta.py,InMemoryRefReader,__init__,#InMemoryRefReader#Any#,115

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(
            start, contig_name))
      if contig_name in self._chroms:
        raise ValueError("Duplicate chromosome={} detect".format(contig_name))
      if not bases:
        raise ValueError(
            "Bases must contain at least one base, but got "{}"".format(bases))

      end = start + len(bases)
      self._chroms[contig_name] = _InMemoryChromosome(start, end, bases)
      contigs.append(
          reference_pb2.ContigInfo(
              name=contig_name, n_bases=end, pos_in_fasta=i))

After Change



      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: 4

Non-data size: 3

Instances


Project Name: google/nucleus
Commit Name: 73ec9752604a0a0210fafa0722ca355629648502
Time: 2018-04-23
Author: mdepristo@google.com
File Name: nucleus/io/fasta.py
Class Name: InMemoryRefReader
Method Name: __init__


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: google/nucleus
Commit Name: f89f84b01139ae264d04172036a023c949ece4db
Time: 2018-04-13
Author: no-reply@google.com
File Name: nucleus/util/ranges.py
Class Name:
Method Name: bed_parser


Project Name: google/deepvariant
Commit Name: 2f5667b2065568a3c774d76abddb43d726da8c75
Time: 2018-04-13
Author: no-reply@google.com
File Name: third_party/nucleus/util/ranges.py
Class Name:
Method Name: bed_parser