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
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(
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: wkentaro/labelme
Commit Name: 7ad8d5c5cf89269d191117c4dd41ce205bc66c8c
Time: 2019-05-15
Author: www.kentaro.wada@gmail.com
File Name: labelme/widgets/label_dialog.py
Class Name: LabelDialog
Method Name: resetFlags
Project Name: OpenNMT/OpenNMT-py
Commit Name: e2799c64b7b8248de872ca7fb741080079839710
Time: 2019-02-11
Author: dylan.flaute@gmail.com
File Name: onmt/translate/translator.py
Class Name: Translator
Method Name: _translate_batch_deprecated