6372bff538de67595fda0183964a8df4b9b105fb,cnvlib/antitarget.py,,get_background,#Any#Any#Any#Any#,13
Before Change
target_bed,
tuple(sorted(target_chroms.keys())[:3])))
// But filter out untargeted alternative contigs and mitochondria
untgt_chroms = set(access_chroms) - set(target_chroms)
// Autosomes typically have numeric names, allosomes are X and Y
is_canonical = re.compile(r"(chr)?(\d+|[XYxy])$")
if any(is_canonical.match(c) for c in target_chroms):
chroms_to_skip = [c for c in untgt_chroms
After Change
max_tgt_chr_name_len = max(map(len, target_chroms))
chroms_to_skip = [c for c in untgt_chroms
if len(c) > max_tgt_chr_name_len]
if chroms_to_skip:
logging.info("Skipping untargeted chromosomes %s",
" ".join(sorted(chroms_to_skip)))
skip_idx = accessible.chromosome.isin(chroms_to_skip)
accessible = accessible[~skip_idx]
else:
// Chromosome accessible sequence regions not known -- use heuristics
// (chromosome length is endpoint of last probe; skip initial
// <magic number> of bases that are probably telomeric)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: etal/cnvkit
Commit Name: 6372bff538de67595fda0183964a8df4b9b105fb
Time: 2016-12-08
Author: eric.talevich@gmail.com
File Name: cnvlib/antitarget.py
Class Name:
Method Name: get_background
Project Name: pyinstaller/pyinstaller
Commit Name: 98100abde55f1fb0ab455f95b9259c3adcdbab2c
Time: 2015-10-19
Author: h.goebel@crazy-compilers.com
File Name: PyInstaller/building/imphook.py
Class Name: ImportHook
Method Name: _process_excludedimports
Project Name: evilsocket/pwnagotchi
Commit Name: d981b26842ff772215514abc0e01f534b171b557
Time: 2019-12-19
Author: benoit.allard@gmx.de
File Name: pwnagotchi/plugins/default/ups_lite.py
Class Name: UPSLite
Method Name: on_ui_update