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

Before Change


    target_chroms = dict(tabio.read_auto(target_bed).by_chromosome())
    if access_bed:
        // Chromosomes" accessible sequence regions are given -- use them
        access_chroms = dict(tabio.read_auto(access_bed).by_chromosome())
        if access_chroms and set(access_chroms).isdisjoint(target_chroms):
            raise ValueError("Chromosome names in the accessible regions file "
                             "%s %r do not match those in targets %s %r"
                             % (access_bed,

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: 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: google-research/language
Commit Name: 99432c0c5114d0889408ea97d9d01dd61b191e05
Time: 2020-08-14
Author: kentonl@google.com
File Name: language/orqa/predict/orqa_eval.py
Class Name:
Method Name: main


Project Name: NifTK/NiftyNet
Commit Name: cd90b064de4b8d24e9419b3458c83626db356be7
Time: 2017-11-14
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/application_driver.py
Class Name: ApplicationDriver
Method Name: _inference_loop