6e733983baff8c48de09230197c7b3142a60fdb6,cnvlib/genome/gary.py,GenomicArray,by_ranges,#GenomicArray#Any#Any#Any#,231
Before Change
chrom_lookup = dict(self.by_chromosome())
for chrom, bin_rows in other.by_chromosome():
if chrom in chrom_lookup:
subranges = _iter_ranges(chrom_lookup[chrom].data, None,
bin_rows["start"], bin_rows["end"],
mode)
for bin_row, subrange in zip(bin_rows, subranges):
yield bin_row, self.as_dataframe(subrange)
else:
if keep_empty:
for bin_row in bin_rows:
yield bin_row, self.as_rows([])
def coords(self, also=()):
Iterate over plain coordinates of each bin: chromosome, start, end.
Parameters
After Change
if len(subrange):
yield bin_row, self.as_dataframe(subrange)
elif keep_empty:
yield bin_row, self.as_rows(subrange)
def coords(self, also=()):
Iterate over plain coordinates of each bin: chromosome, start, end.
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: etal/cnvkit
Commit Name: 6e733983baff8c48de09230197c7b3142a60fdb6
Time: 2016-11-29
Author: eric.talevich@gmail.com
File Name: cnvlib/genome/gary.py
Class Name: GenomicArray
Method Name: by_ranges
Project Name: Featuretools/featuretools
Commit Name: 321a0f455524b7553a66ff229f8b4c02c40a5fda
Time: 2019-06-21
Author: chrisstadler@gmail.com
File Name: featuretools/entityset/entityset.py
Class Name: EntitySet
Method Name: get_forward_entities
Project Name: google/language-resources
Commit Name: ee17990625c652181130f216ee414ff397b2a8ea
Time: 2017-12-12
Author: mjansche@google.com
File Name: mul_034/make_script_syms.py
Class Name:
Method Name: SymbolNames
Project Name: etal/cnvkit
Commit Name: 6e733983baff8c48de09230197c7b3142a60fdb6
Time: 2016-11-29
Author: eric.talevich@gmail.com
File Name: cnvlib/genome/gary.py
Class Name: GenomicArray
Method Name: by_ranges