6372bff538de67595fda0183964a8df4b9b105fb,cnvlib/antitarget.py,,get_background,#Any#Any#Any#Any#,13

Before Change


                             % (access_bed,
                                tuple(sorted(access_chroms.keys())[:3]),
                                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

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)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

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: studioml/studio
Commit Name: 0bf75c51bbf06060cdbd375b080d54e0e40255e2
Time: 2020-11-13
Author: andrei.denissov@cognizant.com
File Name: studio/local_worker.py
Class Name:
Method Name: worker_loop


Project Name: GoogleCloudPlatform/PerfKitBenchmarker
Commit Name: 9121332c18e024d417d1aeb189ec98f295ffc694
Time: 2020-07-28
Author: chriswilkes@google.com
File Name: perfkitbenchmarker/linux_packages/epel_release.py
Class Name:
Method Name: YumInstall