031c390686da59ea8144c69380bf9d5a1e8d1743,cnvlib/reference.py,,do_reference,#Any#Any#Any#Any#Any#Any#Any#Any#,17

Before Change


        // guaranteed to exist, infer from those first, then replace those
        // values where antitargets are suitable.
        sexes = infer_sexes(target_fnames, male_reference)
        if antitarget_fnames:
            sexes.update(infer_sexes(antitarget_fnames, male_reference))
    else:
        sexes = collections.defaultdict(lambda: female_samples)

    // Calculate & save probe centers

After Change


            a_sexes = infer_sexes(antitarget_fnames, male_reference)
            for sid, a_is_xx in a_sexes.items():
                t_is_xx = sexes.get(sid)
                if t_is_xx is None:
                    sexes[sid] = a_is_xx
                elif t_is_xx != a_is_xx and a_is_xx is not None:
                    logging.warning("Sample %s chromosomal X/Y ploidy looks "
                                    "like %s in targets but %s in antitargets; "
                                    "preferring antitargets",
                                    sid,
                                    "female" if t_is_xx else "male",
                                    "female" if a_is_xx else "male")
                    sexes[sid] = a_is_xx
    else:
        sexes = collections.defaultdict(lambda: female_samples)

    // Calculate & save probe centers
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: etal/cnvkit
Commit Name: 031c390686da59ea8144c69380bf9d5a1e8d1743
Time: 2017-11-20
Author: eric.talevich@gmail.com
File Name: cnvlib/reference.py
Class Name:
Method Name: do_reference


Project Name: Microsoft/nni
Commit Name: e6ef08f367e0389e811d63eaa5afb16183a19e2b
Time: 2020-08-24
Author: 40699903+liuzhe-lz@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/tensorflow/compressor.py
Class Name:
Method Name: _locate_layers


Project Name: open-mmlab/mmcv
Commit Name: 2d52809cdbdb54e5c60ae7939fdd4120795c2b3c
Time: 2020-10-31
Author: yhcao6@gmail.com
File Name: mmcv/runner/hooks/optimizer.py
Class Name: Fp16OptimizerHook
Method Name: after_train_iter