4d934160aa7f4f9f1d5cdea7cd0e66cfc3d43d05,third_party/nucleus/io/fasta.py,InMemoryRefReader,__init__,#InMemoryRefReader#Any#,130
Before Change
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
reference_pb2.ContigInfo(
name=contig_name, n_bases=end, pos_in_fasta=i))
self._reader = fasta_reader.InMemoryGenomeReference.create(
contigs, ref_seqs)
self.header = RefFastaHeader(contigs=self._reader.contigs)
def iterate(self):
raise NotImplementedError("Can not iterate through a FASTA file")
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: pantsbuild/pants
Commit Name: dbf79e6810dff514d1b14acc36250b8859b0e162
Time: 2017-08-01
Author: john.sirois@gmail.com
File Name: src/python/pants/backend/jvm/tasks/junit_run.py
Class Name: JUnitRun
Method Name: _isolation
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__